Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

RELATIONAL ALGEBRA, NOT SQL. PLS DO NOT ANSWER WITH SQL QUERY! Instructions Try to answer all the questions using what you have learned in class

RELATIONAL ALGEBRA, NOT SQL. PLS DO NOT ANSWER WITH SQL QUERY!

image text in transcribedimage text in transcribed

Instructions Try to answer all the questions using what you have learned in class When writing a query, write the query in a way that it would work over all possible database instances and not just for the given example instance! Consider the following University database schema and example instance: Student stuId lastName firstName S1001 Smith Tom S1002 Chin Ann S1005 Lee Perry S1010 Burns Edward S1013 McCarthy Owen S1015 Jones Mary S1020 Rivera Jane major History Math 3 History Art Math Math CS credits 90 6 3 63 0 42 15 faced F101 F105 F110 F115 F221 Faculty name department Adams Art Tanaka CS Byrne Math Smith History Smith CS rank Professor Instructor Assistant Associate Professor Class class Number facId schedule room ART103A F101 MWF9 H221 CS425A F105 TuthF10 M110 CS525A F105 MThF12 M110 HST205A F115 MWF11 H221 MTH101B F110 MTuTh9 H225 MTH103C F110 MWF11 H225 Enroll stuld class Number grade S1001 ART103A A S1001 HST205A S1002 ART103A D D S1002 CS425A F S1002 MTH103C B S1010 ART103A S1010 MTH103C S1020 CS425A B S1020 MTH101B A Question 1.1.17 (3 Points) For each class, show the number of students enrolled. Question 1.1.18 (3 Points) Find the total number of students enrolled in CS425A. Question 1.1.19 (3 Points) Find the sum of all the credits that history majors have

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

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

x-3+1, x23 Let f(x) = -*+3, * Answered: 1 week ago

Answered: 1 week ago

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago