Relative Content

Tag Archive for sqlcount

Select only certain rows according to condition – SQL SERVER

I have a table representing an employee’s weekly time sheets, based on clocking ins and clocking outs.
Most rows belong to the ‘ORDINARY TIMETABLE’ category. But there are cases where I have ‘duplicate’ rows: for the same date, I have both the ‘ORDINARY TIMETABLE’ row and the ‘PAID LEAVE’ row.