To retrieve a count of the record of a specific column from the existing created table. Then we can use a ' SELECT ' statement with COUNT() function.
In 1st Statement will retrieve the count of total no. of record from the employees' table.
In 2nd Statement will retrieve the count of the total no. of name from the employees' table, but it will not calculate the name having a null field.
In 3rd Statement will retrieve the count of total no. of record from the employees' table, where employee_id is greater than 150.
In 4th Statement will retrieve the count of the total no. of name from the employees' table, where employee_id is greater than 150. but it will not calculate the name having a null field.
# | Program | Language |
---|---|---|
1 | SQL | |
2 | SQL | |
3 | SQL | |
4 | SQL | |
5 | SQL | |
6 | SQL | |
7 | SQL | |
8 | SQL | |
9 | SQL | |
10 | SQL | |
11 | SQL | |
12 | SQL | |
13 | SQL | |
14 | SQL | |
15 | SQL | |
16 | SQL | |
17 | SQL | |
18 | SQL | |
19 | SQL | |
20 | SQL | |
# | Program | Language |
Copyright © 2020 Inovatik - All rights reserved