HND Computing UNIT 38: Database Management: Faisal Saghir
HND Computing UNIT 38: Database Management: Faisal Saghir
Faisal saghir
Database Management
System
Objective
“ To make you known about the fundamentals
of Database Management System and Improve
ourselves by taking valuable feedbacks from
you.”
Contents
• Introduction
• What is Data ?
• What is Information?
• Database
• Data Models, Schema and Instances
• Components of Database System
• What is DBMS ?
• Database Administrator (DBA)
• Database Languages
• Database SystemArchitectures
• Advantages of DBMS
• Disadvantages of DBMS
• Examples of DBMS
• MS-Access
• Applications of DBMS
Introduction
• DBMS stands for Database Management System.
-Classification:
1. High-Level Model
2. Representation Model
3. Low-Level Model
High-Level Model
• Ensures data requirement of the users.
• Not concerned with representation, but
it‟s a conceptual form.
• Three Imp terms:
a)Entity: - Any object, exists physically or conceptually.
b)Attribute:- Property or characteristic of entity.
c)Relationship:- Association or link b/w two entities.
- Classification:
a. Hierarchical
b. Relational
c. Network
Hierarchical Database Model
• Developed by IBM, is the Oldest database model.
• Represented using a tree-diagram. Director
the link.
Sales Exe. Sales Exe.
1 2
Sales
Representative
Cont
• Parent-child type is suited for One-to-many
relationship between two entities. Director
• But difficult to implement
Manager Manager Manager
many-to-many relationship. (HR) (Sales) (Market.)
Sales
Representative
Relational Database Model
• Simplest and the most common model.
• Developed in 1970 by E.F. Codd, it became commercial
in the 80s.
• Data elements are stored in
different tables made up of
rows and columns.
Roll No Name Surname Section
1001 Rajkumar Tomar D
• Disadvantages
– Substantial hardware and system software overhead
• more complex system
– Poor design and implementation is made easy
• ease-of-use allows careless use of RDBMS
• Disadvantages
– System complexity
• require familiarity with the internal structure for data access
– Lack of structural independence
• small structural changes require significant program changes
• Relationships
– represented by an active or passive verb
inside the diamond that connects the
related entities.
• Connectivities
– i.e., types of relationship
– written next to each entity box.
• Relationships
– represented by an active or passive
verb that connects the related
entities.
• Connectivities
– indicated by symbols next to
entities.
• 2 vertical lines for 1
• “crow’s foot” for M
• Disadvantages
– Incomplete model on its own
• Limited representational power
– cannot model data constraints not tied to entity relationships
» e.g. attribute constraints
– cannot represent relationships between attributes within entities
• No data manipulation language (e.g. SQL)
– Loss of information content
• Hard to include attributes in ERD
• Disadvantages
– Lack of standards
• no standard data access method
– Complex navigational data access
• class hierarchy traversal
– Steep learning curve
• difficult to design and implement properly
– More system-oriented than user-centered
– High system overhead
• slow transactions
- DBMS.
- Application Software.
- User Interface.
Cont…
Users
Enterprise
database
Client-Server Architecture
• Involves a client and a server.
• Clients are PCs or workstations.
• Servers are powerful computers, can manage files, printers,
e-mails.
• Client interacts server when additional functionality
User interface
Database server
Database tables
Distributed Database Architecture
• Decentralized functionality, distributed among many
computers.
• Storage computers are at diff. geographical locations.
Fragment Fragment
Enterprise
main
database
Fragment Fragment
Fragment
Advantages of DBMS
• Controlling Data Redundancy: Data is recorded in only
one place in the database and it is not duplicated.
• Data Consistency: Data item appears only once, and the
updated value is immediately available to all users.
• Control Over Concurrency : In a computer file-based
system in updating, one may overwrite the values recorded
by the other.
• Backup and Recovery Procedures: automatically
create the backup of data and restore data if required.
• Data Independence: Separation of data structure of
database from application program that uses the data is
called data independence.
Disadvantages of DBMS
• Cost of Hardware and Software: Processor with high speed of data
processing and memory of large size is required.
• Cost of Data Conversion: Very difficult and costly method to convert
data of data file into database.
• Cost of Staff Training: A lot of amount for the training of staff to run
the DBMS.
• Appointing Technical Staff: Trained technical persons such as
database administrator, application programmers, data entry operators
etc. are required to handle the DBMS.
• Database Damage: All data is integrated into a single database. If
database is damaged due to electric failure or database is corrupted
on the storage media, then your valuable data may be lost forever.
Examples of DBMS
• Some of the common used DBMSs are:
-Oracle, IBM‟s DB2, Microsoft‟s SQL Server,
MS-Access and Informix.