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

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

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

Page 1: Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle.

Chapter One (Introduction)

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

Page 2: 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

Page 3: Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle.

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

Page 4: Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle.

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)

Page 5: Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle.

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

Page 6: Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle.

6

Restriction on RDB: (Continued)

Example:Student ( Name, Id, Gpa );

Page 7: Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle.

7

Domains

A set of legal values for an attribute (types)

Page 8: Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle.

8

Database Life Cycle

1. Analysis:

Study and analyze business requirements

Interview managers and users for the information requirements

Develop a system specification

Page 9: Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle.

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

Page 10: Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle.

10

Database Lifecycle

4. Product delivery Load the software Monitor the performance

Page 11: Chapter One (Introduction) Objectives Introduction to Database Management Systems (DBMS) Relational Databases Model Restrictions of RD Database Life Cycle.

11

Practice (Analysis): Develop a System Specification for

a video store: