Consider student (name, sex, marks) is relation where name is primary key then…

Consider student (name, sex, marks) is relation where name is primary key then the following relational algebra expression.

π name (σ sex=’female’ (student)−(π name (student)⋈ ρ n,x,m (student) on sex=’female’ ∧ x=’male’∧ marks≤m) produces

Answer: C. Names of girls with marks more than all the boysThis expression is selecting the names of female students σ sex=′female′​ and subtracting the names of female students who have marks less than or equal to…

  1. A.

    Names of girls with highest marks

  2. B.

    Names of girls with more marks than some boy

  3. C.

    Names of girls with marks more than all the boys

  4. D.

    Names of girls with marks not less than some boy

Attempted by 70 students.

Show answer & explanation

Correct answer: C

This expression is selecting the names of female students σ sex=′female′​ and subtracting the names of female students who have marks less than or equal to some male student (marks≤m).

Therefore, the expression produces:

c) Names of girls with marks more than all the boys

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…