The HR team is compiling employee work hours. An employee may enter and leave the office multiple times in a single day, so you need to add up all their time intervals in the office. For each day–employee pair, calculate the total time as the sum of out_time - in_time. Return day, emp_id, and total_time.
Any row order
Expected output columns:dayemp_idtotal_time
Showing the first 3 rows of the sample — the full sample comes with Premium