Chapter 1
Chapter 1
Chapter 1
DESIGN
CHAPTER 1
FUNDAMENTALS OF DATABASE MANAGEMENT SYSTEM
1. Apply fundamental of DBMS, relational data model and
normalization concepts in database development process.
CLO (C3, PLO2)
FUNDAMENT
ALS OF 1. Identify database
Data sharing
concept in
database
Databases are powerful organizational tools
that help businesses quickly record, view and
respond to important information. When used
Uses of effectively, they can improve the efficiency and
profitability of a business.
database in
Example of database role in business world:
business world Customer relationship management: allows businesses
to document every interaction with a current or potential
customer, leading to more efficient marketing and sales
departments.
Inventory Tracking: keep track how much inventory is in a
Uses of warehouse, in a storage room and on store shelves.
Personnel Database: using a database to manage employee
database in information can simplify scheduling and help prevent payroll
Database
development
process
Step two, the database design phase of the development
process, translates the information modeled on the entity
relationship diagram to a table instance chart.
https://hemantrohtak.blogspot.my/2016/11/33-creating-tables.html
Step three, database build.
Structured Query Language
(SQL) commands are used
to build the physical
structure of the database.
process(cont.)
PROPERTIES There are many possible choices that can be made during the
OF A design and many rules to guide this work.
DATABASE When trying to decide if some choices are better than others,
you need to consider the key desirable properties of a database.
Completeness
Ensures that users can access the data they want. Note that
this includes ad hoc queries, which would not be explicitly
given as part of a statement of data requirements.
Integrity
Ensures that data is both consistent (no contradictory data)
Properties Of and correct (no invalid data), and ensures that users trust the
A Database : database.
Flexibility
Ensures that a database can evolve (without requiring
excessive effort) to satisfy changing user requirements.
Efficiency
Ensures that users do not have unduly long response times
when accessing data.
Properties Of Usability (ease of use)
A Database Ensures that data can be accessed and manipulated in ways
(cont.) which match user requirements.
CHAPTER 1
FUNDAMENTALS OF
DATABASE MANAGEMENT
SYSTEM
1.2 IDENTIFY DBMS
DEFINITION: A software system which
DATABASE enables user to define, create, organize,
update, manage and administer databases.
MANAGEM
ENT DBMS also controls access to data in a
database.
SYSTEM
Example: MS Access, Oracle, MySQL,
(DBMS)
Filemaker, Microsoft SQL server, etc…
End user are the people who use the
application programs to run the organization’s
daily operations.
For example, sales clerks, supervisors,
Users of managers, and directors are all classified as end
DBMS users.
High-level end users employ the information
obtained from the database to make tactical and
strategic business decisions.
Application programmer is an individual who
writes application programs in a user
Users of organization.
Disadvantages of
traditional Data redundancy:
approach to In this storage model, the same information may get
duplicated in two or more files. This may lead to
information higher storage and access cost. It also may lead to
processing data inconsistency.
Suppose the same data is repeated in two or more
files. If a change is made to data stored in one file,
other files also needs to be change accordingly.
Data isolation:
Data Isolation means that all the related data is not available in one
file.
Usually the data is scattered in various files having different formats.
Disadvantages of Hence writing new application programs to retrieve the appropriate
References:
http://www.careerbless.com/db/rdbms/c1/traditionalApproach.php
1. Controlling Redundancy
2. Integrity can be enforced
3. Inconsistency can be avoided
The
importance of 4. Data can be shared
having DBMS 5. Standards can be enforced
6. Restricting unauthorized access
7. Providing Backup and Recovery
Distributed database
Two generic database In a distributed database, the data
is stored in storage devices that
architecture: are located in different physical
locations.
Centralized database They are not attached to a
all the data of an common CPU but the database is
controlled by a central DBMS.
organization is stored in a
Users access the data in a
single place such as a distributed database by accessing
mainframe computer or a the WAN (Wide Area Network).
http://www.differencebetween.com/difference-between-distributed-database-and-vs-centralized-database/
Database
architecture
(cont.)
https://www.slideshare.net/cunniman/9-centralised-and-distributed-databases
CHAPTER 1
FUNDAMENTALS OF
DATABASE MANAGEMENT
SYSTEM
1.3 IDENTIFY DATA MODEL
Data model is an integrated collection of concepts for
describing and manipulating data, relationships between
Data Model data and constraints on the data in the organization.
Connolly, T.M, and Begg, C. (2012), Database Systems: A Practical Approach To Design, Implementation And Management: International
Edition (5th Edition), Pearson, USA. (page 93)
Evolution of
Data Model
Imagine we have to design database for college.
What is the real world entities involved with college?
What is the relationship between each entities?
What are the attributes related to each entity?
Object Based Object based data models are based on above concept.
data model It is designed using the entities in the real world,
attributes of each entity and their relationship.
Example: entity-relationship (ER) data model.
https://www.tutorialcup.com/dbms/object-based-data-models.htm
Object Based
data model:
ER data model
ER model is a graphical representation of real world objects
with their attributes and relationship.
https://www.tutorialcup.com/dbms/object-based-data-models.htm
Record based logical models are used in describing data at the logical
and view levels.
In contrast to object based data models, they are used to specify the
Record Based overall logical structure of the database and to provide a higher-level
description of the implementation.
Logical Record based models are so named because the database is structured
model in fixed format records of several types. Each record type defines a
fixed number of fields, or attributes, and each field is usually of a fixed
length.
The three example of record based data models are: hierarchical
model, network model and relational model.
http://www.ques10.com/p/14167/explain-different-data-models-with-its-advantages-/
Record Based
Logical model:
Hierarchical
model
The Hierarchical model represents data as a hierarchical tree
structures. Each hierarchy represents a number of related
records.
http://www.opentextbooks.org.hk/ditatopic/30673
Record Based
Logical
model:
Network
model The Network model represents data as record types and also
represents a limited type of one to many relationship, called
set type.
http://static3.creately.com/blog/wp-content/uploads/2012/06/database-design-network-model.png
Record Based
Logical model:
Relational data
model Relational data model: data and relationships are
represented by a collection of tables.
Each table has a number of columns with unique names, e.g.
customer, account.
http://www.cs.sfu.ca/CourseCentral/354/zaiane/material/notes/Chapter1/node10.html#SECTION00142100000000000000
http://www.cs.montana.edu/~halla/csci440/n3/figure-3-1.png
ANSI-SPARC (American National Standard
Institute – Standard Planning and
Requirements Committee) proposed a 3
THREE- schema architecture.
SCHEMA
ARCHITECTU The goal of the three-schema architecture
is to separate the user applications and
RE OF DBMS
the physical database.
THREE-SCHEMA ARCHITECTURE OF
DBMS
End End
EndUser
User22
EndUser
User11 End
EndUser
UserNN
External
Level View 1 View 2 View N
Database
User’s view of the DB where only a part of the
database is suitable to the requirements of each
user
THREE-
SCHEMA Views of Users:
Accessibility to certain data, defined in specific views,
ARCHITECTU is restricted to users.
RE OF DBMS - The same data can be viewed and presented
External Level differently.
Some views only stored virtual data where the data can
be produced only when needed.
The middle level between the external and the internal
levels.
THREE- Represent: what data & relationship between data.
SCHEMA Contain : - Entities, attributes and relationship.
ARCHITECTU - Constraint of data.
- Semantic information of the data.
- Security and integrity information.
RE OF DBMS –
Conceptual Supports the external scheme where any data useful to
users need to be stated in this level.
Level Represent a complete organizational environment.
Lowest Level of ANSI/SPARC and closest to a DB.
Explain how data is stored in a database.
THREE- Covers physical implementation of the DB for
SCHEMA optimum runtime and data structure/file
ARCHITECTU
organization used to store data in storage
RE OF DBMS –
Internal Level instrument.
Contains descriptions of the following :
Storage space required (data and indexes).
Description of records of storage.
Record positions.
Data compression and data encryption techniques.
Client Server