|
Fall Semester 2007 |
Let me first explain there is a site I am trying to emulate (in some scaled-down sense).
Let me start being more specific on the data.
1. We need a few movies.
My movies:
ryan1998)
spongebo)
johnnyEn)
incredib)
princess)
nglishpt) and later
reignovr)
2. Each movie is rated by a person.
My people:
lbird)
tkukoc)
mjackson)
mjordan)
cmullen) and joining the class a little bit later
jrose)
In terms of rating, the users will produce this:
lbirdtkukocmjacksonmjordancmullenjroseryan1998100 92 spongebo92 10 80 johnnyEn20 95 68 92 incredib92 princess82 68 nglishpt80 60 reignovr(*)
Regarding (*) above:
Earlier we asked the following questions:
- We will first set up the database.
- Add new movie: now there is a movie with no rating.
- Add Jalen Rose, new user: now there is a user with no rating.
- Jalen Rose rates the new movie: now there is movie, user with just one rating.
My current answers to these questions:
Earlier we asked the following questions:
- We will try to store the images for the posters in the database.
- For this we will need to learn how to upload a file, using a form.
- Users should be able to ask for a movie to be uploaded (mini bulletin board).
- A new movie can only be uploaded by the admin of the site (password controlled).
My current answers to these questions:
Earlier we asked the following questions:
- users should also be able to ask for an account
- accounts can be created only by the admin, like adding new movies
- user accounts are password protected, passwords are initially communicated to users
- users should be able to later change their passwords
My current answers to these questions:
This exercise (I will solve it next time) will help us extract information.
- when users login they are presented with two lists: existing reviews, unreviewed movies
- users get to choose one movie, from either of these two categories, and then:
- either change one of existing reviews (which loads upon selection) or add a new movie review
Write SQL code to retrieve:
This is what we need (for now) from this website.