Quick Ref.
Functions
date
number
string
Data Types
date
number
string

Movie Database

This database features two entities (movies and actors) in a many-to-many relation. Each entity has its own table. A third table, casting , is used to link them. The relationship is many-to-many because each film features many actors and each actor has appeared in many films.

movie

Field name Type Notes
id INTEGER An arbitrary unique identifier
title CHAR(70) The name of the film - usually in the language of the first release.
yr DECIMAL(4) Year of first release.
score FLOAT Average of all the votes cast for the film. (Internet users can vote for films on a scale of 1-10)
votes INTEGER The number of votes cast for this film.

actor

Field name Type Notes
id INTEGER An arbitrary unique identifier
name CHAR(36) The name of the actor (the term actor is used to refer to both male and female thesps.)

casting

Field name Type Notes
movieid INTEGER A reference to the movie table.
actorid INTEGER A reference to the actor table.
ord INTEGER The ordinal position of the actor in the cast list. The star of the movie will have ord value 1 the co-star will have value 2, ...

Footnotes

This data has been drawn from the Internet Movie Database The cast lists have been truncated to exclude those actors with a single appearance.

New releases and English language films are predominant.

Often the the title is in the original language thus My Life as a Dog is Mitt liv som hund and The Good the Bad and the Ugly is Buono, il brutto, il cattivo, Il

Because of the actor culling the ord values may not be consecutive for a given film.