Creating aggregations
This chapter uses data gathered by the National UFO Reporting Center. The data is contained in the Incidents table and in this lesson, you will be aggregating values in the DurationSeconds column.
Latihan ini merupakan bagian dari kursus
Intermediate SQL Server
Instruksi latihan
Write a T-SQL query which will return the average, minimum, and maximum values of the DurationSeconds column.
Latihan interaktif langsung praktik
Cobalah latihan ini dengan melengkapi kode contoh ini.
-- Calculate the average, minimum and maximum
SELECT ___ AS Average,
___ AS Minimum,
___ AS Maximum
FROM Incidents