Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational...

Post on 16-Jan-2016

219 views 0 download

Transcript of Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational...

Chapter One (Introduction)

Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle

2

Definitions Introduction to Databases. Database Management

Systems(DBMS) Relational Database Management

System

3

Relational DBMS RDBM: Data are represented as a

set of tables (relation is a mathematical term for a table)

Originated by E.F. Codd (1970) Based on sets theory

4

Structure of RDBM:

A set of relations (Tables) Each relation has a unique name Each relation has a set of

attributes (Columns) Each relation has a set of tuples

(Rows)

5

Restriction on RDBM:

No two tuples are the same No two attributes are the same The order of tuples are immaterial The order of attributes are immaterial There is an attribute or a collection of

attributes which identifies tuples uniquely called Primary Key

Value of attribute must be atomic

6

Restriction on RDB: (Continued)

Example:Student ( Name, Id, Gpa );

7

Domains

A set of legal values for an attribute (types)

8

Database Life Cycle

1. Analysis:

Study and analyze business requirements

Interview managers and users for the information requirements

Develop a system specification

9

Database Lifecycle

2. Design (Data Models) Entity relational model (ER) Unify modeling language (UML)

Check the design

3. Build the Databases/Document/Test Create tables and views, and programs Produce manuals

10

Database Lifecycle

4. Product delivery Load the software Monitor the performance

11

Practice (Analysis): Develop a System Specification for

a video store: