Q.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 Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation for Assertion (A). (B) Both Assertion (A) and Reason (R) are true and Reason (R) is not the correct explanation for Assertion (A). (C) Assertion (A) is true but, Reason (R) is false. (D) Assertion (A) is false but, Reason (R) is true.
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →Both statements are true: MySQL can retrieve records from multiple tables, and foreign keys establish relationships between tables — but foreign keys are not required to query multiple tables, so the reason doesn't explain the assertion.
The question tests whether you understand the distinction between capability (what MySQL can do) and mechanism (what enables or requires that capability).
Assertion (A) claims MySQL can retrieve records from more than one table. This is absolutely true. MySQL supports several ways to combine data from multiple tables:
- JOIN operations (INNER, LEFT, RIGHT, CROSS) that merge rows based on conditions
- UNION that stacks result sets vertically
- Subqueries that nest one query inside another
- Even simple comma-separated table lists in the FROM clause (implicit Cartesian product)
None of these require a foreign key to exist. You can join any two tables on any column, or even on a constant condition. The database engine doesn't check for foreign key constraints before allowing a multi-table query.
Reason (R) states that foreign keys establish relationships between tables. This is also true. A foreign key constraint enforces referential integrity: it ensures that a value in one table's column must exist in another table's primary key. This logically represents a relationship (e.g., every order must belong to an existing customer).
The critical question: does (R) explain (A)?
No. Foreign keys are a data integrity tool, not a query prerequisite. They help maintain consistent relationships and can guide query optimizers, but MySQL happily retrieves data from multiple tables whether or not foreign keys are defined. Many databases in production use JOINs extensively without declaring foreign key constraints (relying instead on application logic or performance considerations). …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.