Determining DATETIME durations
-
Hello buddies, How can I determine the time distance between two DATETIME values and compare the result with various time units like seconds, minutes, days, ... ? I guess it has a standard method that I prefer, but anyway my target SQL is MS SQL Server 2000. Thank you so much for your note --- "Art happens when you least expect it."
-
Hello buddies, How can I determine the time distance between two DATETIME values and compare the result with various time units like seconds, minutes, days, ... ? I guess it has a standard method that I prefer, but anyway my target SQL is MS SQL Server 2000. Thank you so much for your note --- "Art happens when you least expect it."
You need to use the DATEDIFF function. Full details are in the BOL.
store your internet favourites online - www.my-faves.co.uk
-
You need to use the DATEDIFF function. Full details are in the BOL.
store your internet favourites online - www.my-faves.co.uk