Somehow there are duplicate entries in my table. Data structure is set-up like this:
RecordID, UserID, clockin, clockout
So if one user has 2 entries with the same clockin/clockout
time then it is a duplicate. A duplicate would look like this. The entry should only exist once, and the clockin & clock
out time are exactly the same.
RecordID UserID clockin clockout
1 16 2015-01-12 07:15:23 2015-01-12 08:55:15
2 16 2015-01-12 07:15:23 2015-01-12 08:55:15
3 44 2014-12-18 08:02:36 2014-12-18 04:02:36
4 44 2014-12-18 08:02:36 2014-12-18 04:02:36
With
row_number
window function: