Session 12 (E/R Diagrams) Flashcards

1
Q

what kinds of questions do ER diagrams answer?

A

 What is data?
 How are the data related to each other?
 How can we query the data and change it?
 How do we ensure that the data represents a
correct view of the real world (data integrity)?

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

what is an entity (entity classes?)

A

Person, place, object, event or concept about

which data is maintained

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

Named property of an entity is an ___

A

attribute (info or field)

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

what are relationships?

A

Ties between different entities

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

give an ERD example

A
Entities (Entity Classes)
 e.g., Student, Course, Patient, Doctor
 Attribute (Information or field)
 e.g., Student ID, Course Name, Credits, Medical
School
 Relationships
 e.g., Student takes a class
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is a primary key

A

 Attribute(s) that can uniquely identify a given entity

(or relationship) instance.

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

what is a foreign key

A

Attribute(s) that can uniquely identify a given entity

(or relationship) instance in another entity

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

what is a composite attribute

A

An attribute that has meaningful component parts

attributes

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

what is a multivalued attribute

A

 An attribute that may take on more than one value for a given entity (or relationship) instance.

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

how is entity integrity maintained in a primary key?

A

Unique identifier of record
 Can’t be duplicate
 Can’t be null

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

what is a candidate key?

A

Attribute (or combination of attributes) that

uniquely identifies each instance of an entity type

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

what is an identifier (primary key?)

A

A candidate key that has been selected as the

unique identifying characteristic for an entity type

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

describe cardinalities

A

express the number of entities to which another entity may be associated via a relationship
 Maximum cardinality
 Minimum cardinality

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

what is a relationship

A

describes a physical or conceptual connection between entities. It is always bi-directional

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

what are the three types of binary relationships?

A
  1. one to one
  2. one to many
  3. many to many
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

describe a one to one relationship

A

Maximum cardinality of one for both sides

17
Q

describe a one to many relationship

A

One entity with maximum cardinality equal to one

and one with maximum cardinality equal to N.

18
Q

describe a many to many relationship

A

Relationships with a maximum cardinality of N for

both entities