Advertisements
Advertisements
प्रश्न
Which of the following SQL function is used to count the non-NULL values in a column named column_name?
पर्याय
COUNT(*)
COUNT(column_name)
SUM(column_name)
AVG(column_name)
MCQ
Advertisements
उत्तर
COUNT(column_name)
Explanation:
In SQL, the COUNT(column_name) function counts only the non-NULL values in a given column.
COUNT(*)→ counts all rows (including those with NULL values).COUNT(column_name)→ counts only rows where the column has a value (not NULL).
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
