DBMS Unit-1
DBMS Unit-1
Information: The term data and information are closely related and in fact
are often used interchangeably. However it is often useful to distinguish
between data and information. We define information as data that has been
processed in such a way that it can increase the knowledge of the person
who uses it.
Data
Baker, Kenneth D. 324917628 Doyle, Joan E. 476193248 Finkle, Clive
R.548429344
Information
Name ID Major GPA
Baker, Kenneth D. 324917628 MGT 2.9
Doyle, Joan E. 476193248 MKT 3.4
Finkle, Clive R. 548429344 ACCT 2.8
Metadata:- Metadata are data that describe the properties or characteristics of
other data. Some of these properties include data, definitions, data structures and
rules or constraints. The metadata for a class roster is shown in the figure below,
which consists of data item name, data type, length, minimum and maximum
allowable values and a brief description of each item.
Data item Value
Name Type Length Min Max Description
Course Alphanumeric 30 Course ID and name
Section Integer 1 1 9 Section number
Semester Alphanumeric 10 Semester and year
Name Alphanumeric 30 Student name
ID Integer 9 Student ID(SSN)
Major Alphanumeric 4 Student major
GPA Decimal 3 0.0 4.0 Student grade point average
File processing systems are still widely used today, especially for backing
up database systems.
systems, can help us avoid these same problems when designing database
systems.
Disadvantages of File Processing Systems
Program-data dependence
Duplication of data
Limited Data sharing
Lengthy development times
Excessive program maintenance
Purpose of Database Systems
Keeping organizational information in a file processing system has a number
of major disadvantages, which are given below:
•Data redundancy and inconsistency
•Difficulty in accessing data
•Data isolation
•Integrity problems
•Atomicity problems: A computer system, like any other device, is subject to
failure. In many applications, it is crucial that, if a failure occurs, the data be
restored to the consistent state that existed prior to the failure.
•Security problems: Not every user of the database system should be able to
access all the data. For example, in a university, payroll personnel need to
see only that part of the database that has financial information. They do
not need access to information about academic records. But, since
application programs are added to the file-processing system in an ad hoc
manner, enforcing such security constraints is difficult. These difficulties,
among others, prompted the development of database systems.
Characteristics of Database Systems
1) Program-Data independence
2) Minimal data redundancy
3) Improved data consistency
4) Improved Data sharing
5) Increased productivity of application development
6) Enforcement of standards
7) Improved data quality
8) Improved data accessibility and responsiveness
9) Reduced program maintenance
Costs and risks of the database approach
•Indexed sequential access file combines both sequential file and direct access
file organization.
•In indexed sequential access file, records are stored randomly on a direct
access device such as magnetic disk by a primary key.
•The data can be access either sequentially or randomly using the index. The
index is stored in a file and read into memory when the file is opened.
• In this method, primary key of the record is stored with an address, this
address is mapped to an address of a data block in memory. This address field
works as an index of the file.
•In this method, reading and fetching a record is done using the index of the
file. Index field contains the address of a data record in memory, which can be
quickly used to read and fetch the record from memory.
Advantages of Indexed sequential access file organization
In indexed sequential access file, sequential file and random file
access is possible.
It accesses the records very fast if the index table is properly
organized.
The records can be inserted in the middle of the file
It provides quick access for sequential and direct processing
It reduces the degree of the sequential search.
**********