The Entity Relationship(E-R) Model Flashcards

(23 cards)

1
Q

Purpose of E-R Model

A

E-R diagrams facilitate database
design

Express logical properties of mini-
world of interest within enterprise

Not limited to any particular DBMS

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

Entity

A

Object that exists and that can be distinguished from other objects

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

Entity Type

A

Category of entities

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

Entity Set

A

Collection of entities of the same type that are well defined

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

Entity Instance

A

Particular noun

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

Entity Type forms

A

An intension of entity

permanent definition part

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

Entity instances forms a

A

Extension of entity

All instances that fulfill the definition at the moment

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

Basic Symbols for E-R Diagram

A

Entity - rectangle
Attribute - oval
Relationship - diamond
Link - line

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

What does the rectangle represent for the entity?

A

It represents the entity set, not the individual entitity

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

Attributes

A

Defining properties or qualities of entity type

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

Domain

A

Set of allowed values for attribute

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

What are some components of an attribute

A
  • May have null values for some entity instances
  • May be multi-valued – use double oval on E-R diagram
  • May be composite – use oval for composite attribute, with ovals for components
  • May be derived – use dashed oval
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Best way to remember attributes and entities

A

Attributes - columns

Entities - rows

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

Superkey

A

Attribute or set of attributes that uniquely identifies an entity

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

Candidate key:

A

Superkey such that no proper subset of its attributes is also superkey (minimal
superkey – no unnecessary attributes)

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

Primary key

A

candidate key actually used for identifying entities and accessing records

17
Q

Alternate key

A

candidate key not used for primary key

18
Q

Composite key

A

key with more than one attribute

19
Q

Foreign key

A

Term used in relational model (but not in the E-R model) for an attribute that is primary key of a table and is used to establish a relationship, usually with another table, where it appears as an attribute also

20
Q

Relationships

A

Connections or interactions between entity sets

Represented by diamond on E-R diagram

21
Q

Relationships type

A

Category of relationships

Forms intension

22
Q

Relationships set

A

Collection of relationships of same type that exist a given moment

Forms extension

23
Q

What does set and type form?

A

Type forms intension; set forms