ODBC Driver for eBay

Build 24.0.9060

Aggregate Functions

COUNT

Returns the number of rows matching the query criteria.

SELECT COUNT(*) FROM ItemListing WHERE AdminEndedItemsOnly = 'true'

COUNT(DISTINCT)

Returns the number of distinct, non-null field values matching the query criteria.

SELECT COUNT(DISTINCT HitCount) AS DistinctValues FROM ItemListing WHERE AdminEndedItemsOnly = 'true'

AVG

Returns the average of the column values.

SELECT Title, AVG(MinimumBestOfferPrice) FROM ItemListing WHERE AdminEndedItemsOnly = 'true'  GROUP BY Title

MIN

Returns the minimum column value.

SELECT MIN(MinimumBestOfferPrice), Title FROM ItemListing WHERE AdminEndedItemsOnly = 'true' GROUP BY Title

MAX

Returns the maximum column value.

SELECT Title, MAX(MinimumBestOfferPrice) FROM ItemListing WHERE AdminEndedItemsOnly = 'true' GROUP BY Title

SUM

Returns the total sum of the column values.

SELECT SUM(MinimumBestOfferPrice) FROM ItemListing WHERE AdminEndedItemsOnly = 'true'

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