Zusammenfassung der Ressource
Entity-Relationship Diagrams, Database Design
- KEY TERMS
- ATTRIBUTE
Anmerkungen:
- CARDINALITY
Anmerkungen:
- to determine cardinality ask:
A single instance of A can RELATIONSHIP at most HOW MANY instances of B
..then reverse it to find card of A
- SERIALIZED
Anmerkungen:
- ex. VIN # ...each individual instance is given a unique identitifier...PK
- VS
- VIRTUAL INSTANCE
Anmerkungen:
- Instances that do not need to be unique
- ENTITY
Anmerkungen:
- A logical concept in the mind of the analyst that represents a category of objects that have common characteristics or attributes
- KEYS
- PK
Anmerkungen:
- Uniquely identifies an instance
- PK REQUIREMENTS
- UNIQUE ID
- NON-REDUNDANCY
- FK
- SIMPLE KEY
Anmerkungen:
- contains a single attribute
- COMPOSITE KEY
Anmerkungen:
- Contains more than one attribute
- SEMANTIC (NATURAL) KEYS
Anmerkungen:
- possible values have meaning like USA
- ARTIFICIAL KEYS
Anmerkungen:
- values have no meaning...like order ID...seq of #'s
- MULTI-ATTRIBUTE KEYS
- RELATIONSHIPS
Anmerkungen:
- how entities relate to one another; CUST buys PRODUCT
- M:M
- Need to add intersection table
- LINKING TABLE
- A: PK LINK: A1.PKFK B1. PKFK B: PK
- 1:1
Anmerkungen:
- A can only relate to one and only one instance of B
- mandatory: one record of each on one side: PK with a FK one captain-one ship
- optional: 1:0...1 becomes FK in 0 table
- 1:M
Anmerkungen:
- An instance where A can relate to one or many instances of B
PK:FK
- MODIFICATION ANOMALIES
- UPDATE
Anmerkungen:
- all records need to be updated for no inconsistencies
- INSERT
Anmerkungen:
- When certain facts cannot be recorded
- DELETE
- CONCEPTS
- CARDINALITY
- RULES OF KEY MIGRATION
- TABLE MAPPING NOTATION