ComeçarComece de graça

Make this query easier to read - Part II

In this exercise you will work on making the query below easier to read.

select 
  category as FILMCATEGORY, 
  avg(length) as AverageLength
from film as f
inner join category as c
  on f.film_id = c.film_id
where release_year >= 2005
  and release_year <= 2010
group by category;

Este exercício faz parte do curso

Applying SQL to Real-World Problems

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

select 
  category as FILMCATEGORY, 
  avg(length) as AverageLength
from film as f
inner join category as c
  on f.film_id = c.film_id
where release_year >= 2005
  and release_year <= 2010
group by category;
Editar e executar o código