Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Usage of DateDiff
Message
From
20/11/2014 09:52:30
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Usage of DateDiff
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01611233
Message ID:
01611233
Views:
41
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
Next
Reply
Map
View

Click here to load this message in the networking platform