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

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.