Identify the correct statement(s) based on operations on relations: 'T1' AND 'T2'
(A) SELECT * FROM T1,T2 is used to find Cartesian product on two tables.
(B) SELECT * FROM T1 AND SELECT * FROM T2 is used to find Cartesian product on two tables.
(C) SELECT * FROM T1,T2 is used to find equi join on two tables.
(D) SELECT * FROM T1 JOIN SELECT * FROM T2 is used to find equi join on two tables.
Identify the correct statement(s) based on operations on relations: 'T1' AND 'T2'
(A) SELECT * FROM T1,T2 is used to find Cartesian product on two tables.
(B) SELECT * FROM T1 AND SELECT * FROM T2 is used to find Cartesian product on two tables.
(C) SELECT * FROM T1,T2 is used to find equi join on two tables.
(D) SELECT * FROM T1 JOIN SELECT * FROM T2 is used to find equi join on two tables.
Solution
SELECT * FROM T1, T2 lists both tables in the FROM clause with no condition, so every row of T1 is paired with every row of T2. This is the Cartesian product, so (A) is correct.
(C): an equi join needs an equality condition such as (or ). Without it, the comma form gives a Cartesian product, not an equi join.
(B) and (D): these are not valid SQL. AND joins conditions, not queries, and JOIN needs table names, not SELECT statements written like this.
Related questions:
2025: 30 May Shift 2
2026: 19 May Shift 1