I have a schema that looks like this: Student (sid, name, age, department) Course(cid, name) Enrollment(sid, cid, term, grade)
Using relational calculus, find the names of the students who took all courses. What I have now looks like this:
{t | ∃ s ∈ Student (t.name = s.name ^ ∃ e ∈ Enrollment(s.sid = e.sid ^ ∀ c ∈ C (c.cid = e.cid))) }
Can someone tell me if this is right or not.