Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Clase 5
Clase 5
#(Notar que no hay una consulta ‘correcta’ estas pueden ser distintas y llegar al mismo resultado)
Select
on f.film_id = fc.film_id
on fc.category_id = cat.category_id
group by category_id
order by 1 desc
on rental.inventory_id = inventory.inventory_id
inventory.film_id = film.film_id
film.film_id = film_category.film_id
film_category.category_id = category.category_id
group by category.name
limit 5;
#2.- ¿Cuál es el numero de rentas procesadas por el staff por mes en cada negocio?
on f.film_id = fc.film_id
on fc.category_id = cat.category_id
group by category_id
order by 1 desc
rental.staff_id = staff.staff_id
group by store_id
rental.staff_id = staff.staff_id
group by store_id