w3resource

SQL Exercises: Display the Nobel prizes for 1970


12. Nobel Winner of 1970

From the following table, write a SQL query to find the Nobel Prize winner(s) for the year 1970. Return year, subject and winner.

Sample table : nobel_win

YEAR SUBJECT                   WINNER                                        COUNTRY                CATEGORY
---- ------------------------- --------------------------------------------- ------------------------- ------------
1970 Physics                   Hannes Alfven                                 Sweden                 Scientist
1970 Physics                   Louis Neel                                    France                 Scientist
1970 Chemistry                 Luis Federico Leloir                          France                 Scientist
1970 Physiology                Ulf von Euler                                 Sweden                 Scientist
1970 Physiology                Bernard Katz                                  Germany                Scientist
1970 Literature                Aleksandr Solzhenitsyn                        Russia                 Linguist
1970 Economics                 Paul Samuelson                                USA                    Economist
1970 Physiology                Julius Axelrod                                USA                    Scientist
.....
1994 Literature                Kenzaburo Oe                                  Japan                  Linguist

View the table

Sample Solution :

-- This query selects specific columns 'year', 'subject', and 'winner' from the 'nobel_win' table.
SELECT year, subject, winner
-- Specifies the table from which to retrieve the data (in this case, 'nobel_win').
FROM nobel_win
-- Filters the rows to only include those where the 'year' column has the value 1970.
WHERE year = 1970;

Output of the Query:

year	subject		winner
1970	Physics		Hannes Alfven
1970	Physics		Louis Neel
1970	Chemistry	Luis Federico Leloir
1970	Physiology	Julius Axelrod
1970	Physiology	Ulf von Euler
1970	Physiology	Bernard Katz
1970	Literature	Aleksandr Solzhenitsyn
1970	Economics	Paul Samuelson

Code Explanation:

The above query in SQL that selects the "year", "subject" and "winner" columns from the 'nobel_win' table where the value of "year" column is 1970. The WHERE clause is used to filter the rows and only return the rows that match the condition specified in the WHERE clause.

Relational Algebra Expression:

Relational Algebra Expression: Select all columns against a specified condition.


Relational Algebra Tree:

Relational Algebra Tree: Select all columns against a specified condition


Go to:


PREV : Orders by Salesperson 5001.
NEXT : Literature Winner 1971.


Practice Online



For more Practice: Solve these Related Problems:

  • Write a SQL query to find Nobel Prize winners for the year 1971.
  • Write a SQL query to retrieve Nobel Prize winners for the year 1980.
  • Write a SQL query to list Nobel Prize winners for the year 1990.
  • Write a SQL query to identify Nobel Prize winners for the year 2000.


Have another way to solve this solution? Contribute your code (and comments) through Disqus.

What is the difficulty level of this exercise?

Test your Programming skills with w3resource's quiz.



Follow us on Facebook and Twitter for latest update.