Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I found the answer for this in Chegg but it is inappropriate. So can you please explain in brief and don't copy the same answer

I found the answer for this in Chegg but it is inappropriate. So can you please explain in brief and don't copy the same answer from the Chegg.

image text in transcribed

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 (stuID, lastName, firstName, major, credits, homecampus) Faculty (facid, name, department, rank, homeCampus) Class (classNum, campusoffered, facid, schedule, room) Enroll (stuid, 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 (Studentuain Studentwest, etc.) 2- Table Enroll is fragmented into 5 fragments (Enrollvain, 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: a) List all majors for students who are located at West campus. b) List class numbers for all classes with schedule equal to MWF c) List faculty names for all faculty who are scheduled to teach a class on MWF d) List names of all students who are enrolled in class that is offered at the main campus. e) Find names of all students who a grade of 'A' in class number 'ICS611. 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 (stuID, lastName, firstName, major, credits, homecampus) Faculty (facid, name, department, rank, homeCampus) Class (classNum, campusoffered, facid, schedule, room) Enroll (stuid, 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 (Studentuain Studentwest, etc.) 2- Table Enroll is fragmented into 5 fragments (Enrollvain, 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: a) List all majors for students who are located at West campus. b) List class numbers for all classes with schedule equal to MWF c) List faculty names for all faculty who are scheduled to teach a class on MWF d) List names of all students who are enrolled in class that is offered at the main campus. e) Find names of all students who a grade of 'A' in class number 'ICS611

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions