Ahlahn
06-03-2011, 02:42 PM
Table name = nobel
yr subject winner
1960 Chemistry Willard F. Libby
1960 Literature Saint-John Perse
1960 Medicine Sir Frank Macfarlane Burnet
1960 Medicine Peter Medawar
I need to find : In which years was the Physics prize awarded but no Chemistry prize?
Here's what I have
select yr from nobel where yr NOT IN(select yr from nobel where subject='Chemistry') AND subject='Physics'
Why is it incorrect?!
yr subject winner
1960 Chemistry Willard F. Libby
1960 Literature Saint-John Perse
1960 Medicine Sir Frank Macfarlane Burnet
1960 Medicine Peter Medawar
I need to find : In which years was the Physics prize awarded but no Chemistry prize?
Here's what I have
select yr from nobel where yr NOT IN(select yr from nobel where subject='Chemistry') AND subject='Physics'
Why is it incorrect?!