GATEverse
← GATE CSE 2007

Q59

MCQ2 marks, −0.5

Information about a collection of students is given by the relation studInfo(studId‾, name, sex)\text{studInfo(}\underline{\text{studId}},\text{ name, sex)}. The relation enroll(studId, courseId)\text{enroll(}{\text{studId}},{\text{ courseId}}) gives which student has enrolled for (or taken) what course(s). Assume that every course is taken by at least one male and at least one female student. What does the following relational algebra expression represent? πcourceId((πstudId(σsex=′female′(studInfo))×πcourseId(enroll))−enroll)\pi _{courceId}\left(\left(\pi_{\text{studId}}\left(\sigma_{sex='female'}\left(\text{studInfo}\right)\right) \times \pi_{courseId}\left(\text{enroll}\right)\right) -\text{enroll}\right)

Sign in to save attempts.

Loading…