Back to the 2021 paper

Unit 2: Relational Query Languages

20212m

Which of the following operations is used if we are interested in only certain columns of a table?

  • (i) PROJECTION
    (ii) SELECTION
    (ii) UNION
    (iv) JOIN
Worked SolutionAI Assisted

Answer: (i) PROJECTION

Explanation: Projection (pi) operates on columns - selects specific attributes vertically, eliminating duplicates. Selection (sigma) operates on rows - selects tuples satisfying condition. Union and Join combine relations. Example: pi_{name,age}(Student) returns only name and age columns.

Similar questions

Budget AppAndroid App

Pocketly on Android

Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.