Created
December 24, 2011 19:47
-
-
Save rohitdholakia/1518190 to your computer and use it in GitHub Desktop.
SQL Queries to create tables for Netflix
This file contains hidden or 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 allRatings ( | |
movieId int(20), | |
userId int(20), | |
rating int(20), | |
timestamp decimal(60,4)); | |
create table userdata ( | |
id int(30), | |
average decimal(50,5), | |
number int(20)); | |
create table moviedata ( | |
id int(30). | |
average decimal(50,5), | |
number int(20)); | |
create index movie on allRatings(movieId); | |
create index user on allRatings(userId); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment