MulaiMulai sekarang secara gratis

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 adalah bagian dari kursus

Intermediate SQL Server

Lihat Kursus

Petunjuk latihan

Write a T-SQL query which will return the average, minimum, and maximum values of the DurationSeconds column.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

-- Calculate the average, minimum and maximum
SELECT ___ AS Average, 
       ___ AS Minimum, 
       ___ AS Maximum
FROM Incidents
Edit dan Jalankan Kode