I have a table called Notifications where status=1 is EntryTime and status=2 is ExitTime.
+-----+------+------+------+--------+
| n_id| notification_time | status |
+-----+------+------+------+--------+
| 1 | 2016-11-17 16:44:02 | 2 |
| 1 | 2016-11-17 16:43:55 | 1 |
| 2 | 2016-11-17 13:05:47 | 1 |
| 2 | 2016-11-17 13:08:29 | 2 |
| 4 | 2016-11-17 14:09:02 | 1 |
| 4 | 2016-11-17 14:13:45 | 2 |
| 1 | 2016-11-17 22:05:02 | 1 |
| 1 | 2016-11-17 22:09:12 | 2 |
+----+------+------+-------+---------+
I would need a result like
+-----+------+------+------+--------+--------+--------+
| n_id| Entry_time | Exit_time |
+-----+------+------+------+--------+--------+--------+
| 1 | 2016-11-17 16:43:55 | 2016-11-17 16:44:02 |
| 2 | 2016-11-17 13:05:47 | 2016-11-17 13:08:29 |
| 4 | 2016-11-17 14:09:02 | 2016-11-17 14:13:45 |
| 1 | 2016-11-17 22:05:02 | 2016-11-17 22:09:12 |
+----+------+------+-------+---------+-------+--------+
Any suggestions on how to do this? Thanks very much!