The "count()"function allows us to count the number of row in a certain table or to count some values.
Syntax:
-before we do this create the table and add data to it using the following sql sintax:
Script:
Check the table to see the data and the structure.
Very good
Count() Examples:
Example 1:
-the count() function will count all the rows that the condition/clause will point out to , in our case all of the table rows as our * sign suggests.
-we can use condition/clause to be more specific in our count().
Example 2:
-this example will count all the persons that work in the IT department. In our case 2 of then do so .
Example 3:
This example will count all the persons that have salaries bigger then 2500 .