Professional Documents
Culture Documents
DBMS Unit1 Full
DBMS Unit1 Full
UNIT 1
DATA BASE SYSTEMS
DATA INFORMATION
1. Data is raw fact. 1.Meaning collection of data or processed data
is known as information
2.Example of data are rollno, name, 2.Example of information are (rama , 50000,
rama, 50000, age, Hyderabad, salary , Hyderabad) gives information about a person.
address etc.,
3.Data does not help in decision making. 3. Information helps in decision making.
1 K.KRISHNA, M.TECH
Aditya Degree College, TADEPALLIGUDEM III BSc, DBMS
2 K.KRISHNA, M.TECH
Aditya Degree College, TADEPALLIGUDEM III BSc, DBMS
3 K.KRISHNA, M.TECH
Aditya Degree College, TADEPALLIGUDEM III BSc, DBMS
Advantages of DBMS:
1. Reduced Data Redundancy: “Redundancy” means repetition of data. In DBMS, no
data is duplicated. So dbms avoids data redundancy. Hence it works efficiently.
2. Reduced Data Inconsistency: “Inconsistency” means data appearing with different
values at different places. In DBMS, no data is duplicated . So it doesnot allow data
inconsistency in database.
3. Improved Data Sharing: In DBMS, a any data can be accessed at a time in more
than one computer. Multiple users or persons can work on the database
simultaneously. Changes made for data by one user are updated to other user
simultaneously.
4.Require less programming skills: We use SQL( Structured Query Language) in
DBMS. It is a 4TH generation language. SQL is a command based language to work
with database.
5. Improved Data Security: DBMS provides a set of SQL commands to provide
security for the database. Security features like password protection, locking data in a
table are used to provide security for database.The DBA (database administrator) is
responsible for data security.
6. Can Perform Adhoc Queries: “Adhoc queries” means complex and difficult
queries. Using DBMS it is possible to retrieve or print data based on complex
conditions.
7. Backup & Recovery: DBMS supports the feature of backup & recovery. A DBMS
S/W automatically create backup for the database . A backup is used to recover data ,
if a system failure or crash occur.
4 K.KRISHNA, M.TECH
Aditya Degree College, TADEPALLIGUDEM III BSc, DBMS
6 K.KRISHNA, M.TECH
Aditya Degree College, TADEPALLIGUDEM III BSc, DBMS
7 K.KRISHNA, M.TECH
Aditya Degree College, TADEPALLIGUDEM III BSc, DBMS
8 K.KRISHNA, M.TECH
Aditya Degree College, TADEPALLIGUDEM III BSc, DBMS
9 K.KRISHNA, M.TECH
Aditya Degree College, TADEPALLIGUDEM III BSc, DBMS
Entity: An entity is defined as real world object. It can be anything like a student,
faculty, doctor, patient , product etc.,. An entity stores collection of records. An entity is
represented by “rectangle” symbol in a database design.
Entity
Attribute
Relationship
10 K.KRISHNA, M.TECH
Aditya Degree College, TADEPALLIGUDEM III BSc, DBMS
Disadvantages:
1. It supports only “one-to-many” relationship.
2. It doesn’t support many-to-many relationship & many-to-one relationship.
3. We cannot establish relationship between two parent tables.
4. A childnode cannot have two parents.
11 K.KRISHNA, M.TECH
Aditya Degree College, TADEPALLIGUDEM III BSc, DBMS
Network Data Model: The network data model was developed in the 1969s at
CODASYL(Conference on Database System Languages) by DBTG (Database Task
Group).
In network data model data is organized in a “Graph- structure”.
A network data model supports all types of relationships i.e., 1:1, 1:M, M:1, M:M
In network data model, a relationship is called a set. A set represents a 1:M relationship .
Each set is composed of at least two entities types: an owner (or Master) entity and a
member (or Detail) entity. A set represents a 1:M relationship between the owner and the
member.
Disadvantages:
1. As the size of database increases, designing of network data model becomes
too complex.
2. Difficult to develop network datamodel for large databases.
3. Cannot perform adhoc queries.
Relational Data Model: The relational model was introduced in 1970 by E. F. Codd. The
relational data model is implemented through relational database management system
(RDBMS).
In Relational data model, data is represented in the form of “Tables”. A Table
cotains rows & columns. Each row is known as “Tuple”. Each column is known as
“attribute”.
We can establish relationship between two tables , but “ a common field “ must
exist between two tables.
SQL Language is used to perform adhoc queries.
12 K.KRISHNA, M.TECH
Aditya Degree College, TADEPALLIGUDEM III BSc, DBMS
Entity Relational Data Model: The Entity Relationship Model is also called ER
model , or ERD (Entity Relationship Diagram).
In entity relational data model, a database is represented in graphical form. So it is
very easy to understand.
ER –Model was introduced by scientist “Chen” in 1976.
13 K.KRISHNA, M.TECH
Aditya Degree College, TADEPALLIGUDEM III BSc, DBMS
14 K.KRISHNA, M.TECH
Aditya Degree College, TADEPALLIGUDEM III BSc, DBMS
15 K.KRISHNA, M.TECH
Aditya Degree College, Kakinada III BSc, DBMS
3. If only one person maintains the data and that person is not skilled in designing
16 G.VijayaLakshmi, ADCKKD
Aditya Degree College, Kakinada III BSc, DBMS
Q. DBMS Objectives:
Ans: DBMS DEFINITION DBMS stands for Database Management System. It is a
collection of programs used to create a database structure, organize the
database(add, modify or delete data ) and provide security for data in a database. We
use SQL to work with DBMS.
Examples of DBMS Software’s are: Oracle, MY SQL , MS-SQL, MS-Access etc.,
DBMS OBJECTIVES:
Data Redundancy: “Redundancy” means repetition of data. A DBMS must not allow
data redundancy in a database.
In DBMS, no data is duplicated. So it doesn’t allow data redundancy.
Data Inconsistency: “Inconsistency” means data appearing with different values at
different places.In DBMS, no data is duplicated . So it doesn’t allow data inconsistency
in database.
Data Integrity: Integrity refers to “Correctness and Consistency” of data. A DBMS
must provide data integrity.
Data Security: DBMS enforce(provide) security for the database using password. It
doesn’t allow unauthorized users to access the data.The DBA (database administrator)
is responsible for data security.
Data Independence: DBMS must ensure data independence for programs. Data
independence is two types Logical Data Independence and Physical Data Independence
Logical Independence-Change of database without affecting application programs
Physical Independence-Change of hardware or system software without affecting
application programs.
Data Sharing: In DBMS, a data can be accessed at a time in more than one computer.
Changes made in data by one user are updated to other user simultaneously.
17 G.VijayaLakshmi, ADCKKD