CommencerCommencer gratuitement

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;

Cet exercice fait partie du cours

Applying SQL to Real-World Problems

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

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;
Modifier et exécuter le code