Question: 1. Compare each film DVD's replacement cost to the average cost in the same MPAA rating.(Return columns: title, rating, replacement_cost, average_cost) 2. Compare each film's

1. Compare each film DVD's replacement cost to the average cost in the same MPAA rating.(Return columns: title, rating, replacement_cost, average_cost)

2. Compare each film's length to the longest film in its category. (Return columns:  title, name, length, max_length)

3. Create a ranking index by film length. (Return columns:  film_id, title, length, ranking columns)

4. Show the film of the shortest length for each category (Return columns: film_id, title, length, category, ranking)

5. Select out Top 5 customers for each store based on the total payment amount. (Return columns: store_id, customer_id, total_amount, ranking)

6.  Write a query to return the difference of the payment amount between the first movie rental and the second rental for the following customers
-- customer_id in (1, 2, 3, 4, 5, 6, 7, 8, 9, 10).

Step by Step Solution

3.53 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To address each of the requested queries you would typically use SQL queries However it seems l... View full answer

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!