Similar questions 6 more →
Relational Algebra & Calculus




Answer & solution
Answer: π_{srollno,sname}(STUDENT ⋈ (π_{srollno}(INTERVIEW) − π_{srollno}(π_{cname,srollno}(INTERVIEW) − π_{cname,srollno}(OFFER)))) (no official key was published)
First form the interviewed company–student pairs I=π_{cname,srollno}(INTERVIEW) and offered pairs O=π_{cname,srollno}(OFFER). The difference I−O contains precisely the interviews not followed by an offer from that same company. Its student projection is the disqualified set. Therefore:
π_{srollno,sname}(STUDENT ⋈ (π_{srollno}(INTERVIEW) − π_{srollno}(I−O))).
Expanding the abbreviations gives the expression in the derived answer, using only join, projection and difference. Starting with students who appear in INTERVIEW excludes students with no interviews, rather than admitting them by vacuous truth. Receiving some offer is insufficient: every interviewed company must be covered.