Home » MYSQL » Indexes » Question
  1. If a column contains 7 values and 6 distinct values, the cardinality is __________.
    1. 6
    2. 7
    3. 1
    4. 13
    5. None of these
Correct Option: A

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.



Your comments will be displayed only after manual approval.