Free SQL Intermediate Level Practice
Quiz-summary
0 of 5 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
Information
The Intermediate SQL Quiz challenges learners beyond basic queries, focusing on real-world concepts like joins, subqueries, window functions, filtering logic, and query execution order. It tests not just syntax knowledge but the ability to reason about how SQL actually processes and returns data. Through carefully designed scenario-based questions, Quizsm helps learners identify hidden knowledge gaps and strengthen analytical SQL skills. Repeated practice on Quizsm enables professionals to build deeper query intuition and confidently handle complex database problems.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 5 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- Answered
- Review
-
Question 1 of 5
1. Question
Consider the query:
SELECT dept_id, COUNT(*) AS emp_count FROM employees WHERE emp_count > 5 GROUP BY dept_id;What will happen when this query is executed?
Correct
Incorrect
-
Question 2 of 5
2. Question
Consider the query:
SELECT e.name, d.dept_name FROM employees e LEFT JOIN departments d ON e.dept_id = d.dept_id WHERE d.location = 'NY';Which statement best describes the result?
Correct
Incorrect
-
Question 3 of 5
3. Question
Assume departments.id contains values (1,2,3,NULL).
What will the following query return?SELECT * FROM employees WHERE dept_id NOT IN (SELECT id FROM departments);Correct
Incorrect
-
Question 4 of 5
4. Question
What will the following query return?
SELECT name, dept_id, AVG(salary) OVER (PARTITION BY dept_id) AS dept_avg FROM employees;Correct
Incorrect
-
Question 5 of 5
5. Question
Suppose:
- Table orders has 100 rows
- Table order_items has 5 rows per order
You run:
SELECT * FROM orders o JOIN order_items i ON o.order_id = i.order_id;How many rows will the result most likely contain?
Correct
Incorrect

