Skip to content
Advertisement

Write a query to find the film which grossed the highest revenue for the video renting organisation

select title from film where film_id in (“highest revenue”)

select film_id from inventory where inventory_id in ( select inventory_id from rental group by inventory_id order by count(inventory_id) desc ))

limit (highest revenue);

where im wrong?

Advertisement

Answer

even this code with joins will work

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement