SQL Exercises: Details of the prize won by Johannes Georg Bednorz
22. Details of Johannes Georg Bednorz
From the following table, write a SQL query to find the details of the Nobel Prize winner 'Johannes Georg Bednorz'. Return year, subject, winner, country, and category.
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
Sample Solution :
-- This query selects all columns from the 'nobel_win' table.
SELECT *
-- 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 'winner' column has the value 'Johannes Georg Bednorz'.
WHERE winner = 'Johannes Georg Bednorz';
Output of the Query:
year subject winner country category 1987 Physics Johannes Georg Bednorz Germany Scientist
Code Explanation:
The above SQL query retrieves all columns from the 'nobel_win' table where the winner is 'Johannes Georg Bednorz'. The query will return all rows that match this criteria, resulting in a list of all Nobel Prizes awarded to Johannes Georg Bednorz.
Relational Algebra Expression:
Relational Algebra Tree:
Go to:
PREV : Physiology Before 1971 & Peace After 1974.
NEXT : Winners Excluding Subjects Starting with P.
Practice Online
For more Practice: Solve these Related Problems:
- Write a SQL query to find the details of Nobel laureate 'Albert Einstein'.
- Write a SQL query to retrieve details of winner 'Marie Curie'.
- Write a SQL query to display details of 'Niels Bohr'.
- Write a SQL query to list details of 'Richard Feynman'.
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.
