Jump to content

mysql Sakila database help


uncfan

Recommended Posts

I am trying to perform these searches within the sample  Sakila database that I downloaded from the Mysql website. I am having a hard time with the queries and I would greatly appreciate some help. I need to be able to present the query statements for these following questions.

 

Thank you

 

 

 

(1) Which actors were in more then 50 movies?

(2) Which actors were in the movies in German language?

(3) Which actors were in the horror movies?

(4) Which customers did rent more then 10 horror movies?

(5) Which customers did see the movie with SCARLETT BENING?

(6) Which customers at postal code 62703 saw documentaries?

Link to comment
https://forums.phpfreaks.com/topic/221143-mysql-sakila-database-help/
Share on other sites

this is what i have..

 

(2)

select film_id, film.title, film.language_id language.language_id, language.name from film join language on film.language_id = language.language_id where language.name = 'German';

 

(3)

select actor.last_name from actor join film_actor on actor.actor_id as film_actor.actor_id join  film_actor on film_actor.film_id = film.film_id join film_category on film_category.film_id = film_actor.film_id where film_category.category_id = 'Horror';

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.