Skip to content
Advertisement

SQL ~ How to sort alphabetically WHEN value is same

I have table like this ordered in DESC order by value “key”:

I want to sort it alphabetically when the key value is same So I want it to be like this:

How can I do that?

Advertisement

Answer

Just use two order by keys:

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