Question:

In SQL, the aggregate function which will display the cardinality of the table is \(\_\_\_\_\_\). 
 

Show Hint

Use count(*) when you need to determine the total number of rows in a table, regardless of whether they contain NULL values or not.

Updated On: Jan 21, 2025
  • sum()
     

  • count(*) 
     

  • avg()
     

  • sum(*)
     

Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

In SQL, the count(*) function is used to count the number of rows in a table, which effectively gives the cardinality of the table. Other functions like sum() and avg() are used for numerical aggregations, not for counting rows.

Was this answer helpful?
0
0