quiz 1 Flashcards
what are constraints in entity-relationship model
something that restricts relationships
what is a composite attribute
attributes that can be divided into sub-parts, use sub-parts in diagram
what are multivalued attributes
a single entity with multiple attrictbutes of the same type, not allowed for class, replace with a new entity set
what are derived attributes and how are they denoted
attributes whos value can be determined by other values available. denoted with broken oval around attribute
what is a key
a set of attributes whos values can uniquely identify an entity in an entity set
what is a superkey
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
what is a candidate key
a candidate key is a minimal superkey, no extrenuous or unnecessary attributes
what is a primary key and how are they denoted
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
what is a relationship and its difference between relationship set
relationship is the association between entities. relationship sets are a set of relations of the same type
true or false: relationship sets can have (descriptive) attributes
true, used for properties that cant be associated with either connected entity sets
true or false: binary relationships can look like loops and if so will contain role descriptors
true slide 33
what is mapping cardinalities
to specify how many entities of set A is associated with ONE entity in set B and vice versa
what is a key constraint
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)
what is a one to one relationship and how do you show it in a diagram
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
what is a one to many/many to one relationship and how to you denote it on a diagram
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