Skip to content
Advertisement

Order by multiple columns in the SELECT query

How can i order the results in my select query to have them like this?

I tried this query but the result is not what I’m looking for:

In which col1 represents the first number, col2 is the second one and col3 is the last number in the above example.

This query returns:

Thanks

Advertisement

Answer

Sort should be 1-3-2, I’d say. See line #15.

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