Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a) List faculty names for all faculty who are scheduled to teach a class on MWF b) List names of all students who are enrolled

image text in transcribed

a) List faculty names for all faculty who are scheduled to teach a class on MWF

b) List names of all students who are enrolled in class that is offered at the main campus.

c) Find names of all students who a grade of 'A' in class number 'DBS500'

Please make sure to write query in SQL and draw operator tree and give query evaluation.

Thank you.

Q2: (20 Points) Consider a University that has a main campus and four branch campuses (North, South, East, and West). Assume each student have a home campus where they usually register and take classes. However, students can register for any class at any campus. Faculty members teach at a single campus. Each class is offered at a single campus. Assume the following is the centralized database schema: Student Istutto LastName, firstName, major, credits, homecampus) Faculty facts, name, department, rank, homecampus) Class (Glass Num, campus.ffered, facid, schedule, room) Enroll (stuld, classNum, grade). Assume the distributed university database is designed as follows: 1- Tables Student and Faculty are horizontally fragmented into 5 fragments each according to the 'homeCampus' attribute (StudentMaior Studentwest, etc.) 2- Table Enroll is fragmented into 5 fragments (Enkeltmaio etc) using derived horizontal fragmentation with respect to student table. 3- Table class is stored at the main site. For each of the following query, write the query in SQL, draw query operator tree, and specify which sites are involved in the query evaluation

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

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions