Another arithmetic function other than SUM is COUNT. The purpose of COUNT is to return the number of rows found in a certain column.
For example, if we want to count how many sales transaction are there in our SALES table, found below, we will used the query below.
Query
select COUNT(*) from sales
Output
The output is 3 since there are only 3 sales transaction in our SALES table.
0 comments:
Post a Comment