dfv
dfv
Create a customer (customer_id, name, country) table and find the number of customer
from each country in the table using group by
Ans:
Counting All Rows in a Table: To find the total number of employees in the table, including
those who haven't provided salary information, use:
Combining Both: To compare the total num rows with the number of that have non- NULL
salary values, you can use:
OUTPUT:
Conclusion
Use COUNT (column_name) when you need to count only the meaningful, non-NULL entries
in a specific column.
Use COUNT(*) when you want to count all rows in a table, regardless of the Presence of
NULL values.