I have this type of data in my source tables.
site date_time data
1016771 2016-06-04 00:00:00 LBV
1016771 2016-06-04 00:00:00 SOB
1016771 2016-06-04 01:29:00 LBV
1016771 2016-06-04 01:29:00 SOB
1016771 2016-06-04 05:51:00 SOB
1016771 2016-06-04 05:51:00 LBV
1016771 2016-06-04 08:35:00 SOB
1016771 2016-06-04 08:35:00 LBV
1016771 2016-06-04 11:18:00 LBV
1016771 2016-06-04 11:18:00 SOB
1016771 2016-06-04 12:20:00 LBV
1016771 2016-06-04 12:20:00 SOB
1016771 2016-06-04 13:24:00 LBV
1016771 2016-06-04 13:24:00 SOB
1016771 2016-06-04 14:04:00 LBV
1016771 2016-06-04 14:04:00 SOB
1016771 2016-06-04 15:27:00 LBV
1016773 2016-06-04 15:27:00 SOB
1016773 2016-06-04 16:55:00 LBV
1016773 2016-06-04 16:55:00 SOB
1016773 2016-06-04 18:15:00 LBV
1016773 2016-06-04 18:15:00 SOB
Now i want to perform some operation on this data model.I want next row data in same row. Output is like this:
site SOB_date_time LBV_date_time
1016771 2016-06-04 00:00:00 2016-06-04 01:29:00
1016771 2016-06-04 05:51:00 2016-06-04 05:51:00
1016771 2016-06-04 08:35:00 2016-06-04 08:35:00
1016771 2016-06-04 11:18:00 2016-06-04 12:20:00
1016771 2016-06-04 12:20:00 2016-06-04 13:24:00
1016771 2016-06-04 13:24:00 2016-06-04 14:04:00
1016771 2016-06-04 14:04:00 2016-06-04 15:27:00
1016773 2016-06-04 15:27:00 2016-06-04 16:55:00
1016773 2016-06-04 16:55:00 2016-06-04 18:15:00
Can u please help me to solve this problem.