Professional Documents
Culture Documents
Lecture -1
Lecture Overview
Database Definition
Comparison between File Processing approach
and Database
Advantages and disadvantages of Databases
Database users
Some common terms
Data, information and DBMS
What is a
Database
Database definition
A database is a shared collection of logically
related data that is stored to meet the
requirements of different users of an
organization
The concept of a shared organizational
database
Management
Marketing
Corporate
Database
Accounting Manufacturing
Accounts Accounts
Scheduling Production
Receivable Payable
History
File Processing System:
A collection of Programs that perform services for
the end-users such as production of reports
Each Program defines and manages its own data.
File Processing Systems
Database
Management
System
University
Students
Database
Advantages of Database Approach
Advantages
1.Data Security
2.Data Sharing
3.Controlled Redundancy
4.Better Data Integrity
5.Control concurrency
6.Backup and recovery
Disadvantages of Database
system
Examples of DBMS:
Access, Oracle, MySQL, SyBase, SQL Server,..
Functions of DBMS
1. Data Processing
2. A User Accessible Catalog
3. Transaction Support
4. Concurrency Control Services
5. Recovery Services
6. Authorization Services
7. Support for Data Communication
8. Integrity Services
System Catalog
Is a repository of information describing the data in
the DB: it’s the “data about the data” or metadata
example, the system catalog stores:
names, types and sizes of data items;
names of relationships;
integrity constraints on the data;
names of authorized users who have access to the data;
the data items that each can access and the type of
access allowed; for example, insert, delete, update, or
select;
Database
Lecture - 2
Lecture Overview
Database Architecture
Data Independence
Database
Architecture
Three-Schema Architecture
and Data Independence
External or view level
Describes part of the database that a particular
user group is interested
Conceptual level
Describes structure of the whole database for a
community of users
Internal level
Describes physical storage structure of the
database
The Three-Level Architecture
External View
Each user has different views of the same data e.g.
date, time
Virtual/calculated data: that is not actually stored in the
database but is created when needed e.g. age,
statistical data
External schema evolves as user needs are modified
over time
users
Employee Data Workers
First Name: Rand Name: R. Ahmed
Last Name: Ahmed Age: 24y,10d
Date of Birth: Dept: Sales
12 Sep, 1970 External Level
Conceptual Level
01110011010011100101001010100101010010101…..
Data
Independence
Data Independence
Changes in lower level do not affect the upper
levels