Created
March 15, 2014 16:32
-
-
Save Miista/9570056 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE cast_info AS | |
SELECT DISTINCT ci.movie_id, ci.person_id, cn.name AS char_name, rt.role, ci.note, ci.nr_order | |
FROM imdb.ex x, imdb.cast_info ci, imdb.role_type rt, imdb.char_name cn | |
WHERE x.id = ci.movie_id | |
AND ci.role_id = rt.id | |
AND ci.person_role = cn.id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment