quiz 1 Flashcards

1
Q

what are constraints in entity-relationship model

A

something that restricts relationships

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

what is a composite attribute

A

attributes that can be divided into sub-parts, use sub-parts in diagram

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

what are multivalued attributes

A

a single entity with multiple attrictbutes of the same type, not allowed for class, replace with a new entity set

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

what are derived attributes and how are they denoted

A

attributes whos value can be determined by other values available. denoted with broken oval around attribute

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

what is a key

A

a set of attributes whos values can uniquely identify an entity in an entity set

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

what is a superkey

A

a set of attributes that can uniquely identify an entity in an entity set, a set can have multiple superkeys if multiple attributes and their values together can be unique

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

what is a candidate key

A

a candidate key is a minimal superkey, no extrenuous or unnecessary attributes

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

what is a primary key and how are they denoted

A

candidate key chosen to refer to rows in a table. table can only have one primary key. denoted with primary key attribute(s) underlined. a primary key is chosen because their attributes rarely/never change

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

what is a relationship and its difference between relationship set

A

relationship is the association between entities. relationship sets are a set of relations of the same type

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

true or false: relationship sets can have (descriptive) attributes

A

true, used for properties that cant be associated with either connected entity sets

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

true or false: binary relationships can look like loops and if so will contain role descriptors

A

true slide 33

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

what is mapping cardinalities

A

to specify how many entities of set A is associated with ONE entity in set B and vice versa

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

what is a key constraint

A

A key constraint exists between set A and relationship R if entities in set A can only be associated with a single B entity (one to either one or many)

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

what is a one to one relationship and how do you show it in a diagram

A

when an entity in A can only be associated with at more one entity in B AND an entity in B can only be associated with at most one entity in A. denoted with arrows from both entity set to relationship

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

what is a one to many/many to one relationship and how to you denote it on a diagram

A

when an entity in A can be associated with any number of entities in B BUT an entity in B can be associated with at most one entity in A. denoted with the restricted set given an arrow and the whore set given a regular line

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

what is a many to many relationship and how are they denoted

A

an entity in A can map to any number of entities in B AND an entity in B can map to any number of entities in A. denoted with both entity sets connecting to the relationship with a line. no arrows.

17
Q

what are descriptive attributes

A

attributes of a relationship set that cannot be apart of the primary key. primary key attributes are inherited from their connecting entity sets

18
Q

where are primary key attributes for a relationship from

A

derived from one or more of its entity sets, primary keys of relationship sets cannot include descriptive attributes that belong to the set

19
Q

describe many-to-many, one to many/many-to-one and one to one primary keys in relationship sets

A

many-to-many: relationship set’s primary key will be a compound of the primary keys from participating entity sets

one-to-many/many-to-one: the relationship set will take the same as the primary key from the entity with the key constraint (arrow)

one-to-one: the relationship set will take either primary key

20
Q

what is participation constraints, what are the two types and how do you denote them

A

participation constraints are used to indicate that an entity in an entity set must be involved in at least one relationship.

total participation (double line or thick line from relationship to entity): constraint exists, ie all must have a match in the other entity set

partial participation (regular line) : no constraint

21
Q

what is a weak entity set

A

where entities in an entity set cannot be uniquely identified without information from a related entity set

22
Q

what are subclasses

A

class hierarchies of entities

23
Q

what is aggregation

A

used to model the relationship/association that exists between entities and relationships

24
Q

how are entities of a weak entity set identifies and when are we permitted to using a weak set. how are weak sets denoted

A

identified by combining its partial key the primary key of another entity set

only allowed when the owner and weak set are in a one to many relationship and the weak set has total participation in the full entity set.

denoted with double like around the relationship between owner and weak set and a dotted line under the weak relationships partial key

25
Q

true or false: an entity of a subclass is an entity of the super class

A

true

26
Q

true or false: subclasses can have additional attributes outside of the super class

A

true, but all attributes of parents sets are inherited by subclasses along with the participation in relationship sets

27
Q

define specialization and generalization in subclasses

A

specialization: identify subsets with additional attributed from an existing entity set

generalization: identify common attributes of entity sets

28
Q

how to denote class hierarchy in the diagram

A

triangle

29
Q

define disjoint and overlap subclasses

A

disjoint: entities in one subclass cannot appear in another subclass

overlap: entities in one subclass may appear in another subclass

30
Q

what is a coverage constraint and how are the denoted on a digram

A

coverage constraint indicated that all superclass entity must belong to a subclass

denoted with a double line from the superclass to the triangle

31
Q

what is aggregation and when are they used and how do you denote them

A

indicated that a relationship set participates in a relationship with another relationship set

used when there is a relationship between an entity set and another relationship, often used with non-binary relationships

denoted with a rectangle around the relationship and entities that make the aggregate entity