Skip to content
Advertisement

How can I select one value from list

I would like to select one record if there are many status. example, if there is the same user and status A, B, C, select only record ‘A’. If there is the same user and status B, C, choose B, if there is only one status, bring that one.

expected RESULT

Could anyone help to suggest? Thank you

Advertisement

Answer

group by does what you need in that case, and it’s a bit easier than analytical functions:

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