Lesson 1: Introduction

General Notes

These notes use examples of Structured Query Language (SQL) code throughout. Not all dialects of SQL support the syntax shown here. This syntax is based upon MySQL. There are many dialects of SQL, including: SQL Anywhere, DB2, Oracle, amongst others. Depending on the dialect, some operations may have to be reworded, or restricted.

Introduction

What is a Database?


Database Applications


Common Database Properties


Database Management System (DBMS)

Database and Application Development

Analysis


Design


Implementation

Data

Metadata


Data Relations


Data Redundancy

Uncontrolled redundancy (repetition of data) can lead to problems:

Controlled redundancy can be used in specific instances - ex. data repeated in order to improve query performance. In such a case the DBMS must be designed to make sure that repeated data is automatically added or updated as necessary in order to avoid duplication of effort and inconsistent data.


Data Integrity

A DBMS must define and enforce constraints on its data. This helps to verify the correctness of the data, at least so far as the constraints are defined.

Data insert or update attempts that violate these integrity checks can be rejected by the DBMS. Application programs do not need to worry about applying the rules, and thus these integrity checks do not have to be programmed into every application. The application merely needs to handle any error exceptions provided by the DBMS.


The Relational Model