DBMS Unit-1(Part-1)
DBMS Unit-1(Part-1)
Introduction
The information storage and retrieval has become very important in our
day-to-day life. The old era of manual system is no longer used in most of
the places. For example, to book your airline tickets or to deposit your
money in the bank the database systems may be used. The database
system makes most of the operations automated. A very good example for
this is the billing system used for the items purchased in a super market.
Obviously this is done with the help of a database application package.
Inventory systems used in a drug store or in a manufacturing industry are
some more examples of database. We can add similar kind of examples to
this list.
Apart from these traditional database systems, more sophisticated
database systems are used in the Internet where a large amount of
information is stored and retrieved with efficient search engines. For
instance, http://www.google.com is a famous web site that enables users to
search for their favorite information on the net. In a database we can store
starting from text data to very complex data like audio, video, etc.
Data
Data is the raw material from which useful information is derived. The word
data is the plural of Datum. Data is commonly used in both singular and
plural forms. It is defined as raw facts or observations. It takes variety of
forms, including numeric data, text and voice and images. Data is a
collection of facts, which is unorganized but can be made organized into
useful information. The term Data and Information come across in our daily
life and are often interchanged.
Example: Weights, prices, costs, number of items sold etc.
Information
Data that have been processed in such a way as to increase the knowledge
of the person who uses the data. The term data and information are closely
related. Data are raw material resources that are processed into finished
information products. The information as data that has been processed in
such way that it can increase the knowledge of the person who uses it.
In practice, the database today may contain either data or information.
Data Processing
The process of converting the facts into meaningful information is known as
data processing. Data processing is also known as information processing.
Metadata
Data that describe the properties or characteristics of other data.
Data is only become useful when placed in some context. The primary
mechanism for providing context for data is Metadata. Metadata are data that
describe the properties, or characteristics of other data. Some of these
properties include data definition, data structures and rules or constraints.
The Metadata describes the properties of data but do not include that data.
Data integrity and security: The DBMS can enforce integrity constraints
on the data. The DBMS can enforce access controls that govern what data
is visible to different classes of users.
Sharing of Data:
A DBMS allows the sharing of database under its control by any number of
application programs or users. A database belongs to the entire organization and is
shared by all authorized users.
Data administration: When several users share the data, centralizing the
administration of data can offer significant improvements. It can be used for
organizing the data representation to minimize redundancy and for fine-tuning
the storage of the data to make retrieval efficient.
A data model is a collection of concepts that can be used to describe the logical structure
of a database. The structure of a database means that holds the data’s data types,
relationships, and constraints.
The most common data models are
1. Hierarchical model
2. Network Data model
3. Relational Data model
4. Entity-Relationship model
5. Object -oriented database model:
Advantages
DATABASE MANAGEMENT SYSTEMS UNIT – I : INTRODUCTION
1. It promotes data sharing.
2. Parent/child relationship promotes simplicity and data integrity.
3. It is efficient with one to many(1:M) relationships.
Disadvantages
1. The network model's original inventor was Charles Bachman, and it was
developed into a standard specification published in 1969 by the Conference on
Data Systems Languages (CODASYL).
2. The main idea behind the Network Data Model is to bring about many-to-many
relationship.
3. There is no distinction between parent and child nodes. A child node can have
more than one parent node.
4. This system also uses a pointer to locate particular records.
5. Created to represent complex data relationships more effectively, It Improve
database performance.
6. In this model directed Graphs are used instead of tree structure to represent the
structure of the database.
.
Advantages
DATABASE MANAGEMENT SYSTEMS UNIT – I : INTRODUCTION
1. It handles the more relationship types, such as M: M.
2. Data access is more flexible than hierarchical model.
3. It includes DDL and DML commands in DBMS.
4. Data owner/member relationship promotes data integrity.
Disadvantages
1. System complexity- All the records are maintained using pointers and hence the
The relational data model was introduced by E.F.Codd in 1970. The relational
data model is implemented through a relational database management system.
In relational model, data is organized in terms of rows and columns in a
table known as relation. Rows are called tuples and columns are called as
attributes.
The relational database connects data in different tables through attributes.
No data redundancy, No physical links relations are maintaining logically. Support
null values and integrity constrains.
Provides high security and supports to store any data types.
Data can be stored among several users at time, Data can also be shared
across several forms.
Advantages
DATABASE MANAGEMENT SYSTEMS UNIT – I : INTRODUCTION
1. We can create complex and efficient data structures.
2. Query capability is based on SQL.
Disadvantages:
1. The RDBMS requires substantial hardware and software overhead.
2. It is expensive to set up and maintain the database.
The ER data model is based on a perception of a real world that consists of a collection of
basic objects, called entities, and of relationships among these objects.
Entity: A real world object
E.g. customers, accounts, bank branch
Relationship: An association between entities
E.g. works-for, managers
Attribute: Property of the Entity.
E.g. empno, ename, sal
Database design in E-R model usually converted to design in the relational model,
which is used for storage, and processing. The overall logical structure (schema) of a
database can be expressed graphically by an E-R diagram, which is built up from the
following components:
• Rectangles, which represent entity sets
• Ellipses, which represent attributes
• Diamonds, which represent relationships among entity sets
• Lines, which link attributes to entity sets and entity sets to
relationships Each component is labeled with the entity or
relationship that it represents.
DATABASE MANAGEMENT SYSTEMS UNIT – I : INTRODUCTION
Advantages:
1. Visual representation makes it an effective communication tool.
2. It is with domain relational model.
disadvantages:
1. There is limited constraint representation.
2. There is limited relationship representation.
3. There is no data manipulation language.
Inheritance is the ability of an object within the class hierarchy to inherit the
attributes and methods of the classes above it.
Advantages:
Semantic content is added. STUDENT
Inheritance promotes data integrity.
Visual representation includes semantic content.
SNO : NUMBER
SNAME : STRING
AGE : NUMBER
DATABASE MANAGEMENT SYSTEMS UNIT – I : INTRODUCTION
Disadvantages:
Slow development of standards
caused vendors to supply their own
enhancement.
It is complex navigational system.
It has slow transaction in high systems.
1.7 Levels of Abstraction in a DBMS (Three tier schema architecture)
The data in a DBMS is described at three levels of abstraction.
The database description consists of a schema at each of these three levels of
abstraction.
External, Conceptual and
Physical Views describe how users
see the data. Conceptual schema
defines logical structure.
Physical schema describes the files and indexes used.
Conceptual schema:
The choice of relations, and the choice of fields for each relation, is not
always obvious, and the process of arriving at a good conceptual schema
is called conceptual database design.
Physical Schema:
External Schema:
ii. Database administrators: They are also known as DBAs. They manage the DBMS and
ensure that the database is functioning properly.
iii. Database designers: They design the database structure. They are the database
architects. As this is very critical, the designer's job responsibilities are increased.
iv. Systems analysts and programmers: They design and implement the application
programs. They design and create the data entry screens, reports, and procedures
through which end users can access and manipulate the data.
v. End users: They are the people who use the application programs to run the
organization's daily operations. For example, sales-clerks, supervisors, managers are
classified as end users.
1 . 1 1 Database Environment
A database management system (DBMS) is a collection of programs that
enables users to create and maintain a database. The DBMS is hence a
general-purpose software system that facilitates the processes of defining,
constructing, manipulating, and sharing databases among various users and
applications.
DATABASE MANAGEMENT SYSTEMS UNIT – I : INTRODUCTION
Defining a database involves specifying the data types, structures, and
constraints for the data to be stored in the database.
Constructing the database is the process of storing the data itself on some
storage medium that is controlled by the DBMS.
Manipulating a database includes such functions as querying the database to
retrieve specific data, updating the database to reflect changes in the mini
world, and generating reports from the data.
Sharing a database allows multiple users and programs to access the
database concurrently. Other important functions provided by the DBMS
include protecting the database and maintaining
it over a long period of time.
Protection includes both system protection against hardware or software
malfunction (or crashes), and security protection against unauthorized or
malicious access. A typical large database may have a life cycle of many
years, so the DBMS must be able to maintain the database system by
allowing the system to evolve as requirements change over time. We can call
the database and DBMS software together a database system.
The architecture of a DBMS can be seen as either single tier or multi-tier. The
tiers are classified as follows:
1- tier architecture
2- tier architecture
3- tier architecture
1-tier architecture:
2-tier architecture:
The two-tier is based on Client Server architecture. The two-tier architecture is
like client server application. The direct communication takes place between
client and server. There is no intermediate between client and server.
3-tier architecture:
A 3-tier architecture separates its tiers from each other based on the
complexity of the users and how they use the data present in the database. It
is the most widely used architecture to design a DBMS.
DATABASE MANAGEMENT SYSTEMS UNIT – I : INTRODUCTION
A server is a machine that can provide services to the client machines, such
as file access, printing, archiving, or database access. In the general case,
some machines install only client software, others only server software, and
still others may include both client and server software. However, it is more
common that client and server software usually run on separate machines.
DATABASE MANAGEMENT SYSTEMS UNIT – I : INTRODUCTION
In client/server architecture, the user interface programs and application
programs can run on the client side. When DBMS access is required, the
program establishes a connection to the DBMS (which is on the server side);
once the connection is created, the client program can communicate with the
DBMS. A standard called Open Database Connectivity (ODBC) provides an
application programming interface (API), which allows client-side programs to
call the DBMS, as long as both client and server machines have the
necessary software installed. Most DBMS vendors provide ODBC drivers for
their systems.
3.1 Introduction