I have a Table which contains more than 1 parameters for the same ID:
id identifier_id ts name int_value
6117 12 2020-02-25 11:44:40 Enable 0
6118 12 2020-02-25 11:44:40 Limit1 600000
6119 12 2020-02-25 11:44:40 Limit2 800000
6115 12 2020-02-25 11:44:40 Reset 0
6116 12 2020-02-25 11:44:40 TimePeriod 604800
16648 12 2020-02-28 06:36:50 Enable 1
16778 12 2020-02-28 09:31:19 Limit1 15
16779 12 2020-02-28 09:31:19 Limit2 25
What i need is for identifier_id (here 12) i want to get Limit1 and Limit2 and the int_valuesfor these names. With the latest ts.
My Result should look like this:
id identifier_id Limit1_value Limit2_value
16778 12 15 25
Im searching and trying since hours but havent found anything that worked for me.