Professional Documents
Culture Documents
Data Base System Ch1
Data Base System Ch1
Introduction To
Database Systems
Introduction
❖DBMS stands for Database Management
System.
❖DBMS is a software system for creating,
organizing and managing the database.
❖ It provides an environment to the user to
perform operations on the database for
creation, insertion, deletion, updating and
retrieval of data.
2
What is Data?
• A collection of raw facts and figures.
• Raw material that can be processed by any
computing machine.
• Known facts that can be recorded and have an implicit
meaning.
• Data can be represented in the form of:
numbers and words which can be stored in
computer’s language.
i.e. Asif khan, Asad ,001, tigist , Id= Is/1276/2011
3
What is Information?
➢A processed data.
➢Systematic and meaningful form of data.
➢ Knowledge acquired through study or
experience.
➢Information helps human beings in their
decision making.
4
Basic Definitions
5
What is DBMS ?
➢ A set of programs to access the interrelated data.
➢ DBMS contains information about a particular enterprise.
➢ Computerized record keeping system.
➢ Provides convenient environment to user to perform
operations: Creation, Insertion, Deletion, Updating &
Retrieval of information
Give examples of DBMS
• Access DB ,DB2 (IBM), SQL Server (MS), Oracle, Sybase
MySQL, Postgres, …
6
Types of databases
➢ Traditional database: most of the information that is stored
and accessed is either textual or numeric.
➢ Advances databases
1. Multimedia databases can now store pictures, video
clips, and sound messages.
2. Geographic information systems (GIS) can store and
analyze maps, weather data, and satellite images.
3. Data warehouses and online analytical processing
systems are used in many companies to extract and
analyze useful information from very large databases for
decision making.
4. Real-time and active database technology is used in
controlling industrial and manufacturing processes.
7
Basic database terminologies
➢ Enterprise: An organization: A library, a bank, a university, etc.
➢ Entity: Person, place, thing, or event which is an "object" in the
real world that we are interested in. Eg. Student is an entity
➢ Attribute (Field): A character or group of characters (alphabetic
or numeric), that has a specific meaning. Eg. Name, age,
telephone, grade, sex, etc.
➢ Record: A logically connected set of one or more Attributes that
describe a person, place or thing. (Logically related data)
➢ File: A collection of related records. For example, a file might
contain data about customers; or students of a certain
department in a university. 8
Basic database terminologies…..
9
Data management Approach
1. Manual Approach
2. File-Based Approach
3. Database Approach
10
Manual Approach
The primitive and traditional way of information handling where
cards and papers are used for the purpose.
12
File-Based Approach
➢ Since every application defines and manages its own data, the
system is subjected to serious data duplication problem.
13
File-Based Approach
Limitations of File-Based systems
➢ Data Redundancy (duplication of data)and Inconsistency
•Same data is held by different programs
•Wasted space (Uncontrolled duplication of data)
➢Difficulty in accessing data. E.g. The maximum result in DB
➢ Separation and isolation of data / multiple file and format/
E.g. Gender in file initially written Female & Male in Other file F&M (the
same file in d/f format )
•Each program maintains its own set of data. Users of one
program may be unaware of potentially useful data held by
other programs.
•Special codes for different queries
➢ Poor Security and administration
➢ Integrity problem
➢ Atomicity problem
➢ Concurrent access anomalies 14
Database Approach
➢ Single repository of data is maintained(centralized)
➢ Data can be shared
➢ Improved data accessibility - By using structured query
languages, the users can easily access data without programming
experience.
➢ Redundancy can be reduced
➢ Inconsistency can be avoided
➢ Integrity can be maintained
➢ Security measures can be enforced
➢ Less Labor
➢ Centralized information control: Since relevant data in the
organization will be stored at one repository, it can be controlled
and managed at the central level.
15
Database Approach
16
Main Characteristics of Database
Approach
• Self-describing nature of a database system: A DBMS catalog
stores the description of the database. The description is called
meta-data). This allows the DBMS software to work with
different databases.
17
Main Characteristics of Database Approach….
18
DBMS
It is a general-purpose software system that facilitates the
following processes.
19
DBMS….
20
Advantages of DBMS
➢ Controlling redundancy in data storage
➢ Sharing of data among multiple users.
➢ Restricting unauthorized access to data.
➢ Providing persistent storage for program Objects
➢ Providing Storage Structures for efficient Query Processing
➢ Providing backup and recovery services.
➢ Providing multiple interfaces to different classes of users.
➢ Representing complex relationships among data.
➢ Enforcing integrity constraints on the database.
➢ Drawing Inferences and Actions using rules
➢ Potential for enforcing standards
➢ Reduced application development time
➢ Flexibility to change data structures
➢ Availability of up-to-date information
21
Disadvantages of DBMS
22
Users in database systems
• Database Administrator is responsible for managing resources
(the database itself, the DBMS and Related software) and
authorizing access to the database
• Database Designer is responsible for identifying the data to be
stored in the database choosing appropriate structures to
represent and store this data.
• System Analysts and Application Programmers (Software
Engineers)
1. System analysts: determine the requirements of end users
2. Application programmers: implement these specifications
as programs
23
Users in database systems
• End Users: End users are the people whose jobs require access
to the database for querying, updating, and generating reports;
the database primarily exists for their use.
1. Casual end users: occasionally access the database, but they
may need different information each time.
2. Naive or parametric end users: make up a sizable portion of
database end users. Their main job function revolves around
constantly querying and updating the database,
3. Sophisticated end users: familiarize themselves with the
facilities of the DBMS so as to implement their applications
to meet their complex requirements.
4. Stand-alone users: maintain personal databases by using
ready-made program packages
24