Relational Algebra & Calculus




Answer & solution
Answer: π_{srollno,sname}(STUDENT ⋈ (π_{srollno}(INTERVIEW) − π_{srollno}(OFFER))) (no official key was published)
Let I=π_{srollno}(INTERVIEW) and O=π_{srollno}(OFFER). I−O contains exactly the students with at least one interview and no offer at all. Join this one-column relation to STUDENT on srollno and project srollno,sname:
π_{srollno,sname}(STUDENT ⋈ (π_{srollno}(INTERVIEW) − π_{srollno}(OFFER))).
Only the permitted join, projection and difference operators are needed. Relational-algebra projection removes duplicates, so repeated interviews do not repeat students.