Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions

Question

Why is the capability to relocate processes desirable?

Answered: 1 week ago

Question

What is the domain of a rational function?

Answered: 1 week ago

Question

Describe the types of power that effective leaders employ

Answered: 1 week ago

Question

Describe how leadership styles should be adapted to the situation

Answered: 1 week ago