Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL Queries Exercise: Assume the following Tables: Table: ACTOR Columns: id, first_name, last_name, gender Table: MOVIES Columns: id, name, year, rank Table: ROLES Columns: actor_id,

SQL Queries Exercise:

Assume the following Tables:

Table: ACTOR Columns: id, first_name, last_name, gender

Table: MOVIES Columns: id, name, year, rank

Table: ROLES Columns: actor_id, movie_id Table:

DIRECTORS Columns: id, first_name, last_name

For the queries below, please use the above tables and indicate the SQL function/script:

1. Find all the actors that played in the movie Ocean's Twelve.

2. Find the time period in which each actor was active, by listing the earliest and the latest year in which the actor starred in a film.

3. Repeat the query above #2, but only list actors that have starred in at least 10 movies.

4. Find the director that has directed the largest number of movies.

5. List the director that worked with the largest number of actors.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

=+ For what reasons can and do unions go on strike?

Answered: 1 week ago

Question

=+ Is secondary industrial action common and/or legal?

Answered: 1 week ago