Been practising some SQL here: http://sqlzoo.net/wiki/SELECT_from_Nobel_Tutorial
For the last bit (14.), we have to sort by a certain column but have certain strings in the column go last. This is my query:
SELECT winner, subject
FROM nobel
WHERE yr = 1984
ORDER BY CASE WHEN subject IN ('Chemistry', 'Physics') THEN 2 ELSE 1 END, subject, winner
Is there a more efficient way of querying that without using cases?