SQL allows combining multiple tables using JOIN clauses and refining results further with the WHERE clause. While JOINs establish table relationships, WHERE conditions filter the output.
Time limit: 0
Quiz Summary
0 of 15 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
What does the WHERE clause do in a SQL JOIN query?
Correct
Incorrect
Question 2 of 15
2. Question
Which of the following uses JOIN with a WHERE clause correctly?
Correct
Incorrect
Question 3 of 15
3. Question
Which clause is responsible for establishing the relationship between two tables?
Correct
Incorrect
Question 4 of 15
4. Question
What does this query return?
SELECT * FROM orders o JOIN customers c ON o.customer_id = c.customer_id WHERE c.city = ‘Delhi’;
Correct
Incorrect
Question 5 of 15
5. Question
In older SQL syntax, how were JOINs written before the `JOIN` keyword existed?
Correct
Incorrect
Question 6 of 15
6. Question
Which is a disadvantage of using `WHERE` instead of `JOIN … ON`?
Correct
Incorrect
Question 7 of 15
7. Question
What does this query do?
SELECT * FROM emp, dept WHERE emp.dept_id = dept.id AND emp.salary > 50000;
Correct
Incorrect
Question 8 of 15
8. Question
Which join type benefits most from WHERE clause filtering?
Correct
Incorrect
Question 9 of 15
9. Question
Can you apply filters on columns from both tables using WHERE?
Correct
Incorrect
Question 10 of 15
10. Question
Which is the correct order of clauses in a JOIN query with WHERE?
Correct
Incorrect
Question 11 of 15
11. Question
What is the output of this query if no record satisfies the WHERE condition?
SELECT * FROM A JOIN B ON A.id = B.id WHERE A.age > 100;
Correct
Incorrect
Question 12 of 15
12. Question
What is the main advantage of splitting JOIN and WHERE clauses?
Correct
Incorrect
Question 13 of 15
13. Question
What happens if the JOIN condition is written in the WHERE clause accidentally?
Correct
Incorrect
Question 14 of 15
14. Question
In which case should the JOIN condition **not** be placed inside WHERE clause?
Correct
Incorrect
Question 15 of 15
15. Question
Which of these best describes modern SQL JOIN usage?
Correct
Incorrect
Summary
Using the `WHERE` clause with `JOIN` in SQL helps filter records **after the tables have been joined**. While traditional SQL allowed joins in the `WHERE` clause, modern syntax encourages separating `JOIN` and `WHERE` for **better clarity and correctness**, especially when using outer joins.
At QuizOrbit, our team specializes in fun, informative quizzes across topics like general knowledge, technology, and entertainment. Boost your knowledge with our expert-designed quizzes.