I’ve got a table named nobel with the following fields: yr, subject and winner.
This table represents winners of nobel prize winners in a variety of subjects over the years.
I am looking for the years in which the Physics Prize was awarded but no Chemistry prize.
I was thinking the answer would look something like the following:
SELECT yr FROM nobel
WHERE subject ('Chemistry') IN (SELECT subject FROM nobel WHERE subject = 'Physics')
I’m fairly certain I’ve got the syntax wrong… and i’m not certain i’m going down the right road. Help would be appreciated. Thanks!
Try this: