SELECT operation in SQL is equivalent to
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2015 Set 1 · Q7
Time
Select one answerSingle correct
Solution
Official answer: D) the projection operation in relational algebra, except that SELECT in SQL retains duplicates
SQLIn relational algebra, the projection operation () selects specific attributes (columns) from a relation and eliminates duplicate tuples by default (as relations are mathematical sets).
In SQL, the SELECT clause specifies the list of attributes to project. However, SQL operates on multiset (bag) semantics, so SELECT retains duplicate rows unless explicitly told to eliminate them using SELECT DISTINCT.
Therefore, the SQL SELECT operation corresponds to the projection operation in relational algebra, except that SELECT in SQL retains duplicates.
Hence, (D) is the correct option.
Try the question first, then check your work.
Examiner trap
Recall that the SQL SELECT clause chooses columns, whereas relational algebra's projection () also eliminates duplicate rows by default.
This SQL previous year question is Q7 of the GATE CSE 2015 Set 1 paper. Find more GATE CSE PYQs on SQL in Databases, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related SQL PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
SQL has 17 GATE CSE PYQs across 14 papers from 2011 to 2025. 6 of them are 1-mark MCQs like this one, and GATE CSE 2015 Set 1 has 2.
How GATE tests SQLIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.