SQL: AVG() Aggregate Function

The AVG() function gets the average of a column, the following query gets the average of the UnitPrice column in the Northwind Products table.

SELECT AVG(UnitPrice) AS AveragePrice
FROM Products

Comments

Popular posts from this blog

ASP.NET : Create an Empty Web Application Project in Visual Studio 2012

SQL: GROUP BY And HAVING

C# Querying From An Oracle Database