Skip to content

Update select-from-nobel.sql#32

Open
kai591 wants to merge 1 commit intojisaw:masterfrom
kai591:patch-2
Open

Update select-from-nobel.sql#32
kai591 wants to merge 1 commit intojisaw:masterfrom
kai591:patch-2

Conversation

@kai591
Copy link

@kai591 kai591 commented Feb 10, 2021

this the actual answer of this question

Show the 1984 winners and subject ordered by subject and winner name; but list Chemistry and Physics last.

SELECT winner, subject
FROM nobel
WHERE yr = 1984
ORDER BY CASE WHEN subject IN ('Chemistry','Physics') THEN 1 ELSE 0 END,subject,winner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant