BaşlayınÜcretsiz Başlayın

Categorize with aggregates

The finance department has raised concerns about missing film revenue data. To prioritize cleanup, they need a year-by-year summary that separates films with reported gross revenue from those without. This analysis will help them focus their resources on the years with the biggest data issues.

Bu egzersiz

Intermediate SQL with AI

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Write a prompt that selects the release year, counts films with missing gross values, counts films with non-missing gross values, groups by release year, and orders the results chronologically by release year.
  • Name the new categories as films_with_gross and films_without_gross.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

SELECT release_year
FROM films;
Kodu Düzenle ve Çalıştır