Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

database models

Rating
-
Sold
-
Pages
6
Uploaded on
12-10-2021
Written in
2021/2022

Database models explains about different relationships of data sets

Institution
Course

Content preview

2. TYPES OF DATABASE MODELS
A DBMS can take any one of the several available approaches to manage data. Each
approach constitutes a database model. A database model is a collection of descriptions of data
structures and their contained fields, together with the operations or functions that manipulate
them. It is a comprehensive scheme for describing how data is to be represented for manipulation
by human or computer programs. A thorough model details the types of data, the topological
arrangements of data, spatial and temporal maps onto which data can be projected, and the
operations and structures that can be invoked to handle data and its maps.
Following are the various database models in existence:-
1. Filing system/ File processing system
Prior to DBMS, file system provided by conventional operating system was used to store
information. The system stores permanent records in various files, and needs different
application programs to extract records from, and add records to, the appropriate files. Each
program defines and manages its own data. Keeping information in a file-processing system has
a number of major disadvantages:
 Data redundancy and inconsistency – data redundancy refers to unnecessary repetition
of data, i.e. data being stored more than once. In file system this problem arises due to
decentralized approach. Redundancy of data leads to wastage of storage space thus
increasing cost. In addition, it may lead to data inconsistency, that is, various copies of
the same data may no longer agree. E.g. a student gives his address to both main office
and IT department. Later he changes the address in the IT department but this does not
reflect in the main office.
 Difficulty in accessing data – convectional file-processing environments do not allow
needed data to be retrieved in a convenient and efficient manner because information is
either extracted manually or programmers are required to write necessary application
programs every time particular information is needed.
 Data isolation – data are scattered in various files and those files may be in different
formats. Writing application programs to retrieve data is difficult.
 Integrity problems – data values stored in a database must satisfy certain types of
consistency constraints. It is difficult to enforce such constraints in a file system since
there are several data items from different files.

1

,  Atomicity problems – a computer system is subject to failure. It is crucial that if a
failure occurs, the data be restored to the consistent state that existed prior to the failure.
For example, suppose a program to transfer Ksh.500 from account balance of department
A to the account balance of department B. If system failure occurs during the execution
of the program, it is possible that the Ksh.500 was removed from account A but not
credited to account B. such transfers must be atomic- it must happen in its entirety or not
all. It is difficult to ensure atomicity in convectional file systems.
 Concurrent access anomalies – for the sake of overall performance of the system and
faster response, many systems allow multiple users to update data simultaneously. In
such environments, interaction of concurrent updates is possible and may result in
inconsistent data. Consider a department A with account balance of Ksh.10000. If two
cashiers debit the account with Ksh.500 and 100 respectively and almost at the same
time, then it is possible that the cashiers read old balance, reduce the balance by
respective amount being withdrawn and write results back. If this happens at the same
time they may both write back Ksh.9500 and 9900 respectively. This is because in file
processing systems, it is difficult to maintain some form of supervision.
 Security problems – not every user of the database should be able to access all the data.
For example, in a university, payroll personnel need to see only financial information
only but not academic records. But since application programs are added the file based
systems in an ad hoc manner, enforcing such security constraints is difficult.
2. Hierarchical model
This is a data model based on trees and uses Parent Child relationship from which links
between record types are created. These are a 1: N mapping between record types. For example,
an organization might store information about an employee, such as name, employee number,
department, salary. The organization might also store information about an employee's children,
such as name and date of birth. The employee and children data forms a hierarchy, where the
employee data represents the parent segment and the children data represents the child segment.
If an employee has three children, then there would be three child segments associated with one
employee segment. In a hierarchical database the parent-child relationship is one to many. This
restricts a child segment to having only one parent segment. Hierarchical DBMSs were popular
from the late 1960s through the 1970s. Consider another example of a class which has both

2

Written for

Institution
Course

Document information

Uploaded on
October 12, 2021
Number of pages
6
Written in
2021/2022
Type
Class notes
Professor(s)
Judy
Contains
All classes

Subjects

$7.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
muriithilauryn

Also available in package deal

Get to know the seller

Seller avatar
muriithilauryn kenyatta university
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 year
Number of followers
0
Documents
7
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions