Aggregate Functions

Sometimes you want information about a whole group of data.

In the example on the right we use the COUNT() function to tell us how many documents are in the bucket.

SELECT COUNT(*) AS count
    FROM tutorial