Introduction To DBMS
Introduction To DBMS
Topperworld.in
Introduction to dbms
❖ Data
❖ Database
©Topperworld
DBMS
• DBMS provides the interface to perform the various operations like creation,
deletion, modification, etc.
©Topperworld
DBMS
• DBMS allows the user to create their databases as per their requirement.
• DBMS accepts the request from the application and provides specific data
through the operating system.
• DBMS contains the group of programs which acts according to the user
instruction.
➢ Advantage of DBMS
➢ Disadvantage of DBMS
◆ Size:It occupies large disk space and large memory to run efficiently.
◆ Cost:DBMS requires a high-speed data processor and larger memory to
run DBMS software, so it is costly.
◆ Complexity:DBMS creates additional complexity and requirements.
©Topperworld
DBMS
❖ Types of Databases
There are various types of databases used for storing different varieties of data:
1) Centralized Database
©Topperworld
DBMS
2) Distributed Database
©Topperworld
DBMS
©Topperworld
DBMS
3) Relational Database
⚫ This database is based on the relational data model, which stores data
in the form of rows(tuple) and columns(attributes), and together forms
a table(relation).
⚫ A relational database uses SQL for storing, manipulating, as well as
maintaining the data. E.F. Codd invented the database in 1970.
⚫ Each table in the database carries a key that makes the data unique from
others.
⚫ Examples of Relational databases are MySQL, Microsoft SQL Server,
Oracle, etc.
➢ A means Atomicity: This ensures the data operation will complete either
with success or with failure. It follows the 'all or nothing' strategy. For
example, a transaction will either be committed or will abort.
➢ C means Consistency: If we perform any operation over the data, its value
before and after the operation should be preserved. For example, the
account balance before and after the transaction should be correct, i.e.,
it should remain conserved.
➢ I means Isolation: There can be concurrent users for accessing data at the
same time from the database. Thus, isolation between the data should
remain isolated. For example, when multiple transactions occur at the
same time, one transaction effects should not be visible to the other
transactions in the database.
©Topperworld
DBMS
4) NoSQL Database
©Topperworld
DBMS
5) Cloud Database
©Topperworld
DBMS
✓ Microsoft Azure
✓ Kamatera
✓ PhonixNAP
✓ ScienceSoft
6) Object-oriented Databases
⚫ The type of database that uses the object-based data model approach
for storing data in the database system.
⚫ The data is represented and stored as objects which are similar to the
objects used in the object-oriented programming language.
7) Hierarchical Databases
©Topperworld
DBMS
⚫ Data get stored in the form of records that are connected via links. Each
child record in the tree will contain only one parent. On the other hand,
each parent record can have multiple child records.
8) Network Databases
9) Personal Database
©Topperworld
DBMS
⚫ The type of database which creates and updates the database in real-
time.
⚫ It is basically designed for executing and handling the daily data
operations in several businesses.
⚫ For example, An organization uses operational databases for managing
per day transactions.
©Topperworld
DBMS
➢ How it works
➢ Table/Relation
©Topperworld
DBMS
Properties of a Relation:
1 Ajeet 24 B.Tech
2 aryan 20 C.A
3 Mahesh 21 BCA
4 Ratan 22 MCA
5 Vimal 26 BSC
➢ Row or Record
©Topperworld
DBMS
Properties of a row
• All tuples of the relation have the same format and the same number
of entries.
1 Ajeet 24 B.Tech
➢ Column/attribute
Properties of an Attribute
©Topperworld
DBMS
➢ Data item/Cells
The smallest unit of data in the table is the individual data item. It is stored at
the intersection of tuples and attributes.
In the below example, the data item in the student table consists of Ajeet, 24
and Btech, etc.
1 Ajeet 24 B.Tech
➢ Degree
The total number of attributes that comprise a relation is known as the degree
of the table.
➢ Cardinality
The total number of tuples at any one time in a relation is known as the table's
cardinality. The relation whose cardinality is 0 is called an empty table.
©Topperworld
DBMS
➢ Domain
The domain refers to the possible values each attribute can contain. It can be
specified using standard data types such as integers, floating numbers, etc.
➢ NULL Values
The NULL value of the table specifies that the field has been left blank during
record creation.
It is different from the value filled with zero or a field that contains space.
❖ Data Integrity
There are the following categories of data integrity exist with each RDBMS:
©Topperworld
DBMS
Although DBMS and RDBMS both are used to store information in physical
database but there are some remarkable differences between them.
The main differences between DBMS and RDBMS are given below:
4) DBMS does not apply any RDBMS defines the integrity constraint for
security with regards to data the purpose of ACID (Atomocity,
manipulation. Consistency, Isolation and Durability)
property.
5) DBMS uses file system to in RDBMS, data values are stored in the
store data, so there will be no form of tables, so a relationship between
relation between the tables. these data values will be stored in the form
of a table as well.
©Topperworld
DBMS
9) Examples of DBMS are file Example of RDBMS are mysql, postgre, sql
systems, xml etc. server, oracle etc.
©Topperworld