DBMS-Unit I
DBMS-Unit I
UNITI
WhatisData?
Word 'Data' is originated from the word 'datum'that means 'single pieceof
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.
Whatis Database?
Adatabaseisanorganizedcollectionofdata,sothatitcanbeeasilyaccessedand
managed.
You can organize data into tables, rows, columns, and index it to make it easier
to find relevant information.
DBMS:
Prof.Akshata Pawar 1
DATABASEMANAGEMENTSYSTEM BCAIIISEM
the database to reflect changes in the miniworld, and generating reports from
the data. Sharing a database allows multiple users and programs to access the
database simultaneously.
o DBMSFullformisDatabaseManagement System
DBMSallowsusersthefollowing tasks:
Prof.Akshata Pawar 2
DATABASEMANAGEMENTSYSTEM BCAIIISEM
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 datafrom 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.
DatabaseApplications
Nowadays, any business that has small or large amounts of data needs a
database to store and manage the information. The database is an easy, reliable,
secure, and efficient way to maintain business information. There are many
applications where databases are used.
In this article, we will discuss some of the applications of databases, which are
mentioned below:
Prof.Akshata Pawar 3
DATABASEMANAGEMENTSYSTEM BCAIIISEM
1.Universities:
Anyone who needs information about the student, teacher, or course can easily
retrieve it from the database. Everything needs to be maintained because even
after ten years, information may be required, and the information may be useful,
so maintaining complete information is the primary responsibility of any
university or educational institution.
2.Banking:
Prof.Akshata Pawar 4
DATABASEMANAGEMENTSYSTEM BCAIIISEM
3.RailwayReservationSystem:
4.SocialMediaSites:
5.LibraryManagementSystem:
There are hundreds and thousands of books in the library, so it is not easy to
maintain the records of the books in a register or diary, so a database
management system is used which maintains the information of the library
efficiently. The library database stores informationlike book name, issue date,
author name, book availability, book issuer name, book return details, etc.
6.E-commerceWebsites:
7.Medical:
Prof.Akshata Pawar 5
DATABASEMANAGEMENTSYSTEM BCAIIISEM
8.AccountingandFinance:
When there is big data regarding accounting and finance, there is a need to
maintain a large amount of data, which is done with the help of a database. The
database stores data such as accounting details, bank details, purchases of
stocks, invoice details, sales records, asset details, etc. Accounting and finance
database helps in maintaining and analyzing historical data.
9.Industries:
10. AirlineReservationSystem:
11. Telecommunication:
12. Manufacturing:
13. HumanResourceManagement:
Any organization will definitely have employees, and if there are a large number
of employees, then it becomes essential to store data in a database as it
maintains and securely
Prof.Akshata Pawar 6
DATABASEMANAGEMENTSYSTEM BCAIIISEM
saves the data, which can be retrieved and accessed when required. The human
resource database stores data such as employee name, joining details,
designation, salary details, tax information, benefits & goodies details, etc.
14. Broadcasting:
15. Insurance:
CharacteristicsofDatabaseapproachinDBMS
Self-describingnatureofadatabasesystem
A fundamental characteristic of the database approach is that the database
system contains not only the database itself but also a complete definition or
description of the database structure and constraints. This definition is stored in
the system catalog, which contains information such as the structure of each file,
the type and storage format of each data item, and various constraints on the
data. The information stored in the catalog is called meta-data, and it describes
the structure of the primary database. The catalog is used by the DBMS software
and also by database users who need information about the database structure.
A general purpose DBMS software package is not written for a specific database
application, and hence it must refer to the catalog to know the structure of the
files in a specificdatabase, such as thetype and format ofdata it willaccess.
TheDBMS software must work equally well with any number of database
applications—for example, a university database, a banking database, or a
company database—as long as the database definition is stored in the catalog.
Prof.Akshata Pawar 7
DATABASEMANAGEMENTSYSTEM BCAIIISEM
In traditional file processing, data definition is typically part of the
application programs themselves. Hence, these programs are constrained to
work with only one specific database, whose structure is declared in the
application programs.
InsulationbetweenProgramsandData,andDataAbstraction
In traditional file processing, the structure of data files is embedded in the access
programs, so any changes to the structure of a file may require changing all
programs that access this file. By contrast, DBMS access programs do not require
such changes in most cases. The structure of data files is stored in the DBMS
catalog separately from the access programs (figure 1.4)
SupportofMultipleViewsoftheData
Prof.Akshata Pawar 8
DATABASEMANAGEMENTSYSTEM BCAIIISEM
A database typically has many users, each of whom may require a different
perspective or view of the database. A view may be a subset of the database or
it may contain virtual data that is derived from the database files but is not
explicitly stored. Some users may not need to be aware of whether the data they
refer to is stored or derived. A multiuser DBMS whose users have a variety of
applications must provide facilities for defining multiple views.
For example, one user of the database of Figure 1.4 may be interested only in
the transcript ofeach student; theviewfor this user is shown in Figure1.2. A
second user, who isinterested only in checking that students have taken all the
prerequisites of each course they register for, may require the view shown in
Figure 1.2(b).
SharingofDataandMultiuserTransaction Processing
A multiuser DBMS, as its name implies, must allow multiple users to access the
database at the same time. This is essential if data for multiple applications is to
be integrated and maintained in a single database. The DBMS must include
concurrency control software to ensurethatseveraluserstryingto
updatethesamedatadoso inacontrolledmannerso that the result of the updates is
correct. For example, when several reservation clerks try to assign a seat on an
airline flight, the DBMS should ensure that each seat can be accessed by only
one clerk at a time for assignment to a passenger. These types of applications
are generally called on-line transaction processing (OLTP) applications. A
fundamental role of multiuser DBMS software is to ensure that concurrent
transactions operate correctly.
Prof.Akshata Pawar 9
DATABASEMANAGEMENTSYSTEM BCAIIISEM
PurposeofDatabaseSystem
In
DBMS,databasesystemsprovideasafeandeffectiveplatformtomanagevastamounts
of data.Theirroleistoprovideserviceslike dataorganization,
storage,andmanipulation, as well as to guarantee data integrity. A database
system’s primary goal is to facilitate data retrieval and provide a dependable
storage platform for essential data.
Efficient storage and retrieval are allowed by structured organization of
data through database systems utilizing predefined schemas and data
models.
DBMS maintains the reliability and accuracy of the information and
returns it through enforced constraints and rules defined in the
database schema that eliminates data redundancy and anomalies,
respectively.
Protecting confidential data is crucial and database systems successfully
achieve this with their safeguards against unauthorized access.
Database systems prioritize the security of sensitive data with their solid
mechanisms in place to preserve data confidentiality.
The inclusion of strong security measures in database systems ensures
the protection of sensitive data and upholds its confidentiality.
Confidentiality and privacy of data are maintained by utilizing resilient
security measures within database systems.
Collaboration made easy with DBMS. With the provision of a platform to
accessand manipulate data, multiple users can now work together and
ensure data consistency across various applications. Data sharing and
collaboration are now synonymous with the help of DBMS.
Databackupsandtransactionmanagementaremechanismsprovidedby
database systems to ensure data durability. Safeguarding data against
system crashes and failures is their main priority.
AdvantagesofDBMS
Prof.Akshata Pawar 10
DATABASEMANAGEMENTSYSTEM BCAIIISEM
o Easily Maintenance:It can be easily maintainable due to the centralized
nature of thedatabase system.
o Reducetime:Itreducesdevelopmenttimeandmaintenanceneed.
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
Disadvantagesof DBMS
Manypersonsareinvolvedinthedesign,use,andmaintenance ofalargedatabasewitha
few hundred users. Here we will consider people who may
PeopleassociatedwithDatabasesystem.
Prof.Akshata Pawar 11
DATABASEMANAGEMENTSYSTEM BCAIIISEM
ACTORSONTHESCENE
In any organization where many people use the same resources, there is a
need for a chief
Administratortooverseeandmanagetheseresources.Inadatabaseenvironment, the
primary resource is the database itself, and secondary resource is the DBMS and
related software. Administering these resources is the responsibility of the
database administrator (DBA). The DBA is responsible for authorizing access to
the database, coordinating and monitoring its use, and acquiring software and
hardware resources as needed. The DBA is accountable for problems such as
security breaches and poor system response time.
FunctionsorResponsibilitiesof DBA
Authorizeaccesstothedatabase.
Facilitatecoordinateuseofthedatabase.
InstallandupgradetheDBMSandApplicationtoolsasandwhennecessary.
Backingupandrestoringthedataduring failures.
Tunethedatabasetooptimizeitsperformancewheretheuserneeds.
Enrollusers,controlandmonitoruseraccesstothedatabaseinorderto
overcome the security breaches.
2) Databasedesigners
Database designers are responsible for identifying the data to be stored
in the databaseand For choosing appropriatestructuresto represent and
storethisdata. It is the responsibility Of database designers to
communicate with all prospective database users in order to
understand their requirements and to create a design that meets these
requirements. In many case, the designers are on the staff of the DBA
and may be assigned other staff responsibilities after the database
design is completed. Database designers typically interact with each
potential group ofusers and develop views of the database that
meetsthe data and processing requirements of these groups.
Prof.Akshata Pawar 12
DATABASEMANAGEMENTSYSTEM BCAIIISEM
3) Endusers
Endusersarethepeopleswhosejobsrequiresaccesstothedatabasefor
querying,updating,andgeneratingreports,thedatabaseprimarilyexistsfortheiruse
.
Thereareseveralcategoriesofendusers
a) Casual end users: occasionally access the database, but they may
need different information each time. They use sophisticated
database query interface to specify their requirements and are
typically middle or high level managers or other occasional
browsers.
b) Naive or parametric end users make up a sizable portion of
database end users. Their main job function revolves around
constantly querying and updating that database, using standard
types of queries and updates—called canned transactionthat
have been carefully programmed and tested.
Manyofthesetasksarenowavailableasmobileappsforusewithmobile
devices.Thetasksthatsuchusersperformarevaried. Afewexamplesare:
d) StandAloneusersmaintainpersonaldatabasesbyusingready-
madeprogram packages that provide easy-to-use menu-based or
graphics-based interfaces. An example is the user of a financial
software package that stores a variety of personal financial data.
3.Systemanalystandapplicationprogrammers(SoftwareEngineers)
System analysts determine the requirements of end users, especially
naive and parametric end users and develop specifications for standard
canned
Prof.Akshata Pawar 13
DATABASEMANAGEMENTSYSTEM BCAIIISEM
transactionstomeettheirrequirement.Applicationprogrammersimplementt
hese
Prof.Akshata Pawar 14
DATABASEMANAGEMENTSYSTEM BCAIIISEM
specifications as programs; then they test, debug, document, and
maintain these canned transactions. Such analysts and programmers
commonly referred to as software developers or software engineers—
should be familiar with the full rangeof capabilities provided by the
DBMS to accomplish their tasks.
WORKERSBEHINDTHESCENE
In addition to those who design, use, and administer a database, others are
associatedwith the design, development, and operation of the DBMS software
and system environment. These persons are typically not interested in the
database content itself. We call them the workers behind the scene, and they
include the following categories:
Prof.Akshata Pawar 15
DatabaseManagementSystem
DATA MODELS
a. DataModelgivesusanideathathowthefinalsystemwilllooklik
e after its complete implementation.
b. It defines the data elements and the relationships
between the data elements. Data Models are used to
show how data isstored, connected, accessed and
updated in the database management system.
c. Here,weuseasetofsymbolsandtexttorepresenttheinformati
on so that members of the organization can communicate
and understand it.
d. Though there are many data models being used
nowadays but the Relational model is the most widely
used model.
e. ApartfromtheRelationalmodel,therearemanyothertype
sof data models about which we will study in details in
this blog.
SomeoftheDataModelsinDBMSare:
1. HierarchicalModel
2. NetworkModel
3. Entity-RelationshipModel
4. RelationalModel
5. Object-OrientedDataModel
6. Object-RelationalDataModel
7. FlatDataModel
8. Semi-StructuredDataModel
9. AssociativeData Model
10. ContextDataModel
1. HierarchicalModel
1. HierarchicalModelwasthefirstDBMSmodel.Thismodel
organizes the data in the hierarchical tree structure.
2. Thehierarchystartsfromtherootwhichhasrootdataandthenit
Prof.KavitaLand 16
age
DatabaseManagementSystem
expandsintheformofatreeaddingchildnodetotheparent node.
3. This model easily represents some of the real-
world relationships like food recipes, sitemap of a
website etc.
4. Example:Wecanrepresenttherelationshipbetweentheshoe
s present on a shopping website in the following way:
AdvantagesofHierarchicalModel
a. Itisverysimpleandfasttotraversethroughatree-likestructure.
b. Anychangeintheparentnodeisautomaticallyreflectedin
the child node so, the integrity of data is maintained.
DisadvantagesofHierarchicalModel
a. Complexrelationshipsarenotsupported.
b. As it does not support more than one parent of the
childnode so if we have some complex relationship
where a child node needs to have two parent node
then that can't be represented using this model.
c. Ifaparentnodeisdeleted,thenthechildnodeisautomatically deleted
2. NetworkModel
Prof.KavitaLand 17
age
DatabaseManagementSystem
possibleinthehierarchicalmodel.
FeaturesofaNetworkModel
AdvantagesofNetworkModel
DisadvantagesofNetworkModel
Prof.KavitaLand 18
age
DatabaseManagementSystem
3. Entity-RelationshipModel
AdvantagesofERModel
Simple:ConceptuallyERModelisveryeasytobuild.Ifweknowtherelations
hip between the attributes and the entities we can easily build the ER
Diagram for the model.
Effective Communication Tool: This model is used widely by the
database designers for communicating their ideas.
Easy Conversion to any Model: Thismodel maps well to
therelational model and can be easily converted relational
model by converting the ER model to the table. This model can
also be converted to any other model
Prof.KavitaLand 19
age
DatabaseManagementSystem
likenetworkmodel,hierarchicalmodeletc.
DisadvantagesofERModel
4. RelationalModel
FeaturesofRelationalModel
Prof.KavitaLand 20
age
DatabaseManagementSystem
Attributeorfield:Attributesarethepropertywhichdefinesthet
able or relation. The values of the attribute should be from the
samedomain. In the above example, we have different
attributes of the employee like Salary, Mobile_no, etc.
AdvnatagesofRelational Model
Simple:Thismodelismoresimpleascomparedto
thenetworkandhierarchical model.
Scalable: This model can be easily scaled as we can add as
many rows and columns we want.
StructuralIndependence:
Wecanmakechangesindatabasestructure
withoutchangingthewaytoaccessthedata.Whenwecanmakechang
es to the database structure without affecting the capability to
DBMS to access the data we can say that structural
independence has been achieved.
DisadvantagesofRelationalModel
5. Object-OrientedDataModel
1. Thereal-
worldproblemsaremorecloselyrepresentedthrough the
object-oriented data model. In this model, both the
data and relationship are present in a single
structureknownasanobject.
2. Wecanstoreaudio,video,images,etcinthedatabasewhichw
as not possible in the relational model(although you can
store audio and video in relational database, it is
adviced not to store in the relational database). In this
model, two are more objects are connected through links.
3. Weusethislinktorelateoneobjecttootherobjects.Thiscan
Prof.KavitaLand 21
age
DatabaseManagementSystem
beunderstoodbytheexamplegiven below
1. Intheaboveexample,wehavetwoobjectsEmployeeand Department
2. Allthedataandrelationshipsofeachobjectarecontainedasasingleunit
3. The attributes like Name, Job_title of the employee and
the methodswhich willbe
performedbythatobjectarestoredas a single object.
4. The two objects are connected through a common
attribute i.e the Department_id and the communication
between these two will be done with the help of this
common id.
6. FlatDataModel
8. AssociativeDataModel
AssociativeDataModelisamodelin whichthedataisdividedintotwo parts.
Prof.KavitaLand 22
age
DatabaseManagementSystem
Thisisrepresentedusingthetableasfollows
9. ContextDataModel
AdvantagesofDataModels
1. DataModelshelpusinrepresentingdataaccurately.
2. IthelpsusinfindingthemissingdataandalsoinminimizingData
Redundancy.
Prof.KavitaLand 23
age
DatabaseManagementSystem
3. DataModelprovidesdatasecurityinabetterway.
4. The data model should be detailed enough to be used for
building the physical database.
5. The information in the data model can be used for defining
therelationship between tables, primary and foreign keys, and
stored procedures.
DisadvantagesofDataModels
1. In the case of a vast database, sometimes it becomes difficult to
understand the data model.
2. YoumusthavetheproperknowledgeofSQLtousephysicalmodels.
3. Even smaller change made in structure require modification in
the entire application.
4. ThereisnosetdatamanipulationlanguageinDBMS.
5. To develop Data model one should know physical data stored
characteristics.
DatabaseInstance:
1. It is important that we distinguish these two terms individually.
Database schema is
the skeleton of database. It isdesigned when the database
doesn't exist at all. Once the database is operational, it is
very difficult to make any changes to it.
2. Adatabaseschemadoesnotcontain anydataorinformation.
3. A database instance is a state of operational
databasewith data at any given time. It contains a
snapshot of the database.
4. Database instances tend to change with time. A DBMS
ensures that its every instance (state) is in a valid state,
by diligently following all the validations, constraints, and
conditions that the database designers have imposed.
Databaseschema.
In a data model, it is important to distinguish between the description of
thedatabaseandthedatabaseitself.Thedescriptionofadatabaseiscalledthe
database schema, which is specified during database design and is not
expected to change frequently. Most data models have certain
conventions for displaying schemas as diagrams. A displayed schema is
called a schema diagram. Figure 2.1 shows a schema diagram for the
database shown in Figure 1.2; the diagram displays the structure of each
record type but not the actual instances of records.
Prof.KavitaLand 24
age
DatabaseManagementSystem
Three-SchemaArchitecture
Thegoalofthethree-schemaarchitectureistoseparatetheuser
applications from the
physicaldatabase.Inthisarchitecture,schemascanbedefinedatthe
Prof.KavitaLand 25
age
DatabaseManagementSystem
followingthreelevels:
1. Theinternallevelhasaninternal schema,
▻whichdescribesthephysicalstoragestructureofthedatabase.
▻The internal schema uses a physical data model and describes
the complete details of data storage and access paths for the
database.
2.Theconceptuallevelhasaconceptual schema,
▻Which describes the structure of the whole database for a
communityof users.
▻The conceptual schema hides the details of physical storage
structures and concentrates on describing entities, data
types, relationships, user operations, and constraints.
▻ Usually, a representational data model is used to describe
theconceptual schema when a database system is
implemented. This implementation conceptual schema is
often based on a conceptual schema design in a high-level
data model
3.Theexternalorview
levelincludesanumberofexternalschemasoruserviews.
▻Each external schema describes the part of the database that
aparticular user group is interested in and hides the rest of
the database from that user group.
▻As in the previous level, each external schema is typically
implemented using a representational data model, possibly
based on an external schema design in a high-level data
model.
DBMSArchitecture:
1. ThedesignofaDBMSdependsonitsarchitecture.
2. Itcanbecentralizedordecentralizedor hierarchical.
3. ThearchitectureofaDBMScanbeseen aseithersingletierormulti-tier.
4. An n-tier architecturedivides the whole system into related
but independent n
modules,whichcanbeindependentlymodified,altered,changed,or
replaced.
5. In 1-tier architecture, the DBMS is the only entity where
the user directly sits on the DBMS and uses it. Any
changesdone herewill directly be done on the DBMS
itself.
6. It does not provide handy tools for end-users. Database
designers and programmers normally prefer to use
single-tier architecture.
7. IfthearchitectureofDBMSis2-tier,thenitmusthavean
Prof.KavitaLand 26
age
DatabaseManagementSystem
3-tierArchitecture
Prof.KavitaLand 28
age
DatabaseManagementSystem
Data Independence:
Prof.KavitaLand 29
age
DatabaseManagementSystem
LogicalDataIndependence
Logical data is data about database, that is, it stores
information about how data is managed inside. For example,
a table (relation) stored inthe database and allits
constraints, applied on that relation.
Logicaldataindependenceisa kindofmechanism,which
liberalizes itselffromactualdatastoredonthedisk.Ifwedo
somechangeson table format, it should not change the
data
residingonthedisk.
PhysicalDataIndependence
All the schemas are logical, and the actual data is stored
in bit format on the disk. Physical data independence is
the power to change the physical data without impacting
the schema or logical data.
For example, in case we want to change or upgrade the
storage system itself − suppose we want to replace hard-
disks with SSD −it should not have any impact on the
logical data or schemas.
DatabaseLanguages:
Prof.KavitaLand 30
age
DatabaseManagementSystem
TheDBMSprovidesappropriatelanguagesandinterfacesforeachcategoryof
users. Fallowing are different languages for different kinds of users
▰Datadefinitionlanguage(DDL)
▰Data manipulationlanguage (DML)
▰Storagedefinitionlanguage(SDL)
▰Viewdefinitionlanguage(VDL)
HerearesometasksthatcomeunderDDL:
o Create:Itisusedtocreateobjectsinthedatabase.
o Alter:Itisusedtoalter thestructureofthe database.
o Drop:Itisused todeleteobjectsfromthe database.
o Truncate:Itisusedto removeallrecordsfromatable.
o Rename:Itisusedto renamean object.
o Comment:Itisusedtocomment onthedatadictionary.
Prof.KavitaLand 31
age
DatabaseManagementSystem
HerearesometasksthatcomeunderDCL:
o Grant:Itisusedtogiveuseraccessprivilegestoa database.
o Revoke:Itisusedtotakeback permissionsfromthe user.
Select:Itisused toretrievedatafromadatabase.
Insert:Itisusedtoinsertdataintoatable.
Update:Itisusedtoupdateexistingdatawithinatable.
Delete:Itisusedtodeleteallrecordsfroma table.
TransactionControlLanguage(TCL)
TCLisusedtorunthechangesmadebytheDMLstatement.TCLcanbegrouped
into a logical transaction.
HerearesometasksthatcomeunderTCL:
o Commit:Itisusedtosavethetransactiononthe database.
o Rollback:Itisusedtorestorethedatabasetooriginalsincethelast
Commit.
Prof.KavitaLand 32
age
DatabaseManagementSystem
InterfacesinDBMS
Forms-BasedInterfaces
A forms-based interface displays a form to each user. Users can fill out all
of
theformentriestoinsertnewdata,ortheycanfilloutonlycertainentries,inwhich
casetheDBMSwillredeemthesametypeofdataforotherremainingentries.
Thesetypesofforms areusuallydesigned orcreatedandprogrammedfor
users that have no expertise in operating systems. Many DBMS’s have
form specification
languageswhicharespeciallanguagesthathelpspecifysuchforms.
GraphicalUserInterface
A GUI typically displays a schema to the user in diagrammatic form. The
user thencan specify a query by manipulating the diagram. In many
cases, GUI utilise both
menusandforms.MostGUIuseapointingdevicesuchasamouse,topicka
certain part of the displayed schema diagram.
Prof.KavitaLand 33
age
DatabaseManagementSystem
NaturalLanguageInterfaces
These interfaces accept requests written in English or some other
language and attempt to understand them. A Natural language interface
has itsown schema,which is similar to the database conceptual schema as
well as a dictionary of important words.
The natural language interface refers to the words in its schema as well as
to the set of standard words in a dictionary to interpret the request. If the
interpretation is successful, the interface generates a high-level query
corresponding to the natural
languageandsubmitsittotheDBMSforprocessing,otherwise,adialogueis
started with the user to clarify any provided condition or request. The
main disadvantage of this is that the capabilities of this type of interface
are not that advance.
SpeechInputandOutputInterfaces
Thereislimiteduseofspeechbeitforaqueryorananswertoaquestionorbeing a
result of a request it is becoming commonplace. Applications with limited
vocabulary such as inquiries for telephone directory, flight
arrival/departure, and bank account information are allowed speech for
input and output to enableordinary folks to access this information.
The Speech input is detected using predefined words and used to set up
the parameters that are supplied to the queries. For output, a similar
conversion from text or numbers into speech takes place.
InterfaceforParametricUsers
Prof.KavitaLand 34
age
DatabaseManagementSystem
ClassificationofDBMS:
CentralizedDatabase
AdvantagesofCentralizedDatabase
2) DistributedDatabase
Prof.KavitaLand 35
age
DatabaseManagementSystem
differentoperatingsystemsunderdifferentapplicationproced
ures, and carries different hardware devices
3) NoSQLDatabase
Wecanfurtherdivide aNoSQLdatabaseintothefollowingfourtypes:
Key-value storage: It is the simplest type of
database storage where it stores every single item as a
key (or attribute name) holding its value, together.
Document-oriented Database: A type of database
used to store data as JSON-like document. It helps
developers in storing data by using the same
document-model format as used in the application
code.
Graph Databases: It is used for storing vast amounts of data
in agraph-like
structure. Most commonly, social networking websites use the
graph database.
Wide-column stores: It is similar to the data
represented in relational databases. Here, data is
stored in large columns together, instead of storing in
rows
AdvantagesofNoSQLDatabase
o Itenablesgoodproductivityintheapplicationdevelopmentasi
t is not required to store data in a structured format.
o Itisabetteroptionformanagingandhandlinglargedata sets.
o Itprovideshighscalability.
o Userscanquicklyaccessdatafromthedatabasethroughkey-value
Prof.KavitaLand 36
age
DatabaseManagementSystem
4) CloudDatabase
5) Object-orientedDatabases
Thetypeofdatabasethatusestheobject-
baseddatamodelapproachfor 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.
6) HierarchicalDatabases
It is the type of database that stores data in the form of parent-
children relationshipnodes.Here, it organizes data in a tree-like
structure.
Prof.KavitaLand 37
age
DatabaseManagementSystem
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
Prof.KavitaLand 38
age