ID LogDate LogTime InoutMode
1 2017-02-23 19:30:00.0000000 1
2 2017-02-23 20:00:00.0000000 0
3 2017-02-23 20:30:00.0000000 1
4 2017-02-23 21:00:00.0000000 0
5 2017-02-23 21:30:00.0000000 1
6 2017-02-24 08:00:00.0000000 0
The above result got from a temp table.now i want to insert LogTime to another temp table like below.
InOutMode-1 =>InTime
InOutMode-0 =>OutTime
InTime OutTime
19:30:00.0000000 20:00:00.0000000
20:30:00.0000000 21:00:00.0000000
21:30:00.0000000 08:00:00.0000000