shoris
asked on
Identify Cardinality
Do anyone know how i can identify relationship verbs or cardinality marks in my ERD?
Reference_Food_Category
PK food_category_code
Food_category_descritpion
Reference_Animal_Breeds
PK animal_breed_code
Animal_breed_full_name
Animal_habitat
Countries_of_orgin
Animal_breed_other
Reference_Dietary_Requirem ents
PK animal_breed_code
PK food_item_id
FK Daily_requirement
Reference_Food_Items
PK food_item_id
PK food_category_code
Food_item_code
FK Food_item_description
Animal_Checkups
PK animal_id
PK checkup_date
Checkup_height
Checkup_weight
General_health
Animals_in_Zoo
PK animal_id
Animal_name
Gender
Birth_date
Arrival_date
Animal_Specific_Dietary_Re q.
PK animal_id
PK food_item_id
FKDaily_requirements_descr iption
Reference_Food_Category
PK food_category_code
Food_category_descritpion
Reference_Animal_Breeds
PK animal_breed_code
Animal_breed_full_name
Animal_habitat
Countries_of_orgin
Animal_breed_other
Reference_Dietary_Requirem
PK animal_breed_code
PK food_item_id
FK Daily_requirement
Reference_Food_Items
PK food_item_id
PK food_category_code
Food_item_code
FK Food_item_description
Animal_Checkups
PK animal_id
PK checkup_date
Checkup_height
Checkup_weight
General_health
Animals_in_Zoo
PK animal_id
Animal_name
Gender
Birth_date
Arrival_date
Animal_Specific_Dietary_Re
PK animal_id
PK food_item_id
FKDaily_requirements_descr
dqmq:
Cool post ! :-)
mx
Cool post ! :-)
mx
ASKER
Ok.. that makes sense but how would i should in Visio the cardinality from the above tables? maybe i'm just confused of cardinality..
<<maybe i'm just confused of cardinality>>
Cardinality is the measure of how unique the data is or in other words, how many different members there are in a set.
Typically you talk about cardinality in when working with indexes. For example, if you have a yes/no column, it generally makes a poor choice for an index because there are only two possible values to the data. Indexing doesn’t make sense because you’ll end up doing a table scan anyway.
Usually, it’s expressed as a percentage.
HTH,
JimD
Cardinality is the measure of how unique the data is or in other words, how many different members there are in a set.
Typically you talk about cardinality in when working with indexes. For example, if you have a yes/no column, it generally makes a poor choice for an index because there are only two possible values to the data. Indexing doesn’t make sense because you’ll end up doing a table scan anyway.
Usually, it’s expressed as a percentage.
HTH,
JimD
ASKER
Ok that makes sense.. thanks Jdettman, but in my tables above what would be cardinality?
ASKER
Based on my tables, can anyone understand the relationships?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
OK, there is some confusion here about different uses of the term "cardinality". Since you mentioned ERD's and relationships, I gave the answer in that context. The realtionship cardinality is often depicted in an ERD and indicates how many entities may participate on each side of the relationship. Examples are 1:1 (one-to-one), 1:M (one-to-many), 0:M, M:M and so forth. That information is usually conveyed in the sybology of the particular diagramming technique.
Row cardinality refers to the number of rows in a table, but is NEVER shown in an ERD. Column cardinality refers to the diversity of values in a column. While very important to index choice, and is not relevant to an ERD, either.
Row cardinality refers to the number of rows in a table, but is NEVER shown in an ERD. Column cardinality refers to the diversity of values in a column. While very important to index choice, and is not relevant to an ERD, either.
To depict cardinality, optionality, relationship names, role names and other logical constructs you need a different tool. Good tools are quite pricey, but for something economical, you might want to have a look at Visio professional.