Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 ( 5 points 1 points per query ) : Student: ( Sid , Student _ name, GPA, Department _ ID ) Department: (
Question points points per query:
Student: Sid Studentname, GPA, DepartmentID
Department: Did Departmentname, address
Course: Cid Coursename, credit, Syllabus
Enroll: CourseID StudentID DepartmentID Grade
DepartmentID in Student relations is a foreign key referencing the primary key of the Department relation. CourseID
StudentID and DepartmentID in the Enroll relation are foreign keys referencing the primary keys of the Course, Student, and
Department, respectively. From the relational schemas illustrated above, use the different relational algebra operators and
operations rho sigma pi discussed in class to build the following queries:
Display names and GPAs of students along with the names of their departments.
Assume students can be in multiple departments: Display students' names in the Computer Science department but not in
the Marketing department.
Display students by name and GPA who received points included in the Operating Systems course.
Display students by names and GPA enrolled in both Computer Networks and Operating Systems courses but not in
the Programming course.
Display students by name and GPA from the Computer Science department who received points or more
included in the Modern Database course and points or more included in the Computer Networks course.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started