assignment1_solution - HOMEWORK#1 Solution EECS 341 Fall...

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

View Full Document Right Arrow Icon
HOMEWORK #1 Solution EECS 341 Fall 2015 Due 3PM Wednesday Sept 9 th 2014 1. (25 points) The relations S, P, and J are given below. S P J Show the results of the following relational operations: a) (4 points) The projection of S on city b) (4 points) The union of result (a) and the projection of P on city c) (4 points) The set difference of result (a) and the projection of P on city (in that order) d) (4 points) The intersection of result (c) and the projection of J on city e) (4 points) The Cartesian product of P and J f) (5 points) The natural join of P and J Solution: (a) (b) (c)(d) (e) (f) S# city S1 Paris S2 Berne S3 Oslo S4 Paris P# city P1 Paris P2 Berne P3 Rome J# city J1 Paris J2 Rome J3 Oslo city Paris Berne Oslo city Paris Berne Oslo Rome city Oslo P# City J# City P1 Paris J1 Paris P1 Paris J2 Rome P1 Paris J3 Oslo P2 Berne J1 Paris P2 Berne J2 Rome P2 Berne J3 Oslo P3 Rome J1 Paris P3 Rome J2 Rome P3 Rome J3 Oslo P# city J# P1 Paris J1 P3 Rome J2
Image of page 1

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

View Full Document Right Arrow Icon
2. (10 points) Briefly explain the difference between primary key, candidate key, and superkey.
Image of page 2
Image of page 3
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