These are my lines in the table:
Id | FromDate | Todate | prod_Id
------ | --------------------------- | --------------- ----------- | -------
1 | 2012-08-13 07: 00: 00.000 | 2012-08-14 18: 59: 00.000 | ten
1 | 2012-08-13 07: 00: 00.000 | 2012-08-15 18: 59: 00.000 | ten
1 | 2012-08-13 07: 00: 00.000 | 2012-08-16 18: 59: 00.000 | ten
I need the result as below:
Id | FromDate | Todate | prod_Id
---- | ----------------------------- | --------------- ------------ | ---------
1 | 2012-08-13 07: 00: 00.000 | 2012-08-16 18: 59: 00.000 | ten
How to do it?
source share