The SQL COUNT() Function
The COUNT()
function returns the number of rows that matches a specified criterion.
Example
Find the total number of rows in the Products
table:
SELECT COUNT(*)
FROM Products;
The COUNT()
function returns the number of rows that matches a specified criterion.
Find the total number of rows in the Products
table:
SELECT COUNT(*)
FROM Products;