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

SQL query sum minute from 2 ore more date-timestamp

$
0
0

Hello,

I am not an expert in creating query's so I first would like to document myself, what is the best way to implement this query, what will return the output in minutes for every user divided by the, production day, workstation and the sum of minutes what is between logout time - login time.

I had attached an excel with the data from where I need to obtain the data, where I got the team_count column 1 = login, -1 = logout, I need to extract the minutes beetwen login - logout moment.

Thanks


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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