CData JDBC Driver for OFX 2019J - Online Help

集計関数

CData JDBC Driver for OFX 2019J - Build 19.0.7354

COUNT

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

SELECT COUNT(*) FROM Accounts WHERE ServiceType = 'CREDITCARD'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT Id) AS DistinctValues FROM Accounts WHERE ServiceType = 'CREDITCARD'

AVG

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

SELECT ServiceType, AVG(AnnualRevenue) FROM Accounts WHERE ServiceType = 'CREDITCARD'  GROUP BY ServiceType

MIN

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

SELECT MIN(AnnualRevenue), ServiceType FROM Accounts WHERE ServiceType = 'CREDITCARD' GROUP BY ServiceType

MAX

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

SELECT ServiceType, MAX(AnnualRevenue) FROM Accounts WHERE ServiceType = 'CREDITCARD' GROUP BY ServiceType

SUM

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

SELECT SUM(AnnualRevenue) FROM Accounts WHERE ServiceType = 'CREDITCARD'

 
 
Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 19.0.7354.0