Vkuehn Week 6

From LMU BioDB 2013
Revision as of 18:09, 3 October 2013 by Vkuehn (Talk | contribs)

Jump to: navigation, search

Individual Journal Week 6

  1. What movies were released before 1915?
    • select*from movie where year <1915
      1909;"D.W. Griffith: Years of Discovery 1909-1913"
      1896;"Lumiere Brothers' First Films"
      1914;"Tillie's Punctured Romance"
      1914;"Cabiria"
  2. What movies from the 1980s had 4-digit numbers in their titles?
    • select * from movie where year>1939 and year <1950 and title~'[0123456789][0123456789][0123456789][0123456789]'
      1943;"Batman: The 1943 Serial Collection"
      1940;"Broadway Melody of 1940"
  3. What movies have apostrophes in their titles?
  4. How many movies have titles that begin with the word “Star”?
  5. How many movies, on a year by year basis, were released in the 1940s (years 1940 to 1949)? (don’t answer this question by listing the movies then counting the results!)
  6. Which movies, in alphabetical order, did member number 42 rate as a “5”?
  7. Produce a table that lists every movie that has been rated, the rating that the movie got, and the name of the member that gave this rating.
  8. How many movies has member number 42 rated as 1, 2, 3, 4, and 5, respectively?
  9. What is the average rating of movies that begin with the word “Star”?
  10. Form your own query involving movies, ratings, and members, then
    • State your query in plain English (like the queries above).
    • Provide the SQL query "translation" of your plain English query.
    • Supply the answer to your query, according to the sample movie database.
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox