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.
This exercise is part of the course
Intermediate SQL Server
Exercise instructions
Write a T-SQL query which will return the average, minimum, and maximum values of the DurationSeconds
column.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
-- Calculate the average, minimum and maximum
SELECT ___ AS Average,
___ AS Minimum,
___ AS Maximum
FROM Incidents