Questions: Relational Calculus (Tuple and Domain)

4 questions to test your understanding

Score: 0 / 4
Question 1 Multiple Choice

Given the relation instructor(ID, name, dept_name, salary), which tuple relational calculus expression returns the IDs of instructors whose salary is greater than 80000?

A{t | t in instructor and t[salary] > 80000}
B{t | exists s in instructor (t[ID] = s[ID] and s[salary] > 80000)}
C{t | for all s in instructor (s[salary] > 80000)}
D{t | not (t in instructor) and t[salary] > 80000}
Question 2 Multiple Choice

What does Codd's theorem state about relational algebra and relational calculus?

ARelational algebra can express strictly more queries than relational calculus
BRelational calculus can express strictly more queries than relational algebra
CRelational algebra and safe relational calculus have the same expressive power
DNeither language can express joins
Question 3 True / False

The tuple relational calculus expression {t | not (t in instructor)} is a safe query.

TTrue
FFalse
Question 4 Short Answer

Explain in one or two sentences how the tuple relational calculus and the domain relational calculus differ.

Think about your answer, then reveal below.