Skip to content
Advertisement

Mysql group by get value base of another colum value

I have one long query return like below table

Could I use group by to achieve below result

Basically, i would like to to group name , and the value is based on priority without join the query itself

Advertisement

Answer

You can use row_number()

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement