The COUNT function
The following query counts and displays the total number
of rows in the stock table.
The following query includes a WHERE clause to count specific
rows in the stock table, in this case, only those rows that
have a manu_code of
SHM
. By including the keyword DISTINCT (or its synonym UNIQUE)
and a column name in the following query, you can tally the number
of different manufacturer codes in the stock table.