ODBC Driver for Domino

Build 24.0.9062

集計関数

COUNT

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

SELECT COUNT(*) FROM Person WHERE City = 'Miami'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT unid) AS DistinctValues FROM Person WHERE City = 'Miami'

AVG

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

SELECT FirstName, AVG(AnnualRevenue) FROM Person WHERE City = 'Miami'  GROUP BY FirstName

MIN

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

SELECT MIN(AnnualRevenue), FirstName FROM Person WHERE City = 'Miami' GROUP BY FirstName

MAX

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

SELECT FirstName, MAX(AnnualRevenue) FROM Person WHERE City = 'Miami' GROUP BY FirstName

SUM

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

SELECT SUM(AnnualRevenue) FROM Person WHERE City = 'Miami'

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