Started solving problems given on sqlzoo.net http://sqlzoo.net/wiki/SELECT_from_Nobel_Tutorial
The 8th question given on this tutorial has been solved before on this page Simple SELECT SQL query not working in extensive detail but I don't understand why my answer is incorrect and giving me wrong results.
My query:
Select distinct yr
From (Select distinct yr, subject From nobel Where subject!='Chemistry')X
Where subject='Physics'
Can someone please help explain why my query is not correct?