JDBC Driver for eBay

Build 22.0.8462

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) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462