I have on table which store enter and exit of people in multi rows like:
EorL 1 = enter
EorL 2 = exit or leave
id | date_ |time |EorL|
1 | 150201 | 09:14 | 1 |
2 | 150201 | 09:14 | 1 |
3 | 150201 | 09:15 | 1 |
1 | 150201 | 16:07 | 2 |
2 | 150201 | 16:07 | 2 |
3 | 150201 | 17:15 | 2 |
how can combine and get:
id | date_ |enter |leave
1 | 150201 |09:14 |16:07
2 | 150201 |09:14 |16:07
3 | 150201 |09:15 |17:15
thank you in advance