| |

Entity Relationship Diagram – ERD and Cardinality Symbols Simple Explanations

Understading cardinality notation and being able to explain them will go a long way in your database design and implementation. Here we look at a simple explanation of the symbols. (Credit to Data Warehousing for Business Intelligence by University of Colorado System on Coursera)

Symbols in the above diagram and their meanings:

Oval: means 0

Perpendicular line: means 1

Crow’s foot: means many (0 or more); unconstrained

– Some drawing tools support exact cardinalities (numbers)

Placement or position of the cardinality:

Inside symbol: minimum cardinality

Outside symbol: maximum cardinality

– How to read the cardinality: You will have to Interpret the far cardinality symbols: near the other entity type.

 

Hence:

– Course is related to a min of 0 and max of many offerings

– Offering is related to a min of 1 and max of 1 courses (exactly one)

Important Cardinalities and their Classifications:

Classification by common values for minimum and maximum cardinalities

Minimum cardinality based:

Min cardinality of one: mandatory; makes entity types existent dependent

Min cardinality of 0: optional; similar to a FK that allows null values

Maximum cardinality based:

Functional: max cardinality of 1; mathematics based

1-M: max cardinalities are 1 and M

M-N: max cardinalities are many in both directions

1-1: max cardinality is one in both directions (not common)

Existence dependency: an entity that cannot exist unless another related entity exists. A mandatory relationship produces an existence dependency.

Want more information like this?

Similar Posts

  • Get Numbers and Percentages from Tables – Microsoft Sql Server

    Sometimes you want to get some numbers and also percentages for quick analysis. This is a quick simple way to get quick overviews   Want more information like this? Email People Who Read The Above Post Also Read This: Populating Superset Caravel MySQL database tables with Data via Heroku Rank a Place Visited By a…

  • Visual Explanation illustration and presentation of SQL JOINS query statements

    SQL Joins can sometimes be a bit confusing, particularly if you a newbie. I have below 2 visual representations which should help enhance your visual understanding of SQL JOINS First is from From CodeProject, by C L Moffatt You can check full explanation here: Sql Joins visually explained   2. Second was from Duke University….

  • | | |

    FREE Mock Data Generating Website for Data Science and other Data Analysis projects

      Sometimes, you need some mock  or test data to either test your program or for your analysis or to populate your database. Or sometimes, you need some sample or mock data to illustrate or explain a concept but you do not want to use your companies’ data or your delicate data. There are a…

  • |

    SQLSaturday Manchester 15th July 2017 Event- My Experience

    So I was at the SQLSaturday event in Manchester, United Kingdom on the 15th July 2017. According the SQLSaturday website, SQLSaturday is a training event for SQL Server professionals and those wanting to learn about SQL Server. Admittance to this event is free, and most costs are covered by donations and sponsorships.   I would,…

  • |

    R Shiny App for Mining Fields Evaluation

    Presenting your report in an interactive and user-friendly way is a very effective communicative tool which can help you convey message to your audience easily. R is a very powerful analytic tool which helps you to do that with the “shiny” package. Here, I simply look at an app about the Mining Fields Evaluation which was…

  • |

    Creating Oracle PL/SQL Tables for Intercollegiate Athletic Database – Data Warehousing

    Creating Oracle  tables for Intercollegiate Athletic Database. Part of Assignment one of Data Warehousing for Business Intelligence on Coursera

    After creating the tables lets insert values

      In case you want to change a constraint on a field, you can use a syntax examples as the following. ALTER TABLE FACILITY ADD CONSTRAINT UNQ_FAC UNIQUE (FACNAME)…

Leave a Reply

Your email address will not be published. Required fields are marked *