0% found this document useful (0 votes)
6 views18 pages

Chapter 1

The document introduces databases, explaining that they are collections of related data managed by Database Management Systems (DBMS). It contrasts traditional file-based systems with database approaches, highlighting the advantages of data integration, reduced duplication, and improved access control. Additionally, it outlines the roles of various stakeholders in the database environment and discusses the advantages and disadvantages of using DBMSs.

Uploaded by

anzalmuzammil2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views18 pages

Chapter 1

The document introduces databases, explaining that they are collections of related data managed by Database Management Systems (DBMS). It contrasts traditional file-based systems with database approaches, highlighting the advantages of data integration, reduced duplication, and improved access control. Additionally, it outlines the roles of various stakeholders in the database environment and discusses the advantages and disadvantages of using DBMSs.

Uploaded by

anzalmuzammil2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Introduction to Database

Chapter 1

1
Introduction
• Database is a collection of related data
• Databases are managed and controlled using DBMS (Database
Management System) software
• Program that interacts with the database at some point in its
execution is know as database application
• More inclusive term database system as a collection of application
programs that interact with the database along with the DBMS and
the database itself

2
Examples

3
Traditional File-Based Systems
• File-based Approach
• Data-based Approach

4
File-based Approach
• A collection of application programs that perform services for the
end-users, such as the production of reports. Each program defines
and manages its own data.
• Earlier conversion of manual filing system
• Logically related items can be stored in separate folders for easy
retrieval
• Works good for small data entries but multi file processing is not
available
• Excessive data duplication

5
Limitations of the File-Based Approach
• Separation and isolation of data
• Duplication of data
• Data dependence
• Incompatible file formats
• Fixed queries of application programs

6
Database Approach
• In file-based system data is embedded in the application programs,
rather than being stored separately and independently
• No control over the access and manipulation of data beyond that
imposed by the application programs
• In new devised approach, a shared collection of logically related data
and its description is designed to meet the information needs of an
organization

7
Database
• Single, possibly large repository of data that can be used
simultaneously by many departments and users
• Data items are integrated with minimal duplication
• Data is shared among different entities of enterprise
• Data description (Metadata) is also stored
• Data abstraction
• Data structure is separated from program makes it data independent

8
Database
• Entity
• Distinct object (a person, place, thing, concept, or event) in the organization
that is to be represented in the database
• Branch, Staff, PropertyForRent, Client, PrivateOwner, and Lease
• Attribute
• Property that describes some aspect of the object that we wish to record
• branchNo, staffNo, propertyNo, clientNo, ownerNo, and leaseNo.
• Relationship
• Association between entities
• Has, Offers, Oversees, Views, Owns, LeasedBy, and Holds

9
Entity Relationship Diagram

10
Database Management System (DBMS)
• Software system that enables users to define, create, maintain, and
control access to the database
• Define the database using DDL (Data Definition Language)
• DML (Data Manipulation Language) is used to insert, update, deletion
and retrieval
• SQL (Structured Query Language) most commonly used query
language

11
Database Application Program
• Program that interacts with the database by issuing an appropriate
request (typically an SQL statement) to the DBMS
• Applications can be online or offline
• View mechanism allows each user to have own view of the database
to provide security, appearance customization, consistent and
unchanging structure

12
Components of the DBMS Environment

13
Roles in the Database Environment
• Data and Database Administrators
• Data Administrator is responsible for database planning; development and
maintenance of standards, policies and procedures; and conceptual/logical
database design
• Database Administrator is responsible for physical database design and
implementation, security and integrity control, maintenance of the
operational system, and ensuring satisfactory performance of the applications
for users

14
Roles in the Database Environment
• Database Designers
• Logical Database Designer is concerned with identifying the data (that is, the
entities and attributes), the relationships between the data, and the
constraints on the data that is to be stored in the database
• Physical database designer decides how the logical database design is to be
converted to physical design
• Mapping the logical database design into a set of tables and integrity constraints
• Selecting specific storage structures and access methods for the data to achieve good
performance
• Designing any security measures required on the data

15
Roles in the Database Environment
• Application Developers
• Works as per specifications by System Analyst
• Develops different operations on database like data retrieval, insertion,
updating and deleting
• End-Users
• Naïve Users
• Clients of database
• Use database operations with in-depth knowledge
• Sophisticated Users
• Familiar with the structure of the database
• Use high level SQL for different operations

16
Advantages and Disadvantages of DBMSs
• Advantages
• Control of data redundancy
• Data consistency
• Data integrity
• Data security
• Data sharing
• Data accessibility and responsiveness
• Increased productivity
• Improved maintenance
• Increased concurrency
• Improved backup and recovery

17
Advantages and Disadvantages of DBMSs
• Disadvantages
• Complexity
• Database size
• DBMS cost
• Hardware cost
• Conversion cost
• Performance
• Greater impact of failure

18

You might also like