JDBC Driver for Zoho CRM

Build 24.0.9062

集計関数

COUNT

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

SELECT COUNT(*) FROM Accounts WHERE Industry = 'Data/Telecom OEM'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT AccountName) AS DistinctValues FROM Accounts WHERE Industry = 'Data/Telecom OEM'

AVG

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

SELECT AccountNumber, AVG(AnnualRevenue) FROM Accounts WHERE Industry = 'Data/Telecom OEM'  GROUP BY AccountNumber

MIN

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

SELECT MIN(AnnualRevenue), AccountNumber FROM Accounts WHERE Industry = 'Data/Telecom OEM' GROUP BY AccountNumber

MAX

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

SELECT AccountNumber, MAX(AnnualRevenue) FROM Accounts WHERE Industry = 'Data/Telecom OEM' GROUP BY AccountNumber

SUM

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

SELECT SUM(AnnualRevenue) FROM Accounts WHERE Industry = 'Data/Telecom OEM'

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