From 5ea26f7bf4572b3325e42eee0575d7d1b0fce55a Mon Sep 17 00:00:00 2001 From: Hari Pad Bharti <32911530+haripadbharti1@users.noreply.github.com> Date: Thu, 7 Jun 2018 14:22:52 -0400 Subject: [PATCH] Update select-from-nobel.sql It was not correct as have extra column, please verify. --- select-from-nobel.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/select-from-nobel.sql b/select-from-nobel.sql index 9e15cba..b78ca02 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 +ORDER BY subject IN ('Chemistry', 'Physics'),subject,winner