I have the following table for Employee Attendance System
userid CheckTime CheckType
1 2015-07-31 14:29:18.000 I
1 2015-07-31 18:29:18.000 O
1 2015-08-01 08:12:45.000 I
1 2015-08-02 03:19:03.000 O
1 2015-08-02 08:15:23.000 I
1 2015-08-02 14:05:52.000 O
1 2015-08-02 19:48:57.000 I
1 2015-08-02 21:48:57.000 O
How can get the result as follow
userid checkinTime CheckOuttime
1 2015-07-31 14:29:18.000 2015-07-31 18:29:18.000
.
.
1 2015-08-01 08:12:45.000 2015-08-02 03:19:03.000