Quiz 2 Flashcards
The basic concept that the ER model represents is an ____
entity
Entity
Thing or object in the real world with an independent existence
- Can be an object with a physical existence
Attributes
properties that describe entities
Composite Attributes
represent more basic attributes with independent meanings
- Ex: Address can be divided into Street, Address, City, State, Zip
- Can form a hierarchy
Atomic Attributes (simple)
Are not divisible
Single-Valued Attributes
Single-Valued attributes have a single value per entity
- Ex: age
Multivalued Attributes
Multivalued attributes can have multiple values per entity
- Ex: one person can have many college degrees
- can have lower and upper bounds
Derived Attributes
Derived Attributes are derivable from a stored attribute
- Age = Derives
- Date of birth = Stored
Null values
In some cases, a particular entity will not have a value for an attribute
- Ex: some addresses don’t have an apartment number
Complex Attributes
- Arbitrary nesting by grouping components of composite attributes
- Ex: a person can have more than one residence and each residence can have a single address and multiple phones, an attribute Address_phone for a person can be specified - phone and address are composite attributes
Entity type
defines a collection of entities that have similar attributes
- Each type of entity in the database is defined by its name and attributes
- Describes the schema or intension for a set of entities that share the same structure
Entity Set or Entity Collection
The collection of all entities of a particular entity type in the database at any point
- The extension of the entity type - the collection of entities of a particular entity type is grouped into an entity set
Attributes of an Entity Type
- Key or Uniqueness constraint - identifying value
- Specifying that an attribute is a key of an entity type means that the preceding uniqueness property must hold for every entity set of the entity type.
- Entity types can have more than one key attribute
Value Sets (Domains) of Attributes
- Specifies the set of values that may be assigned to that attribute for each individual entity
- Ex: If the range of ages allowed for employees is between 16 and 70, we can specify the value set of the Age attribute of EMPLOYEE to be the set integer numbers between 16 and 70
In ER diagrams, relationship types are displayed as ___ boxes
diamond-shaped