From d81fe14b2652eb395cbd179b0f76bb03ccd0ec4f Mon Sep 17 00:00:00 2001 From: inaherlihy Date: Sun, 29 Jan 2017 22:21:51 -0800 Subject: [PATCH] #14 SELECT winner, subject FROM nobel WHERE yr=1984 ORDER BY subject IN ('Physics','Chemistry'),subject,winner --- select-from-nobel.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select-from-nobel.sql b/select-from-nobel.sql index 9e15cba..9bacc1c 100644 --- a/select-from-nobel.sql +++ b/select-from-nobel.sql @@ -119,7 +119,7 @@ The expression subject IN ('Chemistry','Physics') can be used as a value - it wi Show the 1984 winners ordered by subject and winner name; but list Chemistry and Physics last. */ -SELECT winner, subject, subject IN ('Physics','Chemistry') +SELECT winner, subject FROM nobel WHERE yr=1984 ORDER BY subject IN ('Physics','Chemistry'),subject,winner