Assertion (A): We can retrieve records from more than one table in MYSQL.…
2025
Assertion (A): We can retrieve records from more than one table in MYSQL.
Reason (R): Foreign key is used to establish a relationship between two tables.
- A.
Both (A) and (R) are true and (R) is the correct explanation of (A)
- B.
Both Assertion (A) and Reason (R) are true and Reason (R) is not the correct explanation for Assertion (A)
- C.
(A) is true but (R) is false
- D.
(A) is false but (R) is true
Attempted by 1380 students.
Show answer & explanation
Correct answer: B
CONCEPT: In an Assertion-Reason (A-R) item, evaluate each statement independently first, then test whether the Reason is the actual explanation for the Assertion, not merely another true fact on the same topic. In relational databases, retrieving data across tables (JOIN) and enforcing referential integrity (foreign keys) are related but distinct concepts: a JOIN combines rows by matching column values, while a foreign key is a schema-level constraint that enforces valid references between tables.
Evaluate Assertion (A). MySQL's JOIN clause (INNER JOIN, LEFT JOIN, etc.) lets one SELECT statement combine matching rows from two or more tables, so Assertion (A) is true.
Evaluate Reason (R). A foreign key is a column in one table that references the primary key of another table; its role is to enforce referential integrity and represent the relationship between the two tables, so Reason (R) is true.
Test whether (R) explains (A). The retrieval capability in (A) comes from the JOIN operation matching column values in the ON/WHERE clause -- this works even between tables that share no declared foreign key at all, as long as matching values exist. So (R) describes a schema-level integrity rule, not the mechanism that lets multiple tables be queried together.
CROSS-CHECK: A query such as “SELECT * FROM orders o JOIN customers c ON o.customer_name = c.name;” still returns combined rows even though customer_name is not declared as a foreign key anywhere -- confirming that multi-table retrieval does not depend on a foreign key existing.
CONCLUSION: Both (A) and (R) are individually true, but (R) is not the correct explanation of (A).