CS FundamentalsHardGATE CS · Product placement

Which statement about the expressive power of query languages is correct?

  1. A. Relational algebra, safe tuple calculus and safe domain calculus are equally expressive, while SQL with aggregation and recursion can express more
  2. B. Relational algebra can compute the transitive closure of any relation
  3. C. Domain calculus can express aggregates that algebra cannot
  4. D. Relational algebra is strictly more expressive than safe tuple calculus

Correct answer: A. Relational algebra, safe tuple calculus and safe domain calculus are equally expressive, while SQL with aggregation and recursion can express more

Codd's theorem makes RA and safe relational calculus equivalent ('relationally complete'). Transitive closure and aggregates are beyond them, which is why SQL adds GROUP BY and WITH RECURSIVE.

More DBMS and SQL questions

Exams that ask this topic