354.3-08.SolutionExtra

354.3-08.SolutionExtra - CMPT-354 D1 Fall 2008 Instructor...

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

View Full Document Right Arrow Icon
CMPT-354 D1 Fall 2008 Instructor: Martin Ester TA: Gustavo Frigo Solution Extra Assignment Introduction This is an extra practical assignment using SQL Server 2005 Management Studio to give you more practical experience. Please, do NOT submit your solution, since it will not be marked. In this assignment, you will work on the Movie database, consisting of the following tables: MovieList(title:string , year:int) Note that the year of the release is also added as suffix to the title. Actors(actorName: string, actedIn:string ) actedIn is FK to MovieList, actorName has the format “lastName,firstName”. Actresses(actressName: string, actedIn:string ) actedIn is FK to MovieList , actressName has the format “lastName,firstName”. Genres(title:string,genre:string) title is a FK to MovieList Keywords(keyword:string, movieTitle:string) movieTitle is a FK to MovieList TopMovies(distribution:char(10), votes: int, rank: float, title: string ) title is a FK to MovieList WorstMovies(distribution:char(10), votes: int, rank: float, title: string ) title is a FK to MovieList Formulate the following queries in SQL. Where applicable, make sure that you return only distinct
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
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