Your task: write the relational algebra expressions for the following questions.
Consider the following table:
Get the student ids of the students who got more than 70 marks in the subject 1011.
Get the names and subject codes for which the students got more than 70 marks in the subject.
Get the name of students whose average marks were over 80.
Consider the following relational schema:
author (authorID, firstName, lastName)
authorPub (authorID, pubID, institution)
book (bookID, title, month, year, authorID)
pub (pubID, ptitle, bookID)
Find the name of all authors who are book editors.
Find the name of all authors who are not book editors.
Find the name of all authors who have at least one publication in the database.
Find the name of the authors authored a pub that was published in July.
Find the name of all authors who are book editors but do not have any publication in the database.
Consider the following relational schema:
Student (studentID, name, age, gender)
Course (courseID, courseName, faculty)
Enrolment (courseID, studentID)
JobRequirement (job, courseID)
Find the name of students who have enrolled more than 3 courses.
Find the name of female students who have enrolled in at least one course required by the "designer" job.
Find the name of students who have enrolled in all the courses needed by the "designer" job and never enrolled in any courses offered by the "law" faculty.
Find the name of courses in which the students are all male students or all female students.