Question: Develop SQL code to create a database with the contents of the separate files. The ratings.csv and tags.csv can form their own tables in the

Develop SQL code to create a database with the contents of the separate files. The ratings.csv and tags.csv can form their own tables in the database. For movies, the genres information as they stand now are not suited for database processing since they contain genres separated by | characters. So, your task is to hold the genres information in a separate table which contains (movieId, genre) pairs. A movie with Crime and Thriller genres will generate two rows in the genres table. The remaining information from movies.csv can be exported readily into its own table.

Note: You may write python Pandas code to generate the SQL statements, but the main output for this task will be the set of SQL statements itself.

movies.csv - movieId,title,genres

ratings.csv- userId, movieId, rating,timestamp

tags.csv - userId, movieId, tags, timestamp

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!