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 COUNT

The SQL COUNT aggregate function is used to count the number of rows in a database table.

The SQL COUNT syntax is simple and looks like this:


SELECT COUNT(Column1)
FROM Table1

If we want to count the number of customers in our Customers table, we will use the following SQL COUNT statement:


SELECT COUNT(LastName) AS NumberOfCustomers
FROM Customers

The result of this SQL COUNT query will be:

NumberOfCustomers
4



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