Problem solve Get help with specific problems with your technologies, process and projects.

Cardinality explained

I am an Oracle DBA in training currently studying for the Oracle 91 Fundamentals I exams. What exactly does the term "cardinality" mean as related to tables?
Cardinality does not refer to a table, but rather the number of distinct values of data in a table's column. In a table called EMPLOYEES, you might have a column called GENDER, which typically has two values MALE and FEMALE. In this case, the cardinality of the data in the GENDER column is two. There are two distinct values. In the same table, you might have the EMPNO column. Each employee number is a distinct value. So for 5,000 employees, you will have 5,000 (cardinality) distinct employee numbers. The GENDER column is a low cardinality column and the EMPNO column is a high cardinality column.
This was last published in August 2004

Dig Deeper on Oracle database design and architecture

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.