Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Identify Cardinality

Posted on 2007-04-06
8
Medium Priority
?
863 Views
Last Modified: 2012-08-14
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_Requirements
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_Req.
PK animal_id
PK food_item_id
FKDaily_requirements_description
0
Comment
Question by:shoris
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 42

Expert Comment

by:dqmq
ID: 18868230
You can't.  The Relationships window in Access is not really an ERD (Entity Relationship Diagram).  It shows tables and foreign key constraints, which is not quite the same thing.  A foreign key does not express cardinality, except for designating which table is the "many" side (if you can call that expressing cardinality).  Of course, the "many" side is quite evident in both the Relationship window and the query designer window in Access.

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.
0
 
LVL 75
ID: 18868605
dqmq:

Cool post !  :-)

mx
0
 

Author Comment

by:shoris
ID: 18869282
Ok.. that makes sense but how would i should in Visio the cardinality from the above tables? maybe i'm just confused of cardinality..
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 58
ID: 18869347
<<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
0
 

Author Comment

by:shoris
ID: 18869352
Ok that makes sense.. thanks Jdettman, but in my tables above what would be cardinality?
0
 

Author Comment

by:shoris
ID: 18869394
Based on my tables, can anyone understand the relationships?
0
 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 2000 total points
ID: 18869634
<<Ok that makes sense.. thanks Jdettman, but in my tables above what would be cardinality?>>

  You can't answer that until the tables have data.  The question you need to answer is "How unique is the data in the column?"

   An autonumber column would have a high cardinality; every row would have a unique value
   A column with a customer name would be fairly unique (lot's of different names, but there could be quite a few Smiths)
   A yes/no column has a very low cardinality; there are only two possible values that would appear in the column.

<<Based on my tables, can anyone understand the relationships?>>

  Yes.

JimD.
0
 
LVL 42

Expert Comment

by:dqmq
ID: 18871564
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.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question