This is my actual result in SQL Server 2012 with table_name CHECKINOUT
UID CHECKTIME CHECKTYPE
87 2020-02-19 08:21:33.000 I
87 2020-02-19 11:26:47.000 O
87 2020-02-19 11:27:04.000 I
87 2020-02-19 11:35:25.000 I
87 2020-02-19 11:35:26.000 I
87 2020-02-19 17:21:36.000 O
and I want a result like this. any ideas will highly appreciated.
clockin1 clockout1 clockin2 clockout2
2020-02-19 08:21:33.000 2020-02-19 11:26:47.000 2020-02-19 11:27:04.000 2020-02-19 17:21:36.000