I have following table where each record indicates either start time or end time of a shift for staff.
The first record is for start time, and the next immediate record is for end time.
SELECT * FROM `recorddata` ORDER BY `recorddata`.`Date_Time` ASC LIMIT 0 , 30 
What i want is all start and end time together as result of query.

ROWNUMBER() over Date_Time, join the CTE with itself, with the join condition as rownumber+1 and a where condition to filter out records where the left rownumber is even or the right rownumber is odd