Lesson 3 | Data Modeling Concept Flashcards

1
Q

Types of Data Models

A

Entity-Relationship (ER) Model
UML (Unified Modeling Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  • Only addresses data and relationships
  • Classic, simplest
  • Best for deriving a sound table design
  • Many extensions/variation exist
  • Basis for most other modeling approaches
A

Entity-Relationship (ER) Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  • Class Models
  • Goes beyong data, also models behaviors
A

UML (Unified Modeling Language)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  • Technology Independent
  • Contains more detail than the Conceptual Data Model
  • Considered by many to be just an expanded conceptual data model
  • Defines Entities and their attributes
  • Defines Relationsips and Cardinality
  • Defines Contraints
  • Generally completed as a document Entity Relationship Model or Diagram
A

Logical Data Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • Documentation of the structure of the data
  • Used to communicate the design
  • Serve as the basis for data model implementation
A

Entity Relationship Model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • Entities effectively become tables
  • Attributes describe entities and become fields (columns) in table
  • Relationhips link tables on a common attribute or “key” and become formal constraints (part of the business rules)
A

Entity Relationship Diagram (Relation Database Context)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the Data type for:
Site Name: Little Bear River near Wellsville

A

Char()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the Data type for:
Site Code: USU-LBR-Wellsville

A

varchar()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the Data type for:
Lattitude: 41.643457

A

Decimal() | Float

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the Data type for:
Longitude: -111.917649

A

Float() | Decimal()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the Data type for:
Elevation: 1365 m

A

int(), since if we use “varchar” it becomes complex, as the user needs to know what unit they should use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Data type for:
State: UTAH

A

char()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the Data type for:
County: Cache

A

char()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the Data type for:
Description:: Attached to SR101 bridge

A

varchar()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the Data type for:
Site type: Stream

A

char()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the symbol for Zero to Many Crows foot

A

—–o-<– |

17
Q

What is the symbol for the One to Many Crows Foot

A

——|–<–

18
Q

What is the symbol for one to one crows foot

A

——|-|–

19
Q

What is the symbol for Zero to One Crows Foot

A

—–o–|–

20
Q
  • Multiple notation systems are used
  • Each software program is a little different
  • Most common is “Crows Foot”
A

ER Diagram Relationship Notation

21
Q

Maximum number of times an instance in one entity can be associated with instance in the related entitiy

A

Cardinality

22
Q

Minimum number of times an instance in one entity can be associated with instance in the related entity

A

Participation

23
Q
  • Can ONLY have values of 1 or many
  • Located closest to the entity in Crows Foot notation
A

Cardinality

24
Q
  • Indicates whether an instance of an entity MUST participate in the relationship
  • Can ONLY have the values of 0 or 1
A

Participation

25
Q
  • Each row in a table should have an attribute that is a persistent, unique identifier - the ____
A

Primary Key

26
Q

Primary Key is in the ____ Table

27
Q

Foreign key is in the _____ Table

28
Q

Primary key usually consist of what data type

A

Int() | Integer Values

29
Q

What are the categories of data model

A
  • Relational Model
  • ER Model
  • Object Based Model
  • Semi Structured Model
30
Q
  • Collection of Tables
  • Tables represent 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
A

Relational MOdel

31
Q
  • Collection of basic objects called entities and its relationships
  • An entity is a real world thing or object
  • Distinguishable from the other objects
  • Widely used in database design
A

Entity-Relationship Model

32
Q
  • OOP Languages - C++, Java, C#, etc
  • Need for Object Oriented Data model
  • Object Based model = ER model and Object Oriented Features
  • Object Relational Data Model = Object Based Model + Relational MOdel
A

Object-Based Model

33
Q
  • Specification of data
  • Individual data items of the same type may have different sets of attributes
  • Usign of 2 different languages
  • Contrast to ER Model, Relational MOdel and Object Orirented Model
  • XML
A

Semistructure Data Model

34
Q

Steps in Data Model Design

A
  1. Identify entities
  2. Identify relationships among entities
  3. Determine the cardinality and participation of relationships
  4. Designate keys / identifiers for entities
  5. List attributes of entities
  6. Identify constraints and business rules