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

<p>A table containing the e...
Easy  
2min
Solve question

2. Students
SQL Aggregation Public

<p>Select all queries that ...
Easy  
2min
Solve question

3. WebShop
SQL Joins Public

<p>Each item in a web shop ...
Easy  
7min
Solve question

4. Pets
SQL Joins Public

<p>Information about pets i...
Hard  
3min
Solve question

5. Workers
SQL Subqueries Public

<p>Given the following data...
Hard  
3min
Solve question

6. Sessions
SQL Aggregation Public

<p>App usage data are kept ...
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.