GATE / CS ARCHIVE

GATE CSE 1999 / QUESTION 2.25

SQL myths

Database Management Systems · SQL & Queries · Full GATE CSE 1999 paper

GATE 1999, Q2.25 2 marks · MSQ
Report issue

SQL & Queries

Question 2.25, GATE 1999: Which is correct: queries automatically remove duplicates; queries require indexes; column names may repeat within the same relation; none?
Tap to enlarge
Select all that apply
Answer & solution

Answer: D under the base-table reading (no official key was published)

Ordinary SELECT uses bag semantics; DISTINCT is needed when duplicate elimination is desired, so A is false. Indexes improve access paths but table scans execute queries without them, so B is false. A base table schema requires distinct column names within that table, so C is false in the stated relation-schema sense. Hence D. Different tables may share names and qualified references disambiguate them; some query result displays may also contain repeated labels, which is not the same as a valid base relation definition.

Original paper, page 6