Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a. Find the course id and section id for all courses offered in the Spring of 2020. b. Find the names of all students who

image text in transcribed

a. Find the course id and section id for all courses offered in the Spring of 2020. b. Find the names of all students who have finished or are taking Database Design. Do not use any natural joins in your answer. c. Assume that Michael Scott is a student at the university, and there has only ever been one Michael Scott there. Find the names of all students with more credits completed than Michael Scott. d. Find the names and IDs of all students who have taken a course taught by Dr. Who. Use at least one natural join in your answer. Be careful with this question! e. Find the department and course id of all classes that were taught or are being taught by an instructor from a different department. Use at least one set of operations ( union, intersection, or deference) in your query. f. Find the name and ID of all students who are taking all of the courses that Dr. Who is teaching in the Spring 2020 semester. g. Find the IDs of all students who have taken all of the CMPSC courses. Use the division operation. h. Do the same operation as in problem 7, using only fundamental operations.

database homework

student takes ID course id sec id semester 1er 4112 dept_name tot cred grade advisor section course_id sec id semester year building TOOM_10 time_slof_id course course id title dept name credits department dept name building budget time slot time slot id day start time end time instructor classroom prerea course id prereg id ID name building NOOM O Capacity feaches dept_name salary ID course id serid semester Express each of the following queries using relational algebra. (10 points each) Note: Your queries should use as few relations as arguments as possible (i.e. do not include relations that are not needed to produce the results). student takes ID course id sec id semester 1er 4112 dept_name tot cred grade advisor section course_id sec id semester year building TOOM_10 time_slof_id course course id title dept name credits department dept name building budget time slot time slot id day start time end time instructor classroom prerea course id prereg id ID name building NOOM O Capacity feaches dept_name salary ID course id serid semester Express each of the following queries using relational algebra. (10 points each) Note: Your queries should use as few relations as arguments as possible (i.e. do not include relations that are not needed to produce the results)

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

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions