Full exam (official solutions)

Full exam(official - CS 174,4 Mid-Term Winter 2008 ThursQay February T 2008 Name SoLLfTloN This is a 75 minute closedbook exam the space provided

Info iconThis 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 each question 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
Background image of page 1

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

View Full DocumentRight 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
Background image of page 2
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 many sequels, but for each sequel there is only one o ginal movie. Ofcourse, some movies don't have sequels.
Background image of page 3

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

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/09/2008 for the course CS 174 taught by Professor Amr during the Spring '08 term at UCSB.

Page1 / 8

Full exam(official - CS 174,4 Mid-Term Winter 2008 ThursQay February T 2008 Name SoLLfTloN This is a 75 minute closedbook exam the space provided

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online