0% found this document useful (0 votes)
12 views19 pages

DBMS Notes

A Database Management System (DBMS) is software that manages databases, allowing for efficient data retrieval, insertion, and deletion. It organizes data into structured formats like tables and schemas, and supports various operations such as data definition, updating, and retrieval. The document also discusses the evolution of databases, types of databases including relational and NoSQL, and the advantages and disadvantages of using a DBMS.

Uploaded by

jasminekarwal00
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views19 pages

DBMS Notes

A Database Management System (DBMS) is software that manages databases, allowing for efficient data retrieval, insertion, and deletion. It organizes data into structured formats like tables and schemas, and supports various operations such as data definition, updating, and retrieval. The document also discusses the evolution of databases, types of databases including relational and NoSQL, and the advantages and disadvantages of using a DBMS.

Uploaded by

jasminekarwal00
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

DATABASE MANAGEMENT SYSTEM

Database management system is software that is used to manage the database.


The database is a collection of inter-related data which is used to retrieve, insert and delete the data
efficiently. It is also used to organize the data in the form of a table, schema, views, and reports, etc.
For example: The college Database organizes the data about the admin, staff, students and faculty etc.
Using the database, you can easily retrieve, insert, and delete the information.

What is Data?
Data is a collection of a distinct small unit of information. It can be used in a variety of forms like text,
numbers, media, bytes, etc. it can be stored in pieces of paper or electronic memory, etc.
Word 'Data' is originated from the word 'datum' that means 'single piece of information.' It is plural of
the word datum.
In computing, Data is information that can be translated into a form for efficient movement and
processing. Data is interchangeable.

What is Database?
A database is an organized collection of data, so that it can be easily accessed and managed.
You can organize data into tables, rows, columns, and index it to make it easier to find relevant
information.
Database handlers create a database in such a way that only one set of software program provides
access of data to all the users.
The main purpose of the database is to operate a large amount of information by storing, retrieving,
and managing data.
There are many dynamic websites on the World Wide Web nowadays which are handled through
databases. For example, a model that checks the availability of rooms in a hotel. It is an example of a
dynamic website that uses a database.
There are many databases available like MySQL, Sybase, Oracle, MongoDB, Informix, PostgreSQL, SQL
Server, etc.
Modern databases are managed by the database management system (DBMS).
SQL or Structured Query Language is used to operate on the data stored in a database.
SQL depends on relational algebra and tuple relational calculus.
A cylindrical structure is used to display the image of a database.

Evolution of Databases
The database has completed more than 50 years of journey of its evolution from flat-file system to
relational and objects relational systems. It has gone through several generations.

The Evolution File-Based


1968 was the year when File-Based database were introduced. In file-based databases, data was
maintained in a flat file. Though files have many advantages, there are several limitations.
One of the major advantages is that the file system has various access methods, e.g., sequential,
indexed, and random.
It requires extensive programming in a third-generation language such as COBOL, BASIC.

Hierarchical Data Model


1968-1980 was the era of the Hierarchical Database. Prominent hierarchical database model was IBM's
first DBMS. It was called IMS (Information Management System).
In this model, files are related in a parent/child manner.
Below diagram represents Hierarchical Data Model. Small circle represents objects.
Like file system, this model also had some limitations like complex implementation, lack structural independence,
can't easily handle a many-many relationship, etc.

Network data model


Charles Bachman developed the first DBMS at Honeywell called Integrated Data Store (IDS). It was
developed in the early 1960s, but it was standardized in 1971 by the CODASYL group (Conference on
Data Systems Languages).
In this model, files are related as owners and members, like to the common network model.
Network data model identified the following components:
o Network schema (Database organization)
o Sub-schema (views of database per user)
o Data management language (procedural)
This model also had some limitations like system complexity and difficult to design and maintain.

Cloud database
Cloud database facilitates you to store, manage, and retrieve their structured, unstructured data via a
cloud platform. This data is accessible over the Internet. Cloud databases are also called a database as
service (DBaaS) because they are offered as a managed service.
Some best cloud options are: AWS (Amazon Web Services), Snowflake Computing, Oracle Database
Cloud Services, Microsoft SQL server, Google cloud spanner.
NoSQL Database
A NoSQL database is an approach to design such databases that can accommodate a wide variety of
data models. NoSQL stands for "not only SQL." It is an alternative to traditional relational databases in
which data is placed in tables, and data schema is perfectly designed before the database is built.
NoSQL databases are useful for a large set of distributed data.
Some examples of NoSQL database system with their category are:
o MongoDB, CouchDB, Cloudant (Document-based)
o Memcached, Redis, Coherence (key-value store)
o HBase, Big Table, Accumulo (Tabular)
Advantage of NoSQL
High Scalability
NoSQL can handle an extensive amount of data because of scalability. If the data grows, NoSQL
database scale it to handle that data in an efficient manner.
High Availability
NoSQL supports auto replication. Auto replication makes it highly available because, in case of any
failure, data replicates itself to the previous consistent state.
Disadvantage of NoSQL
Open source
NoSQL is an open-source database, so there is no reliable standard for NoSQL yet.
Management challenge
Data management in NoSQL is much more complicated than relational databases. It is very challenging
to install and even more hectic to manage daily.
GUI is not available
GUI tools for NoSQL database are not easily available in the market.
Backup
Backup is a great weak point for NoSQL databases. Some databases, like MongoDB, have no powerful
approaches for data backup.

The Object-Oriented Databases


The object-oriented databases contain data in the form of object and classes. Objects are the real-world
entity, and types are the collection of objects. An object-oriented database is a combination of relational
model features with objects-oriented principles. It is an alternative implementation to that of the
relational model.
Object-oriented databases hold the rules of object-oriented programming. An object-oriented
database management system is a hybrid application.

Graph Databases
A graph database is a NoSQL database. It is a graphical representation of data. It contains nodes and
edges. A node represents an entity, and each edge represents a relationship between two edges. Every
node in a graph database represents a unique identifier.
Graph databases are beneficial for searching the relationship between data because they highlight the
relationship between relevant data.

Graph databases are very useful when the database contains a complex relationship and dynamic
schema.
It is mostly used in supply chain management, identifying the source of IP telephony.

Database Management System

Understanding Database Management System

Database Management System is a software or technology used to manage data from a


database. Some popular databases are MySQL, Oracle, MongoDB, etc. DBMS provides
many operations e.g. creating a database, Storing in the database, updating an existing
database, delete from the database. DBMS is a system that enables you to store, modify
and retrieve data in an organized way. It also provides security to the database.

A Database Management System (DBMS) is a software system that is designed to


manage and organize data in a structured manner. It allows users to create, modify, and
query a database, as well as manage the security and access controls for that database.
DBMS provides an environment to store and retrieve the data in convenient and efficient
manner.
The name indicates what the database is. A database is one of the essential
components for many applications and is used for storing a series of data in a single set.
In other words, it is a group/package of information that is put in order so that it can be
easily accessed, manage, and update.
There are different types of databases. They are:
• Bibliographic
• full-text
• numeric
• images

In a database, even the smallest portion of information becomes the data. For example,
a Student is a data, a roll number is a data, and the address is data, height, weight,
marks everything is data. In brief, all the living and non-living objects in this world are
data.

One of the primary aims of a database is to supply users with an abstract view of data,
hiding a certain element of how data is stored and manipulated. Therefore, the starting
point for the design of a database should be an abstract and general description of the
information needs of the organization that is to be represented in the database. And
hence you will require an environment to store data and make it work as a database.

What is database environment?

A database environment is a collective system of components that comprise and


regulates the group of data, management, and use of data, which consist of software,
hardware, people, techniques of handling database, and the data also.

Here, the hardware in a database environment means the computers and computer
peripherals that are being used to manage a database, and the software means the whole
thing right from the operating system (OS) to the application programs that include
database management software like M.S. Access or SQL Server. Again the people in a
database environment include those people who administrate and use the system. The
techniques are the rules, concepts, and instructions given to both the people and the
software along with the data with the group of facts and information positioned within the
database environment.

o Database management system is a software which is used to manage the database. For
example: MySQL, Oracle, etc are a very popular commercial database which is used in different
applications.
o DBMS provides an interface to perform various operations like database creation, storing data
in it, updating data, creating a table in the database and a lot more.
o It provides protection and security to the database. In the case of multiple users, it also maintains
data consistency.
DBMS allows users the following tasks:
o Data Definition: It is used for creation, modification, and removal of definition that defines the
organization of data in the database.
o Data Updation: It is used for the insertion, modification, and deletion of the actual data in the
database.
o Data Retrieval: It is used to retrieve the data from the database which can be used by
applications for various purposes.
o User Administration: It is used for registering and monitoring users, maintain data integrity,
enforcing data security, dealing with concurrency control, monitoring performance and
recovering information corrupted by unexpected failure.

Characteristics of DBMS
o It uses a digital repository established on a server to store and manage the information.
o It can provide a clear and logical view of the process that manipulates data.
o DBMS contains automatic backup and recovery procedures.
o It contains ACID properties which maintain data in a healthy state in case of failure.
o It can reduce the complex relationship between data.
o It is used to support manipulation and processing of data.
o It is used to provide security of data.
o It can view the database from different viewpoints according to the requirements of the user.

Advantages of DBMS
o Controls database redundancy: It can control data redundancy because it stores all the data in one
single database file and that recorded data is placed in the database.
o Data sharing: In DBMS, the authorized users of an organization can share the data among multiple users.
o Easily Maintenance: It can be easily maintainable due to the centralized nature of the database system.
o Reduce time: It reduces development time and maintenance need.
o Backup: It provides backup and recovery subsystems which create automatic backup of data
from hardware and software failures and restores the data if required.
o multiple user interface: It provides different types of user interfaces like graphical user interfaces,
application program interfaces
Disadvantages of DBMS
o Cost of Hardware and Software: It requires a high speed of data processor and large memory size to
run DBMS software.
o Size: It occupies a large space of disks and large memory to run them efficiently.
o Complexity: Database system creates additional complexity and requirements.
o Higher impact of failure: Failure is highly impacted the database because in most of the organization,
all the data stored in a single database and if the database is damaged due to electric failure or database
corruption then the data may be lost forever.

Relational Database
1970 - Present: It is the era of Relational Database and Database Management. In 1970, the relational
model was proposed by E.F. Codd.
Relational database model has two main terminologies called instance and schema.
The instance is a table with rows or columns
Schema specifies the structure like name of the relation, type of each column and name.
This model uses some mathematical concept like set theory and predicate logic.
The first internet database application had been created in 1995.
During the era of the relational database, many more models had introduced like object-oriented
model, object-relational model, etc.

RELATION DATA MODEL


Nowadays, the relational model is the essential data model for commercial data processing applications, which
achieved its primary position because of its simplicity, which makes the job of the programmer easy, in contrast
to earlier data models such as the network model or the hierarchical model. In this chapter, you will study the
essential and primary uses of the relational model. A substantial theory exists for relational databases.

The Relational Database Management System (RDBMS) has become the leading data-processing software in
use nowadays. This software signifies the second generation of DBMSs and is based on the relational data
model proposed by Mr. E. F. Codd in the year 1970.

WHAT IS RELATIONAL MODEL?


The relational model is the theoretical basis of relational databases, which is a technique or way of structuring
data using relations, which are grid-like mathematical structures consisting of columns and rows. Codd proposed
the relational model for IBM, but the idea became extremely vital and prominent that his work would become the
basis of relational databases. You might be very familiar with the physical demonstration of a relation in a
database - which is known as a table.

In the relational model, all data is logically structured within relations, i.e., tables, as mentioned above. Each
relation has a name and is formed from named attributes or columns of data. Each tuple or row holds one value
per attribute. The greatest strength of the relational model is the simple logical structure that it forms. Behind this
simple structure is a sophisticated theoretical foundation that is lacking in the first generation of DBMSs.

OBJECTIVES OF THE RELATIONAL MODEL


The relational model's objectives were specified as follows:

• To allow a high degree of data independence, application programs must not be affected by
alterations to the internal data representation, mostly by changes to file organizations or access
paths.
• To provide considerable grounds for dealing with data semantics, reliability, and redundancy
problems. In particular, Codd's theory for the relational model introduced the concept of
normalized relations, were relations that have no repeating groups, and the process is called
normalization.
• To allow the expansion of set-oriented data manipulation languages.

REAL LIFE STRUCTURE OF RELATIONAL DATABASE


In general, a row in a table signifies a relationship among a group of values. Since a table is a collection of such
relationships, there is a close connection amongst the concept of the table and the mathematical concept of
relation, from which the relational data model gets its name. In mathematical terminology, a tuple is simply a
sequence or list of values. A relationship between n values is indicated mathematically by an n-tuple of values,
i.e., a tuple with n values, corresponds to a row in a table.

DATABASE SCHEMA
When you talk about the database, you must distinguish between the database schema, which is the
logical blueprint of the database, and the database instance, which is a snapshot of the data in the
database at a given instant in time. The concept of a relation corresponds to the programming language
notion of a variable. In contrast, the concept of a relation schema corresponds to the programming
languages' notion of the type definition. In other words, a database schema is a skeletal structure that
represents the logical view of the complete database. It describes how the data is organized and how
the relations among them are associated and formulates all the constraints that are to be applied to the
data.

RDBMS (Relational Database Management System)


The word RDBMS is termed as 'Relational Database Management System.' It is represented as a table
that contains rows and column.
RDBMS is based on the Relational model; it was introduced by E. F. Codd.
A relational database contains the following components:
o Table
o Record/ Tuple
o Field/Column name /Attribute
o Instance
o Schema
o Keys
An RDBMS is a tabular DBMS that maintains the security, integrity, accuracy, and consistency of the
data.
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.

Properties of Relational Database


There are following four commonly known properties of a relational model known as ACID properties,
where:
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.
D means Durability: It ensures that once it completes the operation and commits the data, data
changes should remain permanent.

What is RDBMS (Relational Database Management


System)
RDBMS stands for Relational Database Management System.
All modern database management systems like SQL, MS SQL Server, IBM DB2, ORACLE, My-SQL, and
Microsoft Access are based on RDBMS.
It is called Relational Database Management System (RDBMS) because it is based on the relational
model introduced by E.F. Codd.

How it works
Data is represented in terms of tuples (rows) in RDBMS. A relational database is the most commonly
used database. It contains several tables, and each table has its primary key.
Due to a collection of an organized set of tables, data can be accessed easily in RDBMS.

Brief History of RDBMS


From 1970 to 1972, E.F. Codd published a paper to propose using a relational database model.
RDBMS is originally based on E.F. Codd's relational model invention.
VARIOUS TERMINOLOGIES OF RDBMS:

What is table/Relation?
Everything in a relational database is stored in the form of relations. The RDBMS database uses tables
to store data. A table is a collection of related data entries and contains rows and columns to store data.
Each table represents some real-world objects such as person, place, or event about which information
is collected. The organized collection of data into a relational table is known as the logical view of the
database.
o Each relation has a unique name by which it is identified in the database.
o Relation does not contain duplicate tuples.
o The tuples of a relation have no specific order.
o All attributes in a relation are atomic, i.e., each cell of a relation contains exactly one value.
A table is the simplest example of data stored in RDBMS.
Let's see the example of the student table.

ID Name AGE COURSE

1 Ajeet 24 B.Tech

2 aryan 20 C.A

3 Mahesh 21 BCA

4 Ratan 22 MCA

5 Vimal 26 BSC

What is a row or record?


A row of a table is also called a record or tuple. It contains the specific information of each entry in the
table. It is a horizontal entity in the table. For example, The above table contains 5 records.
Properties of a row:
o No two tuples are identical to each other in all their entries.
o All tuples of the relation have the same format and the same number of entries.
o The order of the tuple is irrelevant. They are identified by their content, not by their position.
Let's see one record/row in the table.

ID Name AGE COURSE

1 Ajeet 24 B.Tech

What is a column/attribute?
A column is a vertical entity in the table which contains all information associated with a specific field
in a table. For example, "name" is a column in the above table which contains all information about a
student's name.
Properties of an Attribute:
o Every attribute of a relation must have a name.
o Null values are permitted for the attributes.
o Default values can be specified for an attribute automatically inserted if no other value is specified for an
attribute.
o Attributes that uniquely identify each tuple of a relation are the primary key.

Name

Ajeet

Aryan

Mahesh

Ratan

Vimal

What is 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.
Properties of data items:
o Data items are atomic.
o The data items for an attribute should be drawn from the same domain.
In the below example, the data item in the student table consists of Ajeet, 24 and Btech, etc.

ID Name AGE COURSE


1 Ajeet 24 B.Tech

Degree:
The total number of attributes that comprise a relation is known as the degree of the table.
For example, the student table has 4 attributes, and its degree is 4.

ID Name AGE COURSE

1 Ajeet 24 B.Tech

2 aryan 20 C.A

3 Mahesh 21 BCA

4 Ratan 22 MCA

5 Vimal 26 BSC

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.
For example, the student table has 5 rows, and its cardinality is 5.

ID Name AGE COURSE

1 Ajeet 24 B.Tech

2 aryan 20 C.A

3 Mahesh 21 BCA

4 Ratan 22 MCA

5 Vimal 26 BSC

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. For example, An attribute entitled Marital_Status
may be limited to married or unmarried values.
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:
Entity integrity: It specifies that there should be no duplicate rows in a table.
Domain integrity: It enforces valid entries for a given column by restricting the type, the format, or the
range of values.
Referential integrity specifies that rows cannot be deleted, which are used by other records.
User-defined integrity: It enforces some specific business rules defined by users. These rules are
different from the entity, domain, or referential integrity.

Keys
o Keys play an important role in the relational database.
o It is used to uniquely identify any record or row of data from the table. It is also used to establish and
identify relationships between tables.
For example, ID is used as a key in the Student table because it is unique for each student. In the
PERSON table, passport_number, license_number, SSN are keys since they are unique for each person.

Types of keys:

1. Primary key
o It is the first key used to identify one and only one instance of an entity uniquely. An entity can contain
multiple keys, as we saw in the PERSON table. The key which is most suitable from those lists becomes a
primary key.
o In the EMPLOYEE table, ID can be the primary key since it is unique for each employee. In the EMPLOYEE
table, we can even select License_Number and Passport_Number as primary keys since they are also
unique.
o For each entity, the primary key selection is based on requirements and developers.
2. Candidate key
o A candidate key is an attribute or set of attributes that can uniquely identify a tuple.
o Except for the primary key, the remaining attributes are considered a candidate key. The candidate keys
are as strong as the primary key.
For example: In the EMPLOYEE table, id is best suited for the primary key. The rest of the attributes,
like SSN, Passport_Number, License_Number, etc., are considered a candidate key.

CANDIDATE KEY

3. Super Key
Super key is an attribute set that can uniquely identify a tuple. A super key is a superset of a candidate
key.

For example: In the above EMPLOYEE table, for (EMPLOEE_ID, EMPLOYEE_NAME), the name of two
employees can be the same, but their EMPLYEE_ID can't be the same. Hence, this combination can also
be a key.
The super key would be EMPLOYEE-ID (EMPLOYEE_ID, EMPLOYEE-NAME), etc.
4. Foreign key
o Foreign keys are the column of the table used to point to the primary key of another table.
o Every employee works in a specific department in a company, and employee and department are two
different entities. So we can't store the department's information in the employee table. That's why we
link these two tables through the primary key of one table.
o We add the primary key of the DEPARTMENT table, Department_Id, as a new attribute in the EMPLOYEE
table.
o In the EMPLOYEE table, Department_Id is the foreign key, and both the tables are related.

5. Alternate key
There may be one or more attributes or a combination of attributes that uniquely identify each tuple in
a relation. These attributes or combinations of the attributes are called the candidate keys. One key is
chosen as the primary key from these candidate keys, and the remaining candidate key, if it exists, is
termed the alternate key. In other words, the total number of the alternate keys is the total number of
candidate keys minus the primary key. The alternate key may or may not exist. If there is only one
candidate key in a relation, it does not have an alternate key.
For example, employee relation has two attributes, Employee_Id and PAN_No, that act as candidate
keys. In this relation, Employee_Id is chosen as the primary key, so the other candidate key, PAN_No,
acts as the Alternate key.

6. Composite key
Whenever a primary key consists of more than one attribute, it is known as a composite key. This key is
also known as Concatenated Key.
For example, in employee relations, we assume that an employee may be assigned multiple roles, and
an employee may work on multiple projects simultaneously. So the primary key will be composed of all
three attributes, namely Emp_ID, Emp_role, and Proj_ID in combination. So these attributes act as a
composite key since the primary key comprises more than one attribute.

7. Artificial key
The key created using arbitrarily assigned data are known as artificial keys. These keys are created when
a primary key is large and complex and has no relationship with many other relations. The data values
of the artificial keys are usually numbered in a serial order.
For example, the primary key, which is composed of Emp_ID, Emp_role, and Proj_ID, is large in
employee relations. So it would be better to add a new virtual attribute to identify each tuple in the
relation uniquely.

Types of Relationship in DBMS


A relational database collects different types of data sets that use tables, records, and columns. It is
used to create a well-defined relationship between database tables so that relational databases can be
easily stored. For example of relational databases such as Microsoft SQL Server, Oracle Database,
MYSQL, etc.
There are some important parameters of the relational database:
ADVERTISEMENT

o It is based on a relational model (Data in tables).


o Each row in the table with a unique id, key.
o Columns of the table hold attributes of data.
Employee table (Relation / Table Name)

EmpID EmpName EmpAge CountryName


Emp 101 Andrew Mathew 24 USA

Emp 102 Marcus dugles 27 England

Emp 103 Engidi Nathem 28 France

Emp 104 Jason Quilt 21 Japan

Emp 108 Robert 29 Italy

Following are the different types of relational database tables.


1. One to One relationship
2. One to many or many to one relationship
3. Many to many relationships
One to One Relationship (1:1): It is used to create a relationship between two tables in which a single
row of the first table can only be related to one and only one records of a second table. Similarly, the
row of a second table can also be related to anyone row of the first table.
Following is the example to show a relational database, as shown below.

One to Many Relationship: It is used to create a relationship between two tables. Any single rows of
the first table can be related to one or more rows of the second tables, but the rows of second tables
can only relate to the only row in the first table. It is also known as a many to one relationship.
Representation of One to Many relational databases:

Representation of many to one relational database


Many to Many Relationship: It is many to many relationships that create a relationship between two
tables. Each record of the first table can relate to any records (or no records) in the second table.
Similarly, each record of the second table can also relate to more than one record of the first table. It is
also represented an N:N relationship.
For example, there are many people involved in each project, and every person can involve more than
one project.

Difference between a database and a relational database

Relational Database Database

A relational database can store and arrange the data in It is used to store the data as files.
the tabular form like rows and columns.

The data normalization feature is available in the It does not have a normalization.
relational database.

It supports a distributed database. It does not support the distributed database.

In a relational database, the values are stored as tables Generally, it stores the data in the hierarchical or
that require a primary keys to possess the data in a navigational form.
database.
It is designed to handle a huge collection of data and It is designed to handle the small collection of
multiple users. data files that requires a single user.

A relational database uses integrity constraints rules that It does not follow any integrity constraints rule
are defined in ACID properties. nor utilize any security to protect the data from
manipulation.

Stored data can be accessed from the relational database There is no relationship between data value or
because there is a relationship between the tables and tables stored in files.
their attributes.

Advantages of relational databases


1. Simple Model: The simplest model of the relational database does not require any complex structure or
query to process the databases. It has a simple architectural process as compared to a hierarchical
database structure. Its simple architecture can be handled with simple SQL queries to access and design
the relational database.
2. Data Accuracy: Relational databases can have multiples tables related to each other through primary
and foreign keys. There are fewer chances for duplication of data fields. Therefore the accuracy of data in
relational database tables is greater than in any other database system.
3. Easy to access Data: The data can be easily accessed from the relational database, and it does not follow
any pattern or way to access the data. One can access any data from a database table using SQL queries.
Each table in the associated database is joined through any relational queries such as join and conditional
descriptions to concatenate all tables to get the required data.
4. Security: It sets a limit that allows specific users to use relational data in RDBMS.
5. Collaborate: It allows multiple users to access the same database at a time.

You might also like