lesson 3 database Flashcards
Only addresses data and
relationships. Best for deriving a sound table
design.
Entity-Relationship (E-R) Model
Class models. Goes beyond data, also models
behaviors.
UML (unified modeling language)
Technology independent. Contains more detail than the Conceptual Data Model. Considered by many to be just an expanded conceptual data model. Entities AND their attributes. Relationships AND cardinality. Constraints.
Logical Data Model
Documentation of the structure of the data. Used to communicate the design. Serve as the basis for data model implementation.
Entity Relationship Model
Entities effectively become tables. Attributes describe entities and become fields (columns) in tables. Relationships link tables on a common attribute or “key” and become formal constraints (part of the business rules).
Entity Relationship Diagram
Multiple notation systems are used. Each software program is a little different. Most common is “Crows Foot”.
ER Diagram Relationship Notation
maximum number of times an instance in one
entity can be associated with instances in the related entity
Cardinality
minimum number of times an instance in one
entity can be associated with instances in the related entity
Participation
Each row in a table should have an attribute that is a
persistent, unique identifier–
the “Primary Key”
Collection of Tables.
Tables represents both data and relationships
Multiple columns with unique names.
Tables = Relations
Record-based model – fixed format records of several types
Each record type defines a fixed number of fields, or attributes
Most widely used db.
Relational Model
Collection of basic objects called entities and its relationships.
An entity is a real world thing or object
Distinguishable from other objects
Widely used in database design
Entity-Relationship Model
Need for Object Oriented data model.
Object Based Model = ER model and Object Oriented Features
Object Relational Data Model = Object Based Model+ Relational Model
Object-Based Model
Specification of data
Individual data items of the same type may have different sets of attributes
Using of 2 different language
Contrast to ER Model, Relational Model and Object Oriented Model
XML
Semistructured Data Model