ADO.NET Provider for Oracle Fusion Cloud Financials

Build 23.0.8839

集計関数

COUNT

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

SELECT COUNT(*) FROM Invoices WHERE Supplier = 'Bob'

COUNT(DISTINCT)

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

SELECT COUNT(DISTINCT InvoiceId) AS DistinctValues FROM Invoices WHERE Supplier = 'Bob'

AVG

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

SELECT InvoiceId, AVG(AnnualRevenue) FROM Invoices WHERE Supplier = 'Bob'  GROUP BY InvoiceId

MIN

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

SELECT MIN(AnnualRevenue), InvoiceId FROM Invoices WHERE Supplier = 'Bob' GROUP BY InvoiceId

MAX

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

SELECT InvoiceId, MAX(AnnualRevenue) FROM Invoices WHERE Supplier = 'Bob' GROUP BY InvoiceId

SUM

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

SELECT SUM(AnnualRevenue) FROM Invoices WHERE Supplier = 'Bob'

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