Loading lesson path
Concept visual
Start at both ends
Return the number of products in the "Products" table:
SELECT COUNT(ProductID) AS NumberOfProducts FROM Products;The COUNT() function returns the number of records returned by a select query.
NULL values are not counted.
(expression )
Required. A field or a string value
SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse
❮ SQL Server Functions