Reference no: EM133708159
Assignment: Database Systems
I. Write the following queries in relational algebra, using the university schema.
1. Find the names of all students who have taken at least one Elec. Eng. course.
2. Find the IDs and names of all students who have taken any course offering in 2018.
3. For each department, find the average salary of instructors in that department. You may assume that every department has at least one instructor.
4. Find the IDs and names of all students whose total credit hours are more than 50.
II. Construct an E-R diagram for a hospital with a set of patients and a set of medical doctors. Associate with each patient a log of the various tests and examinations conducted by the doctors.
III. Explain the distinction between disjoint and overlapping constraints. Provide an example for each constraint.
IV. Explain the distinction between total and partial constraints. Provide an example for each constraint.
V. Consider the following set F of functional dependencies on the relation schema r(A,B,C,D,E,F):
A→BCD
BC→DE
B→D
D→A
1. Compute B+.
2. Compute D+.
3. Prove (using Armstrong's axioms) that AF is a superkey.
VI. What are the components of a data warehouse? What are the issues to be addressed in building a warehouse?
VII. The large volume of data generated on the Internet such as social-media data requires a very high degree of parallelism on both data storage and processing. Please explain the MapReduce paradigm for parallel processing.
VIII. What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.