Zacznij terazZacznij za darmo

Filtering totals

Longer films need more subtitle capacity. You'll identify languages with the longest average durations to forecast this effort and help the team allocate resources more efficiently. By focusing on languages with consistently long films in recent years, the company can plan budgets and staffing with fewer surprises. You'll have part of the query ready for you, your job is to iterate on it to add the appropriate filters.

To ćwiczenie jest częścią kursu

Intermediate SQL Querying with AI

Zobacz kurs

Interaktywne ćwiczenie praktyczne

Spróbuj tego ćwiczenia, uzupełniając ten przykładowy kod.

SELECT
  language,
  AVG(duration) AS avg_duration
FROM films
WHERE duration IS NOT NULL
GROUP BY language;
Edytuj i uruchom kod