Professional Documents
Culture Documents
9 - The Database Design Part-2
9 - The Database Design Part-2
1
Database Design
• Introduction to Data Storage
• Flat Files Data Storage Approach
• Database Approach
• Types of Database Systems
• Data Modeling
• Concepts to Distributed Database
• Introduction to Big Data
2
2. Flat files Data Storage, Conventional File System, Traditional File System Approach
4
2. Flat files Data Storage, Conventional File System, Traditional File System Approach
Sequential
Indexed Indexes
Indexes
Indexes
System Indexed File Indexes
Indexes
Indexes Flat File
Application Sequential System
Hash
Equation
Linked List
Navigation
5
2. Flat files Data Storage, Conventional File System, Traditional File System Approach
6
2. Flat files Data Storage, Conventional File System, Traditional File System Approach
2.5.1 There are some advantages to flat files approach, such as:
• …
7
2. Flat files Data Storage, Conventional File System, Traditional File System Approach
Duplication of data:
Often the same information is stored in more than one file. Uncontrolled duplication of
data is not required for several reasons, such as:
• Duplication is wasteful and costs time and money to enter the data more than once
• It takes up additional storage space, again with associated costs.
• Duplication can lead to loss of data integrity; in other words the data is no longer
consistent.
Data Dependence:
• In file processing systems, files and records were described by specific physical
formats into the application program by programmers.
• If the format of the file was changed, the application program should be modified.
• Furthermore, any change in storage structure needs change in the application.
8
Idea Maker Sponsor
data data Separated and Isolated Data
File-1 File-2
Merging File-1
and File-2 is
difficult Processing Needed:
• Retrieve data from File-1
Application
• Retrieve data from File-2
• Merge retrieved data
from both files
• Define the project
feasibility (Decision)
9
2. Flat files Data Storage, Conventional File System, Traditional File System Approach
Sales-File
Duplication of data
Personnel-File
10
2. Flat files Data Storage, Conventional File System, Traditional File System Approach
The Name
duplication
Sales-File
Duplication of data
The Num
duplication
Note the
duplication
Personnel-File
11
2. Flat files Data Storage, Conventional File System, Traditional File System Approach
Example
In case of college database,
there may be the number of
applications like General Office,
Library, Account Office, Hostel
etc. Each of these applications
may maintain the following
information into own private
file applications in case of file
management system:
It is clear from the above file systems, that there are some common data
items of the student which has to be mentioned in each application, like
Rollno, Name, Class, Father_Name, Address, Phone_No, Date_of_birth etc.
which are stored repeatedly in file system in each application. It will cause the
problem of redundancy which results in wastage of storage space and
difficulty in maintenance. So, we should look for a solution to these types of
redundancies. The database approach discussed below will help us to provide
the solution for above problems.
12
2. Flat files Data Storage, Conventional File System, Traditional File System Approach
Payroll File
NID Name Address Salary ….. Payroll Mgr.
All rights are allowed,
All data items are allowed
Data Security.
Embedding security measures and constraints in file or for certain data items in a file is
difficult.
13
2. Flat files Data Storage, Conventional File System, Traditional File System Approach
14
End
15