Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To: ALways return a positive value
Message
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
How To: ALways return a positive value
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01245031
Message ID:
01245031
Vues:
105
In the statement below, this returns the correct value, which often is a negative number (almost always) which it should. But I want to bring it back as a positive value. Does SQL have a method to do that?
cast(isnull(datediff(mi,meetings.PacuEnd,meetings.DischargeTime),0) as int) as DiffMinsPacuEnd_Dis
Thanks

Kirk
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform