Can I get some data fro each column and then store it in one result column using mysql queries?
Table
Truck Number, Depart time, Arrive time
0001,'2016-10-05 07:15:00','2016-10-05 10:10:00'
0002,'2016-10-05 08:15:00','2016-10-05 09:30:00'
0003,'2016-10-04 19:15:00','2016-10-05 08:45:00'
I only want the trucks that leave or arrive from '2016-10-05 08:00:00' to '2016-10-05 08:50:00'
I want the output to be
Truck, Time
0002 '2016-10-05 08:15:00'
0003 '2016-10-05 08:45:00'
And if possible have the column the time came from as well.