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

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;

20 Cards in this Set

  • Front
  • Back

Database

Collection of related data

Data

Known facts that can be recorded and have meaning

Database Management System

Software to facilitate the creation/maintenance of a database

Database System

The DBMS with the data itself, and sometimes application

Characteristics of Database Approach

Self-Describing Nature of a Database System


Program-Data Independence


Data Abstraction


Support got Multiple Views of Data


Sharing Data/Multi-User Transaction Processing

Advantages of Database Approach

Controlling redundancy


Providing multiple interfaces


Restricting access


Providing backup/recovery services


Representing complex relationships


Enforcing integrity constraints

When a DBMS may be unnecessary

If DB is simple, well-defined and unlikely to change


If concurrent access not required


If real-time requirements may be broken by DBMS overhead



When a DBMS may not suffice

If users needs special operations not supported by DBMS


If modelling limitations mean complexity of data cannot be handled

Data Model

A set of concepts to describe:


Structure of DB


Operations for manipulating structures


Constraints that DB should obey

Data Model Constraints

Define restrictions on valid data that must be


followed at all times

Data Model Operations

Specify DB retrievals and updates by referring to constructs of data model


Basic: insert,delete,update


User-defined: compute_student_gpa

Data Model Categories

Conceptual Models (high level, semantic)


Physical Models (low level, internal)


Implementation Models (representational)

Schema

Description of DB, including structure, data types and constraints

Schema Diagram

Illustrative display of schema

Schema Construct

Component of schema or object within it

State

DB, including data, as it exists at a particular


moment in time

Schema vs State

Infrequent change


vs


change every time data is modified



Three-Schema Architecture (TSA)

Supports program-data independence and multiple view of data

Three Levels of Schemas in TSA

Internal Schema (Physical Data Model) -


physical storage details


Conceptual Schema (Conceptual/


Implementation Model) -


structure/constraints of DB


External Schema (same as Conceptual Schema) - user views



DBMS Languages

Data Definition Language (DDL)


Specifies Conceptual/Internal Schemas




Data Manipulation Language (DML)


Used to query and manipulate DB