Exam 1 Flashcards

1
Q

Metadata

A

Data that describes the data

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

Entity

A

Collection of entity instanced – a container

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

Attributes

A

characteristics about an entity

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

Binary relationship

A

a relationship between two entities. pk—>fk

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

Ordinality

A

0 or 1

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

Cardinality

A

1 to many

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

On delete restrict

A

when you tried to delete an owner in a normal relationship and it gives an error because there needs to be owner for the child entity.

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

On delete set Null

A

we change on delete restrict to on delete set null and the owner in the record would become null. relationship changes to where owner becomes optional and mandatory 1 to many.

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

On delete cascade

A

makes it so that when we delete owner we delete all corresponding records. relationship changes to where owner becomes pk and fk in child entity. line and dots.

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

Many to many relationship

A

uses associate entity. both pk become pk & fk in the associative entity. Same thing as two binary 1:M relationships.

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

Historical associative entity

A

compositive pk & fk’s become fk’s and a new pk is made so that we can keep historical data.

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

ternary relationship

A

only used when three entities must be in a fourth entity. works the same as an associative identity.

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

1:1 relationships

A

either pk can become fk in mandatory. if one side is mandatory and one side is optional, the primary key from the mandatory side will become a foreign key in the optional side. if both sides are optional collapse into one entity.

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

two relationships between two entities

A

both pk’s become fk’s in other entity

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

unary relationship

A

an entity instance has a relationship with another entity instance in the same entity. the fk is from the same entity but different name. m:n > m:m one of the primary keys in the associative identity needs to be renamed.

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

SubTypes

A

A subgrouping of the entities in an entity type which has attributes that are distinct from those in other subgroupings

17
Q

Total Specialization Rule

A

means must be a member of at least one subtype. yes, double line.

18
Q

Partial Specialization Rule

A

means it is optional to be a member of a subtype. no, single line.

19
Q

Disjoint rule

A

an instance of the supertype can be only one of the subtypes

20
Q

overlap rule

A

an instance of the supertype could be more than one of the subtypes.