Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q1: (20 Points) Consider a University that has a main campus and four branch campuses (North, South, East, and West). Assume each student have a
Q1: (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, facld, 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 (Studentyain Studentest etc.) 2- Table Enroll is fragmented into 5 fragments (EnrollMain etc) using derived horizontal 3- fragmentation with respect to student table. 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 ote WP 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started