Test Index

Structured Query Language (SQL) Get it on Google PlayDownload on the App Store CBSE Board Videos

© examsnet.com
Question : 32 of 58
Marks: +1, -0
In SQL, the aggregate function which will display the cardinality of the table is __________.
[CBSE 2024 Set 4]
Solution:  
Concept:
The cardinality of a table is the number of rows (tuples) in it. (The number of columns is the degree.)
Explanation:
count(*) counts all the rows of the table, including rows that have NULL values, so it gives the cardinality.
sum() and avg() add or average the values of a column; sum(*) is not valid SQL.
Answer:
Option B (count(*))
© examsnet.com
Advertisements
Go to Question: