ComenzarEmpieza gratis

Grouping together

En este ejercicio final, combinarás GROUP BY con funciones de agregación como MIN, que has visto anteriormente en este capítulo.

Para concluir este capítulo, volveremos a la tabla eurovision del primer capítulo.

Este ejercicio forma parte del curso

Introducción a SQL Server

Ver curso

Ejercicio interactivo práctico

Pruebe este ejercicio completando este código de muestra.

-- Retrieve the minimum and maximum place, and point values
SELECT 
  -- the lower the value the higher the place, so MIN = the highest placing
  MIN(place) AS hi_place, 
  ___(place) AS lo_place, 
  -- Retrieve the minimum and maximum points values. This time MIN = the lowest points value
  ___(points) AS min_points, 
  MAX(points) AS max_points 
FROM 
  eurovision;
Editar y ejecutar código