Full exam (official solutions) - CS 174,4 Mid-Term Winter...

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

View Full Document Right Arrow Icon
CS 174,4. - Mid-Term Winter 2008 ' ThursQay, T" February 2008 This is a 75 minute, closed book exam. Answer eachquestion in the space provided immedietely below it. Show Jour work, Good luck! 1. (3 poinis) Consider the following instance of relation R: T-=--t-D ;---6--- d abef a b i d abde bcef bcce edcd edef and relation Sr Name: SoLLfTloN CD ;---a- ef What is the result of R/S? ,t B a o t^ ol
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
l.(llorrr'-)ar- lpr r.t l^.ir;'r.','r, ^l |.r, R: ABC rnd Lrlrti,rn S: BCD \\ lrri is llre rcsrrlt o[ R x S? d c. .J d a al a Lt l, C { dbcr b bf cad bc d
Image of page 2
Y 3. (4 points) Express in the Entity-Relationship model the relationship Sequel-of between entity set Movies (with attdbutes mid, naine director, where mid is ihe p mary key) and itself, where one movie is the sequel of another. The latter takes the role oI the original while the former is the sequel Assume that a movie may have manysequels, but for each sequel there is only one o ginal movie. Ofcourse, some movies don't have sequels.
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
Image of page 4
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