HiI have a need to only find distinct dates in which a worker worked in the factory using TSQLRowNumber workerstartDate workerenddate1 2012-08-08 2012-10-10 2 2012-08-10 2012-08-31 3 2012-09-05 2012-09-15 4 2012-10-15 2012-12-19 5 2013-01-02 2013-03-14 6 2013-03-15 2013-05-23
Basically, I am looking for the above to look like thisrownumber workerstartDate workerenddate1 2012-08-08 2012-10-10 4 2012-10-15 2012-12-19 5 2013-01-02 2013-03-14 6 2013-03-15 2013-05-23
The below 2 rows have been removed as their dates fell inside the first range of date in row 1 i..e. from 8-8-2012 to 10-10-2012Rownumber workerstartdate workerenddate2 2012-08-10 2012-08-313 2012-09-05 2012-09-15
Can you please help.Thanks,Hans