SQL Tutorial - Learn SQL




SQL Tutorial
SQL Cheat Sheet
SQL Database Table
SQL SELECT
SQL SELECT INTO
SQL DISTINCT
SQL WHERE
SQL LIKE
SQL INSERT INTO
SQL UPDATE
SQL DELETE
SQL ORDER BY
SQL OR & AND
SQL IN
SQL BETWEEN
SQL Aliases
SQL COUNT
SQL MAX
SQL MIN
SQL AVG
SQL SUM
SQL GROUP BY
SQL HAVING
SQL JOIN
SQL Training
SQL Server
SQL Hosting
SQL Replication
ETL - Extract, Transform, and Load


SQL AVG

The SQL AVG aggregate function selects the average value for certain table column.

Have a look at the SQL AVG syntax:


SELECT AVG(Column1)
FROM Table1

If we want to find out what is the average SaleAmount in the Sales table, we will use the following SQL AVG statement:


SELECT AVG(SaleAmount) AS AvgSaleAmount
FROM Sales

which will result in the following dataset:

AvgSaleAmount
$195.73



ASP Hosting




If you want to contact us please email to
contact @ sql-tutorial.net


Link to SQL Tutorial


Bookmark SQL Tutorial


Copyright


Disclaimer



  © Art Branch Inc. 2004