Aggregate Functions
COUNT
Returns the number of rows matching the query criteria.
SELECT COUNT(*) FROM ItemListing WHERE AdminEndedItemsOnly = 'true'
COUNT
Returns the number of rows matching the query criteria.
SELECT COUNT(MinimumBestOfferPrice) 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'