What type of join produces a Cartesian product, matching every single row of the first table with every single row of the second table? MCQ with Answer and Explanation
What type of join produces a Cartesian product, matching every single row of the first table with every single row of the second table?
A. Cross Join
B. Natural Join
C. Left Join
D. Inner Join
Answer: Option A
Solution (By JKExamLibrary)
A Cross Join returns the Cartesian product of the two tables, multiplying the total number of rows from the first table by the number of rows in the second table.
Explanation:
DELETE is a DML command that can be rolled back and can use WHERE; TRUNCATE is a DDL command that removes all rows and cannot be rolled back (in some DBMS) and resets auto-increment counters.
Which type of JOIN returns all matching rows from both tables, plus all unmatched rows from the left table with NULL values filled in for the right table columns?
Explanation:
A Left Outer Join preserves all records from the left table, matching them with right table records when possible, or inserting NULL values if no match is found.
No comments yet. Be the first to start the discussion!