SQL interview questions

Want to become an expert in cracking SQL interview questions/Database interview questions?

Start with practicing the questions below. Whether a question involves multiple choice or live coding, we will give you hints as you go and tell you if your answers are correct or incorrect.

After that, take our timed public SQL interview questions test.

To use our service for testing developers, purchase one of the paid plans for companies.


1. Enrollment
SQL Conditions Public

A table containing the enro...
Easy  
2min
Solve question

2. Students
SQL Aggregation Public

Select all queries that ret...
Easy  
2min
Solve question

3. WebShop
SQL Joins Public

Each item in a web shop bel...
Easy  
7min
Solve question

4. Pets
SQL Joins Public

Information about pets is k...
Hard  
3min
Solve question

5. Workers
SQL Subqueries Public

Given the following data de...
Hard  
3min
Solve question

6. Sessions
SQL Aggregation Public

App usage data are kept in ...
Hard  
7min
Solve question

If you feel ready, take one of our timed public SQL interview questions tests:

  • ASP.NET MVC, HTML/CSS, JavaScript, C#, and SQL online test ( Easy  /  Hard )
  • ASP.NET Web Forms, HTML/CSS, JS, C#, and SQL online test ( Easy  /  Hard )
  • C# and SQL online test ( Easy  /  Hard )
  • C++ and SQL online test ( Easy  /  Hard )
  • HTML/CSS, JavaScript, and SQL online test ( Easy  /  Hard )
  • HTML/CSS, JavaScript, C#, and SQL online test ( Easy  /  Hard )
  • HTML/CSS, JavaScript, Java, and SQL online test ( Easy  /  Hard )
  • HTML/CSS, JavaScript, PHP, and SQL online test ( Easy  /  Hard )
  • HTML/CSS, JavaScript, Python, and SQL online test ( Easy  /  Hard )
  • HTML/CSS, JavaScript, Ruby, and SQL online test ( Easy  /  Hard )
  • HTML/CSS, JavaScript, SQL, and C# Algorithms online test ( Easy  /  Hard )
  • HTML/CSS, JavaScript, SQL, and Java Algorithms online test ( Easy  /  Hard )
  • Java and SQL online test ( Easy  /  Hard )
  • JavaScript and SQL online test ( Easy  /  Hard )
  • Oracle PL/SQL (15-min test) ( Easy )
  • PHP and SQL online test ( Easy  /  Hard )
  • Python and SQL online test ( Easy  /  Hard )
  • Ruby and SQL online test ( Easy  /  Hard )
  • SQL (15-min test) ( Easy  /  Hard )
  • SQL and C# Algorithms online test ( Easy  /  Hard )
  • SQL and C++ Algorithms online test ( Easy  /  Hard )
  • SQL and Java Algorithms online test ( Easy  /  Hard )
Not exactly what you are looking for? Go to our For developers section.