GateAI
SQL

GATE CSE 2015 Set 1 · Q7

MCQ1 markEasy

Time

SELECT operation in SQL is equivalent to

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: D) the projection operation in relational algebra, except that SELECT in SQL retains duplicates

SQL

In relational algebra, the projection operation (Π\Pi) 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.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

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

Where do you stand for GATE?

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.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

SQL in GATE CSE

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 SQL

More from GATE CSE 2015 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2015 Set 1 · Q7 · MCQ

SELECT operation in SQL is equivalent to

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.