SQL Exercises: Display the year and subject of Dennis Gabor prize
SQL Basic Select Statement: Exercise-14 with Solution.
From the following table, write a SQL query to locate the Nobel Prize winner ‘Dennis Gabor'. Return year, subject.
Sample table: nobel_win
SELECT year, subject FROM nobel_win WHERE winner = 'Dennis Gabor';
Output of the Query:
year subject 1971 Physics
The above query in SQL that retrieves data from a table called 'nobel_win'. The query selects the year and subject columns from the table and filters the results by only displaying rows where the winner column is equal to 'Dennis Gabor'. The query is asking the database to select the year and subject of the nobel prize win for the winner named 'Dennis Gabor'.
Relational Algebra Expression:
Relational Algebra Tree:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
Previous SQL Exercise: Who won the 1971 Nobel Prize for Literature?.
Next SQL Exercise: Names of Physics winners since 1950.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
SQL: Tips of the Day
What is the best way to paginate results in SQL Server?
SELECT * FROM ( SELECT ROW_NUMBER() OVER ( ORDER BY OrderDate ) AS RowNum, * FROM Orders WHERE OrderDate >= '1980-01-01' ) AS RowConstrainedResult WHERE RowNum >= 1 AND RowNum < 20 ORDER BY RowNum
Database: SQL Server
- Weekly Trends
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join
- Python Tutorial
- Python Array Exercises
- SQL Cross Join
- C# Sharp Array Exercises
We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook