Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Usage of DateDiff
Message
De
20/11/2014 09:52:30
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Usage of DateDiff
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01611233
Message ID:
01611233
Vues:
40
If I have a select like this:
SELECT SUM(DateDiff(Hour,Start,End)) AS Hour...
Will the Hour value obtained be as precise as this:
SELECT SUM(DateDiff(Second,Start,End)/3600) AS Hour...
Basically, the second one would provide a precision. So, Hour can end with something like 34.23.

I am wondering if the first one is having a precision for Hour if that DateDiff will be rounded to an integer such as 34.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform