Slide 4 Flashcards

1
Q

Entity Relationship Diagram (ERD)

A
  • A commonly-used conceptual model of data requirements – Others exist…
  • The purpose – identifying and understanding the data requirement from a business perspective
  • A key advantage - can be easily converted to a relational (tabular) logical model – The relational database model is by far the most commonly used storage method for structured data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Entity Relationship Diagram (ERD) consist of

A
  • 1) Entities,
  • 2) Relationships
  • 3) Attributes
  • 4) Cardinalities.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The Three Phases of Database Design

A

Conceptual design
logical design
physical design

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

Conceptual design

A

modeling business entities and their attributes
– E.g., ERD – Entity-Relationships Diagram
– Similar to an architectural “blue-print” for constructing a building.

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

Logical design

A

converting the conceptual model to a specific storage method – E.g., The Relational model – storing the data in twodimensional tables (columns and rows)

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

Physical design

A

converting the logical model to a specific DBMS technology – E.g., Oracle, Sybase, MS-SQL, MS-Access

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

Entity

A

•An abstract concept that we use to represent key business aspects that we need to capture data about

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

The entity (or entity-class) represents a type of objects with some common characteristics:

A

– Persons: agency, contractor, customer, department, division, employee, instructor, student, supplier – Places: sales region, building, room, branch office, campus – Objects: book, machine, part, product, raw material, software license, software package, tool, vehicle model, vehicle – Events: application, award, cancellation, class, flight, invoice, order, registration, renewal, requisition, reservation, sale, trip – Concepts: account, block of time, bond, course, fund, qualification, stock

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

Entity instance – a specific case of an Entity, eg

A

– Universities: Boston University, Harvard, MIT, Boston College …
– Actors: Brad Pitt, Julia Roberts, Denzel Washington, Tom Cruise, Hale Berry,…
– Fast-food chains: McDonald’s, Subway, Starbucks, Burger King

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

In the ERD we represent each entity by a rectangle with the unique name.

A

– Choose a simple name that makes business sense – Singular – E.g., “Student” not “Students”

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

Example – Entities in a Casino environment

Which entities are important?

A
  • Resort
  • Customer
  • Employee
  • Product
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Relationships

A
The relationship  (or relationship-class) represents how instances that belong to two or more entities are associated with each other in the “real-world”
  If entities are the “nouns”, relationships are the “verbs”…
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A relationship instance is a specific case of a relationship

A

E.g., Prof. Emily Bailey (entity instance) teaches IS323 (entity instance) to John Robertson (entity instance)

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

Attributes is:

A

• Characteristics of an entity or a relationship

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

Identifier attributes (also known as primary key):

A

– a set of one or more attributes that uniquely identifies each instance of an entity or relationship
– E.g. Student-ID – unique for each student
– E.g. Course-Number, Semester, Year, Section – together, the combination is unique for each course offering

• Mandatory for each Entity • In the ERD diagram - identifier attributes are underlined

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

Cardinality

A
  • a property of a relationship, the extent of participation
  • Useful for understanding and defining business rules • Defining constraints on entity-participation in the relationship • Can capture both the minimum and maximum degree of participation – E.g., should a student participate at least in one course? • In the ERD – cardinality is represented by using the “crowsfoot” notation
17
Q

ERD – The Importance of Proper Description

A
  • The ERD provides a convenient visual representation of the conceptual model – A great communication tool between business managers and IT-personnel
  • Together with the diagram, it is important to provide some documentation that describes: – The entity, the relationships, and their attributes – Justify the cardinalities • Especially, if any of the above is not obvious and “straight forward