programming-examples/sql/RetrieveFromTables/Write a SQL query to show all the winners in Physics for 1970 together with the winner of Economics for 1971.sql
2019-11-18 14:05:53 +01:00

8 lines
284 B
SQL

/* Write a SQL query to show all the winners in Physics for 1970 together with the winner of Economics for 1971.*/
SELECT *
FROM nobel_win
WHERE (subject ='Physics' AND year=1970)
UNION
SELECT *
FROM nobel_win
WHERE (subject ='Economics' AND year=1971);