Birlikte gruplama
Bu son egzersizde, bu bölümde daha önce gördüğün MIN gibi toplu (aggregate) fonksiyonları GROUP BY ile birleştireceksin.
Bölümü tamamlamak için, ilk bölümden eurovision tablosuna geri dönüyoruz.
Bu egzersiz, kursun bir parçasıdır
SQL Server'a Giriş
Uygulamalı etkileşimli egzersiz
Bu egzersizi bu örnek kodu tamamlayarak deneyin.
-- 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;