Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 (StudentMain, StudentWest, etc.) 2- Table Enroll is fragmented into 5 fragments (EnrollMain, 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 MBA101.

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

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions

Question

2. Enrolling employees in courses and programs.

Answered: 1 week ago

Question

1. Communicating courses and programs to employees.

Answered: 1 week ago