Building the base report
Now, build the base report for this visualization:

This should be built by querying the summer_games table, found in the explorer on the bottom right.
Este ejercicio forma parte del curso
Reporting in SQL
Instrucciones del ejercicio
- Using the console on the right, select the
sportfield from thesummer_gamestable. - Create
athletesby counting the distinct occurrences ofathlete_id. - Group by the
sportfield. - Make the report only show 3 rows, with the highest
athletesat the top.
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
-- Query the sport and distinct number of athletes
SELECT
____,
____ AS athletes
FROM summer_games
GROUP BY ____
-- Only include the 3 sports with the most athletes
ORDER BY ____
LIMIT ____;