Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

How to get total time between login & logout time, in Sql Server 2008 R2

$
0
0

Hi there, please help I am looking for a shortest method of retrieving the total time of WorkedHours,

There is a lot of talk out there many suggested that TIMEDIFF function is the best one. For example:

SELECT timediff(your_logout_time,your_login_time);

My question is the above solution one of the shortest method I can trust?

Sorry for the silly question

Warm regard,

Oswald

>>

Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>