JDBC Driver for Facebook

Build 22.0.8462

Aggregate Functions

COUNT

Returns the number of rows matching the query criteria.

SELECT COUNT(*) FROM Posts WHERE Target = '11111'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT ID) AS DistinctValues FROM Posts WHERE Target = '11111'

AVG

Returns the average of the column values.

SELECT FromName, AVG(AnnualRevenue) FROM Posts WHERE Target = '11111'  GROUP BY FromName

MIN

Returns the minimum column value.

SELECT MIN(AnnualRevenue), FromName FROM Posts WHERE Target = '11111' GROUP BY FromName

MAX

Returns the maximum column value.

SELECT FromName, MAX(AnnualRevenue) FROM Posts WHERE Target = '11111' GROUP BY FromName

SUM

Returns the total sum of the column values.

SELECT SUM(AnnualRevenue) FROM Posts WHERE Target = '11111'

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462