• 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/79

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;

79 Cards in this Set

  • Front
  • Back

View

An application program's or individual user's picture of the database.

View Example

CREATE VIEW Games AS


SELECT ItemNum, Description, OnHand, Price


FROM Item


WHERE Category= 'GME'


;

Defining Query

Indicates what to include in the view. SELECT command creates this view. Data doesn't exist in this form and it never will.

Query involving View

DBMS changes the query to one that selects data from the tables in the database that created the view. Merges query to the query that defines the view.


SELECT ItemNum, Description, OnHand, PriceFROM Item


WHERE Category= 'GME'


AND OnHand<25

Row-and-Column Subset View

A view that consists of a subset of the rows and columns in a table.



Advantages of Views

-Provides data independence. User can still access and use the same view even after fields being added or relationships changing between tables.


-Because each user has their own view, different users can view the same data in different ways.


-Greatly simplifies the user's perception of the database.


-Measure of security: Fields that are not included in the field are not accessible to the view's user.

Index

A file that relates key values to records that contain those key values. Increases efficiency with which data is retrieved from the database. Add and Delete indexes as necessary.

Index Key

The field or combination of fields on which the index is built.

Index Disadvantages

-Index occupies space on a storage device. Not necessary because retrieval can be made, less efficiently, without the index.


-DBMS must update the index whenever corresponding data in the database is updated.

Conditions to Create an Index

-Field is primary key of the table


-Field is foreign key in a relationship you have created


-Frequently use the field as a sort field


-Frequently need to locate a record based on the value in this field



CREATE INDEX Command

Creates an Index.

Indexed Options

No (Default)- When you need to remove a previously created index


Yes (Duplicates OK)- Create an index that allows duplicate values


Yes (No Duplicates)- Cannot add same values

Single-field Index

An index whose key is a single field

Multiple-field Index

An index with more than one field. List more important key first.

Drop Index

Delete an index that is not necessary

Security

Prevention of unauthorized access to the database

GRANT Statement

Provides access, different types of privileges can be granted to user. Rights to select, insert, update, and delete table data.

REVOKE Statement

Revoke user privileges, no access.

Entity Integrity

Rule that no field that is part of the primary key may accept null values. Ensures to recognize one record from another in the primary key.

Null

When value is missing, unknown, or inapplicable. Primary keys NEVER allows Null.

Referential Integrity

Rule that if table A contains a foreign key that matches the primary key of table B, the values of this foreign key must match the value of the primary key for some row in table B or be Null.

Foreign Key

Field in a table whose value is required to match the value of the primary key for a second table.

Cascade Delete

Ensures that deleting a rep record also deletes the customer records

Cascade Update

Ensures that changing a rep record are also made to the customer records

Legal-Values Integrity

Property that states that no record can exist in the database with a value in the field other than one of the legal values.

CHECK Clause

Enforces legal-values integrity.


Access uses validation rule and validation text.

ALTER TABLE Command

Allows the creation of new fields in existing tables (SQL). ADD, MODIFY, DROP COLUMN, DROP TABLE commands

System Catalog

Information about tables in the database. Maintained automatically by DBMS.

Documenter

Allows you to print detailed documentation about any table, query, report, form, or other object in the database.

Client-server System

Database resides on a computer called the server and users access the database through clients.

Client

A computer that is connected to a network and has access through the server to the database.

Stored Procedure

Saving a particular query that is used often. Placed on the server and is convenient. Response to user request.

Trigger

Action that occurs automatically in response to an associated database operation. Stored and compiled on the server. Response to a command that causes the associated database operation to occur. (Access= data micro)

Arguments

Additional info required about an action in a data micro to complete the action

Normalization Process

The process of removing repeating groups to produce a first normal form table. Goal of normalization is to take a table and produce a new collection of tables that represent the same info but that is free of update anomalies.

Update Anomaly

An update problem that can occur in a database as a result of a faulty design

Functional Dependence

Column B is functionally dependent on column A if a value for A determines a single value for B at any one time.

Primary Key

1. All columns in Relation Table (R) are functionally dependent on A
2. No subcollection of the columns in A also has Property 1.


Candidate Key

A column in the table that are functionally dependent AKA, alternate key. (Same definition as Primary Key)

Unnormalized relation

A relation that contains a repeating group.

First Normal Form

When it doesn't contain repeating groups. Remove inner parenthesis.

Problems in 1st Normal Form

Update- Changing each row that contains same data


Inconsistent data- Description of object can be different for each row


Additions- Make up numbers to create new rows


Deletions- Deleting one order would cause you to lose all info about that product.

Nonkey Column

When a column is not a part of the primary key.

Second Normal Form

When it is in 1st Normal Form and no nonkey column is dependent on only a portion of the primary key (no partial dependencies).

Dependency Diagram

Uses arrows to indicate all the functional dependencies present in the Orders table. Arrow above boxes= normal dependencies that should be present. Arrow below= Prevent table from second normal form, partial dependencies- dependencies on only a portion of the primary key.

Problems in 2nd Normal Form

Wasted space


Updates


Inconsistent data


Additions


Deletions

Determinant

Any column that determines another column

Third Normal Form

When it is in second normal form and the only determinants it contains are candidate keys.

Problems in 3rd Normal Form

Update


Additions


Deletions

Multivalued Dependence of column B on column A

When each value for A is associated with a specific collection of values for B and further this collection is independent of any values for C.

Fourth Normal Form

When it is in third normal form and there are no multivalued dependencies.

Interrelation Constraint

A condition that involves two or more relations

Informational-level Design

Database designers design a database that satisfies the organization's requirements as cleanly as possible. Completed independently of any particular DBMS that the organization will use.


1. Represent the user view as a collection of tables


2. Normalize these tables


3. Identify all keys in these tables


4. Merge the results of Steps 1 through 3 into the cumulative design

Physical-level Design

Designer must consider the characteristics of the particular DBMS that the organization will use.

User View

The set of requirements that is necessary to support the operations of a particular database user.

Cumulative Design

A design that supports all the user views encountered thus far in a design process.

Steps of the Design Process

1. Determine the entities involved and create a separate table for each type of entity.


2. Determine the primary key for each table.


3. Determine the properties of each entity.


4. Determine relationships between entities.

Many to Many Relationship

Creating a new table whose primary key is the combination of the primary keys of the original tables.

One to Many Relationship

Primary key of "one" table as a foreign key in the "many" table.

Secondary Keys

Columns that are of interest strictly for the purpose of retrieval.

Natural Key (Logical or Intelligent Key)

A primary key that consists of a column that uniquely identifies an entity.

Artificial Key

A column for an entity to serve solely as the primary key and that is visible to users.

Surrogate Key (Synthetic Key)

A system-generated primary key that is usually hidden from users

Database Design Language (DBDL)

A relational-like language that is used to represent the result of the database design process.


Tables, columns, and primary keys are written by first listing the table name and listing the column that make up the table.


Primary key= underlined


Alternate key= AK


Secondary key= SK


Foreign key= FK, followed by an arrow pointing to the table identified by the foreign key.

Entity-Relationship Diagram


Visually illustrates all the information listed in the DBDL.

Independent entity

An entity that does not require a relationship to another entity for identification.

Dependent entity

An entity that does require a relationship to another entity for identification.

Identifying relationship

Relationship that is necessary for identification

Nonidentifying relationship

Relationship that is not necessary for identification

Bottom-up Design Method

Which specific user requirements are synthesized into a design


Benefits: Ensures each requirement is met.

Top-down Design Method

Begins with a general database design that models the overall enterprise and repeatedly refines the model to achieve a design that supports all necessary applications.


Benefits: Have an idea where you are headed.

Survey Form

Entity Information- For each entity, record a name and description and identify any synonyms for the entity


Attribute information- List general information about its use.


Relationships- Include entities involved, type of relationship, significance, and restrictions


Functional dependencies- Information about it existing among the columns.


Processing information- Description of manner

Incomplete/Complete Categories

Incomplete= 1 horizontal line


Complete= 2 horizontal lines

Composite entity


Both an entity and relationship and is represented in an E-R diagram by a diamond within a rectangle.

Existence dependency

Existence of one entity depends on the existence of another related entity

Weak Entity

Entity depends on another entity for its own existence

Cardinality

Number of items that must be included in a relationship

Optional Role

Entity in a relationship with minimum cardinality of 0

Mandatory Role

Entity in a relationship with minimum cardinality of 1