I would like to select a start column and an end column from a single MySQL datetime column from a table called tbl. Any suggestions?
What I start with:
+---------------------+
| date_time |
+---------------------+
| 2012-03-05 10:15:52 |
| 2012-03-05 10:15:53 |
| 2012-03-05 10:15:54 |
+---------------------+
Wanted result:
+---------------------+---------------------+
| start_time | end_time |
+---------------------+---------------------+
| 2012-03-05 10:15:52 | 2012-03-05 10:15:53 |
| 2012-03-05 10:15:53 | 2012-03-05 10:15:54 |
+---------------------+---------------------+
See it on sqlfiddle.