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

Athletes vs events by sport

Now consider the following visualization:

Using the summer_games table, run a query that creates the base report that sources this visualization.

Bu egzersiz

Reporting in SQL

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

Egzersiz talimatları

  • Pull a report that shows each sport, the number of unique events, and the number of unique athletes from the summer_games table.
  • Group by the non-aggregated field, which is sport.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

-- Query sport, events, and athletes from summer_games
SELECT 
	____, 
    ____ AS events, 
    ____ AS athletes
FROM summer_games
GROUP BY ____;
Kodu Düzenle ve Çalıştır