• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/50

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

50 Cards in this Set

  • Front
  • Back

Entity

A person, place, object, event, or concept in the user environment about which the organization wishes to maintain data

Three Schema Approach

External Schema


Conceptual Schema


Internal Schema

External Schema


(Enterprise Data Model)

The step in which the scope and general contents of databases are specified

External Schema Contents

High level, abstract picture of data


Entities: SEE ENTITY FLASHCARD


Entity-relationship diagram: Relationships between entities


Business rules (constraints)


Business rules determined from business functions/data matrices

Conceptual Schema

A detailed, technology independent specification of the overall structure of data

Internal Schema Types

Logical


Physical

Logical Schema Definition

Representation of data for a particular data management technology (such as the relational model)

Physical Schema

Specifications detailing how the logical schema data is represented and stored in the secondary storage using a specific database management system (DBMS) (like Oracle)

Each logical data model has BLANK physical data models

ONE

Enterprise Data Modeling (7 factors)

First step in the development process


Specifies scope/content


Big picture, high level of abstraction


E-R Diagram


Descriptions of entity types


Entity-relationships


Business Rules

System Development Life Cycle


SDLC



Detailed, planned development process


Time consuming but comprehensive


Long development cycle

Rapid Application Development


RAD

AKA Prototyping


Cursory attempt at conceptual data modeling


Define DB during development of prototype


Repeat implementation and maintenance w/ new prototype versions

Data Warehouse

Integrated decision support database whose content is derived from various operational databases


Can be used to find patterns/trends

SDLC 6 Steps

Planning


Analysis


Logical Design


Physical Design


Implementation


Maintenance

Entity-relationship Model


(E-R Model)

Logical representation of data using entities for categories of data and relationships for associations between entities

Composite Attribute

Attribute has MEANINGFUL component parts


Ex: Names (first, middle, last) Address (number, street name, city, state, zip)

Component attribute

??

Derived Attribute

Attribute whose values can be calculated from related attribute values


Ex: Years with company? Use today's date & date hired, no need to store

Degree

Number of entity types that participate in the relationship



Three most common degrees


(in E-R models)

Unary


Binary


Ternary

Cardinality Constraint

Specifies the number of instances of one entity that can (or must) be associated with each instance of another entity

Disjointedness Constraint

Whether an instance of a supertype may SIMULTANEOUSLY be a member of two (or more) subtypes

Disjoint rule

Instance of supertype can be only ONE of the subtypes


(Cannot be both plaintiff & defendant)

Overlap rule

Instance of supertype could be more than one of the subtypes


(Alumni can be employees)

Supertype-Subtype


Define both

Supertype: Generic entity type that has a relationship with one or more subtypes


Subtype: Subgrouping of entities in an entity type using their shared common attributes DISTINCT FROM OTHER SUBGROUPINGS

Entity Cluster

Set of one or more entity types & associated relationships grouped into a single abstract entity type

Subtype Discriminator

Attribute of a supertype whose values determine the target subtype(s)


Ex: Employee type

Primary Key

Unique identifiers of the relation. Ex: employee numbers, SSNs, etc


USED TO GUARANTEE ALL ROWS ARE UNIQUE

Table is made up of

Rows and Columns

Rows on a table are:

Instances of an entity

Columns on a table are:

Attributes of the entities

Composite Key

Key with more than one field

Recursive foreign keys

A foreign key in a relation that references the primary key values of the same relation.


Ex: See figure 4-17 page 174

Foreign Key

An attribute in a relation that serves as the primary key of another relation in the same database

One to One Binary Relationship

Primary key on mandatory side becomes a foreign key

Null

A value that may be assigned to an attribute when no other value applies or is unknown

Unary Relationship

?

Strong Entity Type

Exists independently of other types of entities


Has its own unique identifier


Identifier underline with a single line

Weak Entity

Dependent on a strong entity (identifying owner) Cannot exist on its own


Does not have a unique identifier


Entity box and partial identifier have double lines

Relation

Named, two dimensional table of data

3 Anomaly Types

Insertion Anomaly


Deletion Anomaly


Modification Anomaly

Attribute Inheritance

A property by which subtype entities inherit values of all attributes and instances of all relationships of their supertype

Associative Entity

An entity type that associates the instances of one or more entity types and contains attributes that are peculiar to the relationship between those entity instances

Multi-valued attribute

Shown using { }


Attribute that can have more than one option


Ex: skills, employee can have multiple skills

Referential Integrity Constraint

Any foreign key value (on the relation of the many side) must match a primary key value in the relation on the one side (or the foreign key can be null)

Delete Rules

Restrict: Can't delete parent if dependents exists


Cascade: Delete dependent if parent is deleted


Set-to-Null: Set foreign key on the dependent side to null if deleting from the parent side (not allowed for weak entities)

Entity Integrity Rule

Designed to ensure that every relation has a primary key & the data values for that primary key are all valid

Generalization (subtype/supertype)

A way of defining sub & super types.

Bottom up


The process of defining a more general entity type from a set of more specialized entity types


Ex: car, truck, motorcycle


Common themes create a supertype and place the shared attributes in the supertype entity

Partial Specialization (subtype/supertype)

Shown with a single line


Ex: vehicle can be car or truck but can also be neither of those things



Total Specialization (subtype/supertype)

Shown with a double line


Ex: must be either outpatient OR resident. Cannot be both or neither