ODBC Driver for JSON

Build 24.0.9062

集計関数

COUNT

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

SELECT COUNT(*) FROM NorthwindOData WHERE personal.name.last = '[email protected]'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT personal.name.first) AS DistinctValues FROM NorthwindOData WHERE personal.name.last = '[email protected]'

AVG

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

SELECT personal.name.last, AVG(AnnualRevenue) FROM NorthwindOData WHERE personal.name.last = '[email protected]'  GROUP BY personal.name.last

MIN

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

SELECT MIN(AnnualRevenue), personal.name.last FROM NorthwindOData WHERE personal.name.last = '[email protected]' GROUP BY personal.name.last

MAX

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

SELECT personal.name.last, MAX(AnnualRevenue) FROM NorthwindOData WHERE personal.name.last = '[email protected]' GROUP BY personal.name.last

SUM

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

SELECT SUM(AnnualRevenue) FROM NorthwindOData WHERE personal.name.last = '[email protected]'

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