Answers for "sql order by except one row"

SQL
0

sql order by except one row

SELECT name
FROM categories
ORDER
    BY CASE WHEN name = 'Other'
            THEN 1 -- last
            ELSE 0 -- first
        END ASC
     , name ASC
Posted by: Guest on July-15-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language