Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 ( 5 points 1 points per query ) : Student: ( Sid , Student _ name, GPA, Department _ ID ) Department: (

Question 1(5 points 1 points per query):
Student: (Sid, Student_name, GPA, Department_ID)
Department: (Did, Department_name, address)
Course: (Cid, Course_name, credit, Syllabus)
Enroll: (Course_ID, Student_ID, Department_ID, Grade)
Department_ID in Student relations is a foreign key referencing the primary key of the Department relation. Course_ID,
Student_ID, and Department_ID 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:
1. Display names and GPAs of students along with the names of their departments.
2. Assume students can be in multiple departments: Display students' names in the Computer Science department but not in
the Marketing department.
3. Display students (by name and GPA) who received 100 points (100 included) in the Operating Systems course.
4. Display students (by names and GPA) enrolled in both Computer Networks and Operating Systems courses but not in
the Programming course.
5. Display students (by name and GPA) from the Computer Science department who received 90 points or more (90
included) in the Modern Database course and 80 points or more (80 included) in the Computer Networks course.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

Students also viewed these Databases questions