InterviewSolution
Saved Bookmarks
| 1. |
If a column contains 7 values and 6 distinct values, the cardinality is __________(a) 7(b) 6(c) 13(d) 1I had been asked this question in an online quiz.This interesting question is from Using Indexing topic in chapter Query Optimization of MySQL |
|
Answer» RIGHT choice is (b) 6 Best explanation: In MySQL, the cardinality of a column is the number of distinct values that it CONTAINS. A column that contains the values 1, 2, 3, 4, 4, 5, 6 has a cardinality of six and not seven. |
|