AVG (SQL Server Compact)
Returns the average of the values in a group. Null values are ignored.
The following example determines the average weight of products shipped to a company that has a CustomerIDof '123'.
SELECT AVG(Freight) AS "Average Freight" FROM Orders WHERE [Customer ID] = 'VINET' AND [Order ID] IN (10248, 10274, 10295)
This is the result set:
Average Weight -------------------- 13.18