{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

mtExamsp03 - CSE 412/598 Database Management Systems...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 412/598 Database Management Systems Mid-Term Exam Spring 2003 NAME_______________________________ ASU ID: ________________________ [20 pts.] 1. Translate the ER diagram on the following page to a relational schema. Indicate the key of each relation and show all foreign-key-to-primary-key relationships. 1
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
THE UNIVERSITY DATABASE 2
Image of page 2
[25 pts.] 2. Query Optimization WinRDBI Sun Devil Health Club Relational Database Schema Member ( mID , fName, lName, age, primary, monthlyFee, acctNum ) trainer ( mID, insID, startDate, duration, fee ) Instructor ( insID , ifName, ilName ) Show the major steps involved in the optimization of the following relational algebra query. Draw a separate query tree for each step and provide an explanation of each step. QUERY: Print the first and last names of members under the age of 20 that are training with the instructor name Joe for duration of more than “6” months. project fName, lName (select age < 20 and ifName = "Joe" and duration > 6 ((trainer njoin member) njoin instructor)); 3
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2. Query Optimization (continued) 4
Image of page 4
[30 pts.] 3. Consider the following database schema:
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern