Skip to main contentSkip to solution

Which of the following algebric operations is used to extract a specific column from a relation?

Solution

✅ Correct Option: 2

Projection (π\pi) picks out specific columns (attributes) from a relation and discards the rest, removing duplicate rows from the result. For example, πName(Student)\pi_{Name}(Student) returns only the Name column.


Selection: it picks rows (tuples) that satisfy a condition, not columns.

Memory trick: Selection = Slice rows, Projection = Pick columns.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question