Hi
could you please help me to get the output without using loop...
Input :
Srno Department CreatedDate UpdateDate
1 HR 07/12/2012 10:30 07/12/2012 10:30
2 HR 07/12/2012 10:41 07/12/2012 10:41
3 HR 08/12/2012 07:08 08/12/2012 07:08
4 Development 07/12/2012 10:30 07/12/2012 10:30
5 Development 07/12/2012 11:33 07/12/2012 11:33
6 Testing 07/12/2012 17:18 07/12/2012 17:18
7 Testing 07/12/2012 10:31 07/12/2012 10:31
8 Testing 07/12/2012 11:38 07/12/2012 11:38
Output : shoube be like below without using any loop becaz it's taking more time to loop through..
Current row createddate should be updated as next row updatedate..
Srno Department CreatedDate UpdateDate 1 HR 07/12/2012 10:30 Null
2 HR 07/12/2012 10:41 07/12/2012 10:30
3 HR 08/12/2012 07:08 07/12/2012 10:41
4 Development 07/12/2012 10:30 null
5 Development 07/12/2012 11:33 07/12/2012 10:30
6 Testing 07/12/2012 17:18 Null
7 Testing 07/12/2012 10:31 07/12/2012 17:18
8 Testing 07/12/2012 11:38 07/12/2012 10:31
Thanks in adv.
santosh