UGC-NET Dec 2014 · SQL Queries

MCQ · 2 marks · Problem DBMS-SQL-0011

Which of the following is true ? I. Implementation of self-join is possible in SQL with table alias. II. Outer-join operation is basic operation in relational algebra. III. Natural join and outer join operations are equivalent.
  1. A
    $I$ and $II$ are correct.
  2. B
    $II$ and $III$ are correct.
  3. C
    Only $III$ is correct.
  4. D
    Only $I$ is correct.

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionI: A self-join is written by listing the same table twice with different aliases, e.g. FROM emp e, emp m — true. II: The basic relational algebra operations are \(\sigma,\pi,\cup,-,\times,\rho\). Outer join is a derived (extended) operation — false. III: A natural join drops unmatched tuples, while an outer join keeps them padded with NULLs, so they are not equivalent — false. Only I is correct.Answer: D

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com