- SELECT c.name AS category_name,
- AVG(length) AS average_length
- FROM movie AS m
- INNER JOIN film_category AS fc ON m.film_id = fc.film_id
- INNER JOIN category AS c ON fc.category_id = c.category_id
- WHERE rating IN
- (SELECT rating,
- AVG(rental_rate)
- FROM movie AS m
- GROUP BY rating
- LIMIT 10)
- GROUP BY c.name;
Re: Re: Untitled
From Eratic Lechwe, 2 Months ago, written in Plain Text, viewed 82 times.
This paste is a reply to Re: Untitled from Gray Tamarin
- view diff
URL http://codebin.org/view/9e753bbb
Embed
Download Paste or View Raw
— Expand Paste to full width of browser