Skip to content

Instantly share code, notes, and snippets.

@vivekseth
Last active August 29, 2015 14:18
Show Gist options
  • Save vivekseth/6fe532b21996212e6758 to your computer and use it in GitHub Desktop.
Save vivekseth/6fe532b21996212e6758 to your computer and use it in GitHub Desktop.
ER Diagram Notes
## ER Diagrams ##
triangle - ISA
rectangle - entity
oval - attribute
diamond - relation
[A] -> <B> : Key Constraint. Each entity in A uniquely identifies a relation in B
[A] -> <B> <- [C] : 1:1
[A] -> <B> - [C] : many:1
[A] - <B> <- [C] : 1:many
[A] - <B> - [C] : many:many
[A] == <B> : Participation constraint. Each entity in A must be represented in relation B
[[A]] ==> <<B>> - C : A is a weak entity related to parent entity A via relation C
----------
== is a thick line,
[[A]] is a thick line entity,
<<B>> is a thick line relation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment