Closed jlin47 closed 6 years ago
The success of a movie depending on producers by gender:
SELECT n.name, ci.role_id, person_id FROM cast_info ci JOIN name n ON n.id = ci.person_id WHERE role_id = "8" AND gender = "f"
role_type id -> 3: producer, 4: writer, 8: director kind_id-> movie, tv series or not movie_id -> a specific movie get info movie, role_type id =8 and then join together
+1 for using precise SQL queries (i.e. requesting only the columns you need, rather than requesting everything and filtering in R)
I think we don't need production year column in our sql! we can remove it!
select movie_id from cast_info and then join by matching movie id in the best_movie table
make a graph of male Vs. female actors. What kind of movies do they perform in? Among movies that show more female/male character/producers/writer, which has more revenue?