Assignment of Relational Algebra With Solutions
Assignment of Relational Algebra With Solutions
Example Queries
• List the name of students who are older than 30 and who are
not studying CS.
πStName(σAge>30(STUDENTS)) −
πStName(σMajor=’CS’(STUDENTS))
1. List the names of all students who have borrowed a book and
who are CS majors.
πStName(σSTUDENTS.StId=borrows.StId
(σMajor=’CS’(STUDENTS) × borrows))