Skip to main contentSkip to solution

Which of the following holds TRUE about relations in a relational database management system?

(A) Ordering of rows is immaterial.

(B) No two rows are identical.

(C) Ordering of columns is immaterial.

(D) No two columns are identical.

Solution

✅ Correct Option: 4

A relation is a set of tuples over a set of attributes, so all four statements hold.

(A) A set has no order, so the order of rows (tuples) does not matter.

(B) A set has no duplicate elements, so no two rows (tuples) are identical.

(C) Columns are identified by attribute name, not by position, so their order does not matter.

(D) Each attribute in a relation has a distinct name, so no two columns are identical.


Statement (D) is the one students often doubt. SQL query results can repeat rows or column names, but that is not allowed in the formal relational model.

Keyboard Shortcuts

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