ODBC Driver for Quandl

Build 20.0.7587

Aggregate Functions

COUNT

Returns the number of rows matching the query criteria.

SELECT COUNT(*) FROM AAPL WHERE collapse = 'daily'

COUNT(DISTINCT)

Returns the number of distinct, non-null field values matching the query criteria.

SELECT COUNT(DISTINCT High) AS DistinctValues FROM AAPL WHERE collapse = 'daily'

AVG

Returns the average of the column values.

SELECT Date, AVG(Volume) FROM AAPL WHERE collapse = 'daily'  GROUP BY Date

MIN

Returns the minimum column value.

SELECT MIN(Volume), Date FROM AAPL WHERE collapse = 'daily' GROUP BY Date

MAX

Returns the maximum column value.

SELECT Date, MAX(Volume) FROM AAPL WHERE collapse = 'daily' GROUP BY Date

SUM

Returns the total sum of the column values.

SELECT SUM(Volume) FROM AAPL WHERE collapse = 'daily'

Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 20.0.7587