Back to the 2023 paper

Unit 2: Relational Query Languages

20232m

A row from a table is selected by

  • (i) selection operator
  • (ii) projection operator
  • (iii) union operator
  • (iv) none of these
Worked SolutionAI Assisted

Answer: (i) selection operator

Explanation: In relational algebra, selection (sigma) selects rows/tuples satisfying a condition horizontally. Projection (pi) selects columns/attributes vertically. Union combines tuples from two compatible relations. So row selection is via selection operator, e.g., sigma_{age>20}(Student).

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.