Cmdlets for Facebook

Build 24.0.9063

集計関数

COUNT

クエリ条件に一致する行の数を返します。

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

COUNT(DISTINCT)

クエリ条件に一致する、null 以外の個別のフィールド値の数を返します。

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

AVG

カラムの値の平均を返します。

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

MIN

カラムの値の最小値を返します。

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

MAX

カラムの値の最大値を返します。

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

SUM

カラムの値の合計を返します。

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

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