Hello I'm trying to make a query to significantly shorten employee badge stamping tables.
They have one record for each stamp, for example:
Badge Date Time Type
430016 12/12/2016 09:34 In
430016 12/12/2016 13:02 Out
430016 12/12/2016 13:26 In
430016 12/12/2016 17:58 Out
430016 12/12/2016 18:01 In
430016 12/12/2016 19:02 Out
I need a mysql query to put it all in one record i.e.
Badge Date In1 Out1 In2 Out2 In3 Out3
0430016 2/12/2016 09:34 13:02 13:26 17:58 18:01 19:02