Excel Add-In for Zoho Creator

Build 24.0.9060

Aggregate Functions

COUNT

Returns the number of rows matching the query criteria.

SELECT COUNT(*) FROM [CData].[Employee Management].Leave_Types WHERE Leave_Type = 'Sick'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT ID) AS DistinctValues FROM [CData].[Employee Management].Leave_Types WHERE Leave_Type = 'Sick'

AVG

Returns the average of the column values.

SELECT Leave_Type, AVG(AnnualRevenue) FROM [CData].[Employee Management].Leave_Types WHERE Leave_Type = 'Sick'  GROUP BY Leave_Type

MIN

Returns the minimum column value.

SELECT MIN(AnnualRevenue), Leave_Type FROM [CData].[Employee Management].Leave_Types WHERE Leave_Type = 'Sick' GROUP BY Leave_Type

MAX

Returns the maximum column value.

SELECT Leave_Type, MAX(AnnualRevenue) FROM [CData].[Employee Management].Leave_Types WHERE Leave_Type = 'Sick' GROUP BY Leave_Type

SUM

Returns the total sum of the column values.

SELECT SUM(AnnualRevenue) FROM [CData].[Employee Management].Leave_Types WHERE Leave_Type = 'Sick'

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060