Docsity

Database Systems and Database Management Systems, Lecture notes of Database Programming

Toggle sidebar
bg1
2/5/2025
1
CS235 – DATABASE TECHNOLOGIES
• CA – 40%
– 2 TESTS
• EXAM – 60%
•www.LeChaamwe.weebly.com
– Lecture Notes
– Undergraduate
– CS235
• Prescribed Book
–Fundamentals of DATABASE SYSTEMS, 5
th
Edition
by Ramez Elmasri and Shamkant B. Navathe
1
Introduction to
Databases
Introduction to
Databases
2
Definitions of Database
Def 1: Database is an organized collection of
logically related data
Def 2: A database is a shared collection of logically
related data that is stored to meet the requirements of
different users of an organization
Def 3: A database is a self-describing collection of
integrated records
Def 4: A database models a particular real world
system in the computer in the form of data
34
Definitions
Data: stored representations of meaningful objects and
events or
Referred to facts concerning objects and events that
could be recorded and stored on computer media
Structured: numbers, text, dates
Unstructured: images, video, documents
Information: data processed to increase knowledge in
the person using the data
Metadata: data that describes the properties and
context of user data
5
What is a Database
Shared collection of logically related data (and a
description of this data), designed to meet the
information needs of an organization.
System catalog (metadata) provides description of
data to enable program–data independence.
Logically related data comprises entities,
attributes, and relationships of an organization’s
information.
Figure 1-1a Data in Context
Context helps users understand data
6
pf3
pf4
pf5

Partial preview of the text

Download Database Systems and Database Management Systems and more Lecture notes Database Programming in PDF only on Docsity!

CS235 – DATABASE TECHNOLOGIES

  • CA – 40%

– 2 TESTS

  • EXAM – 60%
  • www.LeChaamwe.weebly.com
    • Lecture Notes
    • Undergraduate

– CS

  • Prescribed Book
    • Fundamentals of DATABASE SYSTEMS, 5

th

Edition

by Ramez Elmasri and Shamkant B. Navathe

1

Introduction to

Databases

Introduction to

Databases

2

Definitions of Database

 Def 1: Database is an organized collection of

logically related data

 Def 2: A database is a shared collection of logically

related data that is stored to meet the requirements of

different users of an organization

 Def 3: A database is a self-describing collection of

integrated records

 Def 4: A database models a particular real world

system in the computer in the form of data

3 4

Definitions

 Data: stored representations of meaningful objects and

events or

 Referred to facts concerning objects and events that

could be recorded and stored on computer media

 Structured: numbers, text, dates

 Unstructured: images, video, documents

 Information: data processed to increase knowledge in

the person using the data

 Metadata: data that describes the properties and

context of user data

5

What is a Database

 Shared collection of logically related data (and a

description of this data), designed to meet the

information needs of an organization.

 System catalog (metadata) provides description of

data to enable program–data independence.

 Logically related data comprises entities,

attributes, and relationships of an organization’s

information.

Figure 1-1a Data in Context

Context helps users understand data

6

Graphical displays turn data into useful information

that managers can use for decision making and

interpretation

7

Descriptions of the properties or characteristics of the data,

including data types, field sizes, allowable values, and data

context

8

9

The concept of a shared organizational

database

Accounting

Accounts

Payable

Accounts

Receivable

Management

Planning Control

Manufacturing

Scheduling Production

Marketing

Product

Development

Sales

Corporate

Database

10

A bit of History

 Computer initially used for computational/

engineering purposes

 Commercial applications introduced File

Processing System

11

File Processing System

 A collection of application programs that perform

services for the end-users such as production of

reports

 Each program defines and manages its own data

12

Registration

Applications

Registration

Data

Files

Registration

Examination

Applications

Examination

Data

Files

Examination

Library

Applications

Library

Data

Files

Library

File Processing Systems

Program and Data Interdependence

SOLUTION:

The DATABASE Approach

 Central repository of shared data

 Data is managed by a controlling agent

 Stored in a standardized, convenient form

This requires a

Database and Database Management System (DBMS)

19 20

Advantages of Database Approach

Registration Examination

Library

Applications

Library

Examination

Applications

Registration

Applications

Database

Management

System

University

Students

Database

  • Data Sharing - Data Independence
  • Controlled Redundancy - Better Data Integrity

Database Management System

 A software system that is used to create, maintain,

and provide controlled access to users of a database

 (Database) application program: A computer program

that interacts with database by issuing an appropriate

request (SQL statement) to the DBMS

21 22

Database Management System

DBMS manages data

resources like an

operating system manages

hardware resources

DBMSDBMS

Database

containing

centralized

shared data

Application

Application

Application

  • Data Storage, Retrieval, and Update.
  • A User-Accessible Catalog.
  • Transaction Support.
  • Concurrency Control Services.
  • Recovery Services.

Functions of a DBMS

23

  • Authorization Services.
  • Support for Data Communication.
  • Integrity Services.
  • Services to Promote Data

Independence.

  • Utility Services.

Functions of a DBMS

24

25

Advantages of Database Approach

  • Program-Data Independence
    • Metadata stored in DBMS, so applications don’t

need to worry about data formats

  • Data queries/updates managed by DBMS so

programs don’t need to process data access

routines

  • Results in: increased application development and

maintenance productivity

  • Minimal Data Redundancy
    • Leads to increased data

integrity/consistency

26

Advantages of Database Approach

  • Improved Data Sharing
    • Different users get different views of the data
  • Enforcement of Standards
    • All data access is done in the same way
  • Improved Data Quality
    • Constraints, data validation rules
  • Better Data Accessibility/

Responsiveness

  • Use of standard data query language (SQL)
  • Security, Backup/Recovery, Concurrency
  • Disaster recovery is easier

27

Costs and Risks of the

Database Approach

  • Up-front costs:
    • Installation Management Cost and

Complexity

  • Conversion Costs
  • Ongoing Costs
  • Requires New, Specialized Personnel
  • Need for Explicit Backup and Recovery
  • Organizational Conflict
  • Old habits die hard
  • If the database and applications are

simple, well defined, and not

expected to change

  • If there are stringent real-time

requirements that may not be met

because of DBMS overhead.

  • If access to data by multiple users is

not required.

When a DBMS may be

unnecessary

28

Questions

29