MCQ King
26 – Joins MCQ
Best of luck!
1 / 25
1. Which SQL clause is used to combine rows from two or more tables based on a related column between them?
2 / 25
2. In SQL Server, what is the purpose of a JOIN clause?
3 / 25
3. What is the result of a Cartesian product when joining two tables in SQL Server?
4 / 25
4. Which SQL statement is used to perform a Natural Join in SQL Server?
5 / 25
5. What is the main drawback of using a Natural Join in SQL Server?
6 / 25
6. In SQL Server, which type of join returns all rows when there is a match in either the left or the right table?
7 / 25
7. What is the result when performing an INNER JOIN between two tables with no matching rows in SQL Server?
8 / 25
8. In SQL Server, which join type is represented by the keyword “LEFT JOIN”?
9 / 25
9. What does the ON clause specify in an SQL Server JOIN statement?
10 / 25
10. Which type of JOIN in SQL Server returns all rows from the left table, and the matched rows from the right table?
11 / 25
11. What is the purpose of a CROSS JOIN in SQL Server?
12 / 25
12. In SQL Server, which type of JOIN returns only the rows where there is no match in the joined tables?
13 / 25
13. Which type of JOIN in SQL Server returns all rows from both tables with NULL values in places where there is no match?
14 / 25
14. What is the result when performing a RIGHT JOIN between two tables with no matching rows in SQL Server?
15 / 25
15. In SQL Server, which join type is represented by the keyword “RIGHT JOIN”?
16 / 25
16. Which type of JOIN in SQL Server returns only the rows with matching values in both tables?
17 / 25
17. What is the result when performing a FULL OUTER JOIN between two tables with no matching rows in SQL Server?
18 / 25
18. In SQL Server, what is a self-join?
19 / 25
19. What is the purpose of using aliases in JOIN statements in SQL Server?
20 / 25
20. In SQL Server, which keyword is used to specify an alias for a table in a JOIN statement?
21 / 25
21. What is the result of a self-join in SQL Server?
22 / 25
22. Which SQL keyword is used to combine rows from two or more tables based on a related column between them?
23 / 25
23. In SQL Server, what is the result of performing a JOIN without specifying a condition in the ON clause?
24 / 25
24. In SQL Server, what is the primary difference between the INNER JOIN and OUTER JOIN clauses?
25 / 25
25. Which type of JOIN in SQL Server combines all rows from both tables, filling in NULL values for unmatched rows?
Your score is
Restart quiz