Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

dbms Consider the following database schema and example instance: Course Student dept credit cs 1 BOY Enroll Preze 2011 A 30 10 PHYSSE MY Hints:

dbms
image text in transcribed
Consider the following database schema and example instance: Course Student dept credit cs 1 BOY Enroll Preze 2011 A 30 10 PHYSSE MY Hints: - Primary keys are underlined with red color. - The attribute cid and sid of relation Enroll is a foreign key to relations Course and Student, respectively. - All the attributes cid and pid (except for the one in Course) are a foreign key to relation Course. Write Relational Algebra queries to retrieve the following information: 1. Find the names of all the students enrolled in course 'EE401. 2. Write a relational algebra expression that for each student the title of the courses he/she has received an 'A' grade in. Return this information as tuples (name, title) where title and name represent the course title and student name, respectively. 3. Find the students (sid and name) that have taken at least one of the prerequisite(s) of course CS595' and got an *A grade in this prerequisite course. 4. List all the students (sid and name) who never got a grade lower than 'B' (grade point below 3.0). 5. List the titles of all the courses that student *Alice' has not taken. 6. List all the students and their GPA (result schema: sid and GPA). The GPA is calculated by summing up the grade of each course multiplied the number of credits for the course and then dividing the result by the total number of credits the student has taken. K

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_2

Step: 3

blur-text-image_3

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

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions

Question

Explain KPIs and their relevance in application of analytics.

Answered: 1 week ago