Database Management Systems
Database Management Systems
3.Data isolation
-Multiple files and formats
4.Integrity problems
- Integrity constraints (e.g. account balance >
0) become part of program code
- Hard to add new constraints or change
existing ones.
Database Systems Vs File
Systems ( Why DBMS?)
5. Atomicity problems
- Failures may leave database in an
inconsistent state with partial updates
carried out. E.g., transfer of funds from
one account to another should either
complete or not happen at all.
Database Systems Vs File
Systems ( Why DBMS?)
6. Concurrent-access anomalies
- Needed for system performance and
usability
- Uncontrolled concurrent accesses can lead
to inconsistencies. E.g. two people reading
a balance and updating it at the same time.
Database Systems Vs File
Systems ( Why DBMS?)
1. Microsoft Access
2. FoxPro
3. dBase
Some Commercial Database
Management Software
1. CUBRID
2. Firebird
3. MariaDB
4. MongoDB
5. Postgre SQL
6. MySQL
7. SQLite
Database System
Applications
Databases are widely used. Some representative applications are:
1. Banking: For customer information, accounts, loans and banking transactions.
2. Airlines/Railways/Road Transport: For ticket reservation, schedules and routes.
3. Universities: For student information, courses and grades (education
management).
4. Credit card transaction: For purchases on credit card, monthly statement
generation
5. Sales: For customer, product and purchase information.
Database System
Applications
6. Telecommunication: For keeping records of call made, generating monthly bills,
maintaining balances on prepaid calling cards, storing information about the
communication networks.
7. Finance: For storing information about holdings, sales, and purchases of financial
instruments such as stocks and bonds.
8. Manufacturing: For management of supply chains and for tracking production of items
in factories, inventories of items in warehouses/stores and order for items.
9. Human resources: For information about employees, salaries, payroll taxes and
benefits and for generation of pay checks.
Capabilities of Database
Management Systems (DBMSs)
There are three important capabilities of DBMS that traditional file
environments lack—data definition, data dictionary, and a data
manipulation language.
–Data definition capability: Specifies structure of database content, used
to create tables and define characteristics of fields
–Data dictionary: Automated or manual file storing definitions of data
elements and their characteristics
–Data manipulation language: Used to add, change, delete, retrieve data
from database
• Structured Query Language (SQL)
• Microsoft Access user tools for generating SQL
–Many DBMS have report generation capabilities for creating polished
reports (Crystal Reports)
Process of Database Design
E-R Model
The purpose of E-R diagramming is to capture the
richest possible understanding of the meaning of
the data necessary for an information system or
organization.
The E-R model is expressed in terms of:
Entities in the business environment
Relationships among those entities
The attributes (properties) of both the entities and their
relationships
Process of Database Design
Entity – person, place, object about which the organization
wishes to maintain data. An entity may be concrete, such as a
person or a book, or it may be abstract, such as loan, or a
holiday, or a concept.
An entity has its own identity that distinguishes it from each other
entity.
Person: Employee, Student, Patient
An attribute definition:
States what the attribute is and possibly why it is important
included
Contains any aliases or alternative names
Explain reason for any explicit maximum cardinality other than many
Explain whether an entity instance involved in a relationship instance can transfer participation
in the relation
The key should be nonredundant
Slide 6- 13
Conceptual Data Model and
Transformed Relations
Well-structured relation
Figure shows an example of a relation named EMPLOYEE1. This relation contains the following
attributes describing employees: Emp_ID, Name, Dept, and Salary.
EMPLOYEE1(Emp_ID, Name, Dept, Salary)
This table has five sample rows, corresponding to five employees.
EMPLOYEE1 is a well-structured relation. Each row of the table contains data describing one
employee, and any modification to an employee’s data (such as a change in salary) is confined
to one row of the table.
Normalization
Normalization –the process of converting
complex data structures into simple, stable data
structures.
Normalization is a systematic approach of
decomposing tables to eliminate data
redundancy and undesirable characteristics like
Insertion, Update and Deletion anamolies. It is a
multi-step process that puts data into tabular form
by removing duplicated data from the relation
tables.
The result of normalization is that every
nonprimary key attribute depends upon the whole
primary key and nothing but the primary key.
Normalization
First Normal Form (1NF):
Has no multivalued attributes, unique rows, and
•Emp_ID → Name
A given Emp_ID value can have only one Name value
associated with it; the value of Name
Functional Dependency
SPERSON(Salesperson, Region)
After normalization, the original relation ORDER has been broken down into
four smaller relations. The relation ORDER is left with only two attributes and
the relation LINE_ITEM has a combined, or concatenated, key consisting of
Order_Number and Part_Number.
MICROSOFT ACCESS DATA
DICTIONARY FEATURES