I have got a table which got structure like this:-
chkey chvalue updatetime unit_id
ch1 27 7/11/2018 1:08 35
ch2 89 7/12/2018 1:08 35
ch1 26 7/13/2018 2:08 46
ch2 77 7/14/2018 2:08 46
ch1 24 7/15/2018 3:08 47
ch2 77 7/16/2018 3:08 47
what i want is a query for generating a result like this:-
updatetime ch1 ch2 unit_id
7/11/2018 1:08 27 89 35
7/11/2018 2:08 26 77 46
7/11/2018 3:08 24 77 47
NOTE: chkey's can be upto ch1....ch64 for any unit_id.