Database management notes contains information about all components and types

DeveshPathak22 0 views 126 slides Oct 08, 2025
Slide 1
Slide 1 of 126
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60
Slide 61
61
Slide 62
62
Slide 63
63
Slide 64
64
Slide 65
65
Slide 66
66
Slide 67
67
Slide 68
68
Slide 69
69
Slide 70
70
Slide 71
71
Slide 72
72
Slide 73
73
Slide 74
74
Slide 75
75
Slide 76
76
Slide 77
77
Slide 78
78
Slide 79
79
Slide 80
80
Slide 81
81
Slide 82
82
Slide 83
83
Slide 84
84
Slide 85
85
Slide 86
86
Slide 87
87
Slide 88
88
Slide 89
89
Slide 90
90
Slide 91
91
Slide 92
92
Slide 93
93
Slide 94
94
Slide 95
95
Slide 96
96
Slide 97
97
Slide 98
98
Slide 99
99
Slide 100
100
Slide 101
101
Slide 102
102
Slide 103
103
Slide 104
104
Slide 105
105
Slide 106
106
Slide 107
107
Slide 108
108
Slide 109
109
Slide 110
110
Slide 111
111
Slide 112
112
Slide 113
113
Slide 114
114
Slide 115
115
Slide 116
116
Slide 117
117
Slide 118
118
Slide 119
119
Slide 120
120
Slide 121
121
Slide 122
122
Slide 123
123
Slide 124
124
Slide 125
125
Slide 126
126

About This Presentation

Database Management System


Slide Content

Agenda
▶DATA
▶TYPESOFDATA
▶DATAANDINFORMATION
▶DATABASEMAANGEMENT SYSTEM
▶WHYWEUSEDATABASE?

WHATISDATA
Dataisacollectionofinformationgathered
byobservations,measurements,researchor
analysis.
Theymayconsistoffacts,numbers,names,
figuresorevendescriptionofthings.
Dataisorganizedintheformofgraphs,
chartsortables.Thereexistdatascientistwho
doesdataminingandwiththehelpofthat
dataanalyzeourworld.

-:https://w.splashlearn.com/

DataAndInformation
Datareferstorawfacts,details,ordistinctpieces
ofinformationthatarecollected,stored,and
processed.Itcanbeinvariousforms,including
numbers,text,images,oranyotherformat.
Example-:Iftrainiscomingtostationat2:30PM
inthiscasethetime2:30PMisthedata.
Informationreferstoprocessedandorganizeddatathathascontext,
relevance,andpurpose.Itresultsfromtheinterpretationandanalysis
ofrawfacts,makingitmeaningfulandvaluablefordecision-making.
Example-:iftrainiscomingtostationthenthevisualdisplayonthe
stationboardshowingthetrain'sname,platform,andarrivaltimeis
theinformation.
Imagesource-:https://www.flaticon.com/free-icon/management_3715093

DATAV/SINFORMATION

WHATISDATABASEMANAGEMENT
SYSTEM?

ComponentsofDBMS
HARDWARE SOFTWARE DATA PROCEDURES DATAACCESS
LANGUAGE

Componentsof
DBMScont..
Hardware:InDBMS,informationhardwareisthemost
importantvisiblepart.Theequipmentwhichisusedforthe
visibilityof thedataistheprinter,computer,scanner,etc.
Software:SoftwareisthemaincomponentoftheDBMS.
Softwareisdefinedasthecollectionofprogramsthatare
usedtoinstructthecomputer aboutitswork.Thesoftware
consistsofasetofprocedures,programs,androutines
associatedwiththecomputersystem'soperationand
performance.
Data:Thetermdatameansthecollectionofanyrawfact
storedinthedatabase.Herethedataareanytypeofraw
materialfromwhichmeaningfulinformationisgenerated.
Thedatabasecanstoreanyformofdata,suchas structural
data,non-structuraldata,andlogicaldata.

Componentsof
DBMScont..
Procedures:InDBMS,withthehelpofprocedure,
wecanvalidatethedata,controlthe accessand
reducethetrafficbetweentheserverandtheclients.
TheDBMScanofferbetterperformanceto
extensiveorcomplexbusinesslogicwhentheuser
followsalltheprocedurescorrectly.
DatabaseAccess Language:DatabaseAccess
Languageisalanguageusedtowritecommandsto
access,upset,anddeletedatastoredinadatabase.

Characteristics
of
DBMS
Security
ACIDproperties
Atomicity Consistency Integrity Durability
Dataindependence

Cont…
▶DataIndependence
LogicalIndependence:Changesinthelogicalstructure(schema)do
notaffecttheapplicationprograms.
PhysicalIndependence:Changesinthephysicalstorageand
structuredonotaffectthelogicalstructureorapplications.
▶AtomicityofOperations(Transactions):Here,atomicitymeanseither
theoperationshouldbeperformedornotperformed.i.e.,itshould
completetheoperationon0%or100%.DBMSprovidesatomicityasa
characteristic.Thisisthemostimportantandusefulcharacteristicofthe
DBMS.
▶Integrity:Integritymeansthedatashouldbecorrectandconsistentin
nature.ThedataavailableintheDatabaseshouldbecorrectaswellas
consistent.Ensurestheaccuracy,consistency,andreliabilityofdataby
enforcingconstraints(suchasuniquekeys,foreignkeys,anddatatypes)
onthedata.

Characteristics
of
DBMS
Cont..
Security:TheDatabaseshouldbeaccessibletotheusersina
limitedway.DBMShasauthenticationforvarioususersthat
directlyreferstothelimittowhichtheusercanaccessthe
Database.Authenticationmeanstheprocessofloggingoftheuser
onlywiththerightsthathe/shehasbeenauthorizedto.
ACIDProperties:ACIDstandsforAtomicity,
Consistency, Isolation,andDurability.Atomicitymeans
thetransactionshouldeitherbe0%or100%completed,
andconsistencymeansthatthechangeindatashouldbe
reflectedeverywhereinadatabase.
EaseofAccess(TheDBMSQueries):InDBMS,wecan
searchanykindofstoreddatabyapplyingasimplesearch
operationquery.Itissomuch fasterthanmanual
searching.InDBMS,

WHYDBMS?

Features
of
DBMS
Efficiency
ThroughStructure
EnsuringData
Accuracy
Scalabilityforthe
DigitalAge

Features
of
DBMS
Cont..
EnsuringDataAccuracy:Accuracyis
paramount.Databasesenforcedata
integrity,ensuringthattheinformationstored
isaccurateandconsistent.Nomoreworries
aboutconflicting oroutdateddata.
EfficiencyThroughStructure:Databasesbring
structuretoourdatachaos.Thinkofitasa
well-organizedlibrarywhereeachpieceof
informationhasitsplace.Thisstructure
facilitatesquickandefficientretrieval.

Features
of
DBMS
Cont…
ThisDBMSalsoprovidethefollowing
propertieswhichmakesitveryimportant.
Itsupportsmulti-
users.
Itusedbyboth
smallandlarge
business.
Noredundancy
andintegrityissue
isfoundhere.
ScalabilityfortheDigitalAge:Inourdigital
age,thevolumeofdataisstaggering.
Databasesprovidescalabilitytheycan
handlevastamountsofinformationwithout
compromisingperformance.Thisscalabilityis
vitalasourdataneedscontinuetogrow.

Last we Discuss
▶DATA
▶TYPESOFDATA
▶DATAANDINFORMATION
▶DATABASEMANAGEMENTSYSTEM
▶WHYWEUSE DATABASE?

AGENDA
▶DATABASEMANAGEMENT SYSTEM
▶TYPESOFDBMS
▶COMPONENTS OFDATABASE
▶ADVANTAGESOFDBMS
▶DISADVANTAGESOFDBMS

WHATISDBMS?
Imagesource-:https://dir.texas.gov/sites/default/files/2022-10/Data%20and%20Information%20Governance%20

TYPESOFDBMS
Imagesource-:https://www.slideserve.com/Simplilearn/introduction-to-dbms-database-management-system-what-is-dbms-dbms-explana

Hierarchical Model
•HierarchicalModelwasthefirstDBMSmodel.
•Thismodelorganizesthedatainthehierarchicaltreestructure.
•Thehierarchystartsfromtherootwhichhasrootdataandthenit
expandsintheformofatreeaddingchildnodetotheparent
node.
•Thismodeleasilyrepresentssomeofthereal-worldrelationships
likefoodrecipes,sitemapofawebsiteetc.

Example

Features of a Hierarchical Model
•One-to-manyrelationship:Thedatahereisorganisedinatree-likestructurewhere
theone-to-manyrelationshipisbetweenthedatatypes.Also,therecanbeonlyone
pathfromparenttoanynode.Example:Intheaboveexample,ifwewanttogoto
thenodesneakersweonlyhaveonepathtoreachtherei.ethroughmen'sshoes
node.
•Parent-ChildRelationship:Eachchildnodehasaparentnodebutaparentnode
canhavemorethanonechildnode.Multipleparentsarenotallowed.
•DeletionProblem:Ifaparentnodeisdeletedthenthechildnodeisautomatically
deleted.
•Pointers:Pointersareusedtolinktheparentnodewiththechildnodeandareused
tonavigatebetweenthestoreddata.Example:Intheaboveexamplethe'shoes'
nodepointstothetwoothernodes'womenshoes'nodeand'men'sshoes'node.

Advantages of Hierarchical Model
•It is very simple and fast to traverse through a tree-
like structure.
•Any change in the parent node is automatically
reflected in the child node so, the integrity of data
is maintained.

Disadvantages of Hierarchical Model
•Complex relationships are not supported.
•As it does not support more than one parent of the child node
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.
•If a parent node is deleted then the child node is
automatically deleted.

Features of a Network Model
•AbilitytoMergemoreRelationships:Inthismodel,asthereare
morerelationshipssodataismorerelated.Thismodelhasthe
abilitytomanageone-to-onerelationshipsaswellasmany-to-
manyrelationships.
•Manypaths:Astherearemorerelationshipssotherecanbe
morethanonepathtothesamerecord.Thismakesdataaccess
fastandsimple.
•CircularLinkedList:Theoperationsonthenetworkmodelare
donewiththehelpofthecircularlinkedlist.Thecurrent
positionismaintainedwiththehelpofaprogramandthis
positionnavigatesthroughtherecordsaccordingtothe
relationship.

Advantages of Network Model
•Thedatacanbeaccessedfasterascomparedtothe
hierarchicalmodel.Thisisbecausethedataismorerelated
inthenetworkmodelandtherecanbemorethanonepathto
reachaparticularnode.Sothedatacanbeaccessedinmany
ways.
•Asthereisaparent-childrelationshipsodataintegrityis
present.Anychangeinparentrecordisreflectedinthechild
record.

Disadvantages of Network Model
•Asmoreandmorerelationshipsneedtobehandledthe
systemmightgetcomplex.
•So,ausermustbehavingdetailedknowledgeofthemodel
toworkwiththemodel.
•Anychangelikeupdation,deletion,insertionisvery
complex.

Relational Model
•RelationalModelisthemostwidelyusedmodel.
•Inthismodel,thedataismaintainedintheformofatwo-
dimensionaltable.
•Alltheinformationisstoredintheformofrowand
columns.
•Thebasicstructureofarelationalmodelistables.
•So,thetablesarealsocalledrelationsintherelational
model.

Features of Relational Model
•Tuples:Eachrowinthetableiscalledtuple.Arowcontains
alltheinformationaboutanyinstanceoftheobject.Inthe
aboveexample,eachrowhasalltheinformationaboutany
specificindividuallikethefirstrowhasinformationabout
John.
•Attributeorfield:Attributesarethepropertywhichdefines
thetableorrelation.Thevaluesoftheattributeshouldbe
fromthesamedomain.Intheaboveexample,wehave
differentattributesoftheemployeelikeSalary,Mobile_no,
etc.

Advantages of Relational Model
•Simple:Thismodelismoresimpleascomparedtothe
networkandhierarchicalmodel.
•Scalable:Thismodelcanbeeasilyscaledaswecanaddas
manyrowsandcolumnswewant.
•StructuralIndependence:Wecanmakechangesindatabase
structurewithoutchangingthewaytoaccessthedata.When
wecanmakechangestothedatabasestructurewithout
affectingthecapabilitytoDBMStoaccessthedatawecan
saythatstructuralindependencehasbeenachieved.

Disadvantages of Relational Model
•HardwareOverheads:Forhidingthecomplexitiesand
makingthingseasierfortheuserthismodelrequiresmore
powerfulhardwarecomputersanddatastoragedevices.
•BadDesign:Astherelationalmodelisveryeasytodesign
anduse.Sotheusersdon'tneedtoknowhowthedatais
storedinordertoaccessit.Thiseaseofdesigncanleadto
thedevelopmentofapoordatabasewhichwouldslowdown
ifthedatabasegrows.

COMPONENTSOFDBMS
Imagesource-:https://www.tutorialsmate.com/2022/01/components-of-dbms.html

▶Software-:ThesoftwarecomponentinadatabasesystemcomprisestheDatabase
ManagementSystem(DBMS),facilitatingdatabasecreation,management,and
datainteractionthroughfeatureslikequerylanguage,security,andtransaction
management.Itincludesadatabaseengineforstorage,queryexecution,and
additionalutilitiesformaintenance,formingacohesivesystemfororganizeddata
handling.
▶Hardware-:Thehardwarecomponentinadatabasesystemconsistsofthephysical
devicessupportingdatastorageandprocessing,suchasservers,storagedevices,
andnetworkinfrastructure,ensuringefficientandreliabledatabaseoperations.It
includesthetangibleequipmentnecessaryfordatastorage,retrieval,and
communicationwithinthedatabaseenvironment.
▶Data:Thefundamentalinformationstoredinthedatabase,organizedintotables
withrowsandcolumns, representingentitiesandtheirattributes.
▶User:Anindividualorsysteminteractingwiththedatabasetoperformoperations
likedataretrieval,insertion,ormodification.

▶Procedure:Apredefinedsetofinstructionsorroutinesfollowedbytheuser or
systemtoaccomplishspecifictaskswithinthedatabase,ensuringconsistencyand
efficiency.
▶DatabaseaccessLanguage-:TheprimarydatabaseaccesslanguageinDatabase
ManagementSystems(DBMS)isSQL(StructuredQueryLanguage).SQLisa
standardizedlanguageusedfordefining,manipulating,andqueryingrelational
databases,providingauniforminterfaceforinteractingwithvariousdatabase
systems.

ADVANTAGESOFDBMS
Imagesource-:https://www.slideserve.com/Simplilearn/introduction-to-dbms-database-management-system-what-is-dbms-dbms-explana

DISADVANTAGESOFDBMS
Imagesource-:https://www.slideserve.com/Simplilearn/introduction-to-dbms-database-management-system-what-is-dbms-dbms-explana

ImageSource-:https://www.behance.net/usemynotes

Naiveusers
▶InDatabaseManagementSystems(DBMS),naiveusersaretypicallyend-userswho
havelimitedtechnicalexpertiseorknowledgeoftheunderlyingdatabasestructure.
▶Unsophisticatedusers.
▶InvoketheapplicationProgram.
▶Theseusersinteractwiththedatabaseusingsimple,user-friendlyinterfacesprovidedby
applications,without needingtounderstandthe
complexitiesofthedatabaseschema
orquerylanguages.

Applicationprogrammers
▶ApplicationprogrammersinDatabaseManagementSystems(DBMS)areindividuals
responsiblefordesigningandimplementingsoftwareapplicationsthatinteractwith
databases.
▶TheyuseprogramminglanguagesandAPIs(ApplicationProgrammingInterfaces)to
developapplicationsthatperformtaskssuchasdatainput,retrieval,andmanipulation.
Theseprogrammerswritecodetoensureseamlesscommunicationbetweentheapplication
andtheunderlyingdatabase.
▶Computerprofessionals.
▶Developuserinterface.
▶ApplicationDevelopmenttools.

Sophisticatedusers
▶SophisticatedusersinDatabaseManagementSystems(DBMS)areindividuals
withadvancedknowledgeandskillsindatabaseoperations.
▶Unlikenaiveusers,theypossessadeeperunderstandingofdatabasestructures,
querylanguages,andsystemfunctionality.Sophisticatedusersofteninclude
databaseadministrators,analysts,orpoweruserswhocancreatecomplexqueries,
designdatabasestructures,optimizeperformance,andmanagesecurityaspects
withintheDBMSenvironment.
▶Interactwiththesystem.
▶DataanalysisSoftware.
▶Businessanalyst.

Specializedusers
▶SpecializedusersinDatabaseManagementSystems(DBMS)refertoindividuals
withexpertiseinspecificdomainsorapplicationsthatinvolveintricateuseofthe
database.
▶Theseusersoftenhavespecializedknowledgeinareassuchasdataanalysis,
businessintelligence,orscientificresearch.
▶TheyutilizeadvancedfeaturesoftheDBMS,specializedtools,orprogramming
interfacestoperformtaskstailoredtotheirspecificneeds,contributingtodomain-
specificsolutionsandinsights.
▶Computeraideddesignsystem.
▶Multimediadata.

CharacteristicsoftheDatabase
▶DataIntegrity:Ensuresaccuracyandreliabilityofdatabyenforcingconstraints,
relationships,andvalidationrules.
▶DataSecurity:Involves measurestoprotectdatafromunauthorizedaccess,
modification,ordisclosure,oftenthroughuserauthentication,accesscontrols,and
encryption.
▶DataIndependence:Allowschangesinthedatabasestructurewithoutaffectingthe
applicationprogramsthatusethedata,achievedthroughconceptslikelogicaland
physicaldataindependence.
▶DataConsistency:Guaranteesuniformityandreliabilityofdatabyenforcing
predefinedrulesandconstraints,preventingcontradictoryorinvalidinformation.

▶ConcurrencyControl:Managessimultaneousaccesstothedatabasebymultiple
usersortransactionstoavoidconflictsandensureconsistency.
▶DataPersistence:Ensuresthatdataisstoredandmaintainedovertime,surviving
systemfailuresorshutdowns.
▶DataRedundancyControl:Minimizesduplicationofdatatoavoidinconsistencies
andsavestoragespace.
▶QueryLanguageSupport:Providesastandardizedlanguage(e.g.,SQL)forusers
tointeractwiththedatabase,makingdataretrievalandmanipulationmore
accessible.

▶ACIDProperties(Atomicity,Consistency,Isolation,Durability):Guarantees
reliableprocessingofdatabasetransactions,ensuringthattheyarecompleted
successfullyandthedatabaseremainsinaconsistentstate.
▶Scalability:Enablesthedatabasetohandlegrowingamountsofdataorincreased
userloadsbyefficientlyscalingresources.
▶PerformanceOptimization:Involvestechniquessuchasindexing,query
optimization,andcachingtoenhancethespeedandefficiencyofdataretrievaland
processing.

DatabaseSystemsConcepts
And
Architecture

DatabaseSystemsConcepts
▶CentralisedDatabaseSystem
▶DistributedDatabaseSystem
▶PersonalDatabaseSystem
▶CloudDatabaseSystem
▶CommercialDatabaseSystem
▶RelationalDatabaseSystem

CentralisedDatabaseSystem
▶SingleDatabaseServer:Alldataisstoredonasinglecentralserver,and
thisserverisresponsibleformanaging,storing,andprocessingalldatabase
transactions.
▶DataAccessibility:Usersandapplicationsaccessthedatabasethroughthe
centralserver,whichactsasthesolepointofentryfordataretrieval,
updates,andotheroperations.
▶DataConsistency:Centralizationhelpsmaintaindataconsistencyasthere
isasinglecopyofthedata.Changesaremadedirectlytothiscentral
repository,reducingtheriskofinconsistenciesthatmightarisefrom
distributeddatastorage.
▶SimplifiedManagement:Databaseadministrationandmanagementtasks
arecentralized,makingiteasiertoimplementsecuritymeasures,backup
procedures,andothermaintenanceactivities.Thissimplicitycanleadto
morestraightforwardsystemmanagement.
▶CommunicationOverhead:Whilecentralizedsystemsoffersimplicity,they
canalsointroducepotentialbottlenecks.Allcommunicationbetweenusers
andthedatabase,aswellasbetweendifferentcomponentsofthesystem,
mustpassthroughthecentralserver,whichcanleadtoincreased
communicationoverheadasthesystemscales.

DistributedDatabaseSystem
▶GeographicalDistribution:Dataisstoredin
multiplelocationsornodesthatmaybe
geographicallydispersed.Theselocations
areconnectedthroughanetwork,enabling
userstoaccessdatafromdifferent
geographicallocations.
▶ImprovedScalabilityandPerformance:
Distributionallowsforhorizontal
scalability,enablingthesystemtohandle
largervolumesofdataandincreaseduser
load.
▶DataAutonomy:Eachnodeinthe
distributedsystemcanhaveitsowndegree
ofautonomy,allowingforlocalcontrolover
specificdata

PersonalDatabaseSystem
▶ScopeandPurpose:Intendedforpersonaluse,thesedatabasescatertoan
individual'sspecificneeds,suchasmanagingcontacts,trackingpersonalfinances,
maintainingabookcollection,ororganizingtasks.
▶User-FriendlyInterface:Personaldatabasesystemsoftenfeatureuser-friendly
interfacesthatmakeiteasyfornon-technicaluserstoinput,retrieve,andmanage
datawithouttheneedforextensivedatabasemanagementskills.
▶Flexibility:Personaldatabasesareoftenhighlyflexible,allowinguserstodefine
andcustomizedatafieldsbasedontheiruniquerequirements.
▶SoftwareTools:Personaldatabasesystemscanbeimplementedusingdedicated
softwaretoolsdesignedforindividualuse.Thesetoolsmayincludepersonal
informationmanagement(PIM)software.

CloudDatabaseSystem
▶Cloud-BasedInfrastructure:Thedatabasesystemishostedoncloudinfrastructure,
suchasAmazonWebServices(AWS),MicrosoftAzure,orGoogleCloud
Platform.Thisallowsforon-demandprovisioning,scalability,andaccessibility
overtheinternet.
▶Scalability:Clouddatabasesofferhorizontalscalability,allowinguserstoeasily
scaletheirdatabaseresourcesupordownbasedonchangingdemands.This
flexibilityisparticularlyusefulforapplicationswithvariableworkloads.
▶AccessibilityandGeographicDistribution:Clouddatabasesenableremoteaccess
todatafromanywherewithaninternetconnection.
▶ManagedServices:Clouddatabaseprovidersoftenoffermanagedservicesthat
handleroutinetaskssuchasbackups,security,andsoftwareupdates.

CommercialDatabaseSystem
▶VendorDevelopmentandSupport:Commercialdatabasesystemsaredeveloped
andmaintainedbycommercialvendorsorcompanies.
▶Feature-RichSolutions:Commercialdatabasesoftenofferacomprehensivesetof
features,includingadvancedqueryoptimization,transactionmanagement,security
mechanisms,andscalabilityoptions.
▶EnterpriseIntegration:Thesedatabasesaredesignedtoseamlesslyintegratewith
otherenterprisesoftwaresolutions,facilitatingthecreationofcomprehensive
businessapplications.
▶DocumentationandTraining:Commercialdatabasesystemscomewith
comprehensivedocumentation,includingusermanuals,technicalguides,and
onlineresources.

RelationalDatabaseSystem
▶TabularDataStructure:Arelationaldatabasesystemorganizesdatainto
tableswithrowsandcolumns,creatingatabularstructure.Eachtable
representsanentity,andrelationshipsbetweenentitiesareestablishedthrough
keys,providingalogicalandeasy-to-understandmodel.
▶StructuredQueryLanguage(SQL):Relationaldatabasesystemsuse
SQL(StructuredQueryLanguage)asthestandardlanguagefor
definingandmanipulatingdata.SQLallowsuserstoperformoperations
suchasquerying,inserting,updating,anddeletingdata,makingita
powerfulandstandardizedinterface.
▶ACIDProperties:RelationaldatabasesadheretotheACIDproperties
(Atomicity,Consistency,Isolation,Durability)toensurethereliability
andintegrityoftransactions.Thesepropertiesguaranteethatdatabase
transactionsareprocessedreliably,maintainingdataconsistencyandpreventing
datacorruption.

ImageSource-:https://usemynotes.com/what-is-the-dbms-architecture

▶1-Tierarchitecture-:Ina1-tierarchitecture,boththeuserinterfaceandthe
databasemanagementsystemresideonthesamemachine,meaningthereisno
separationbetweentheclientandtheservercomponents.It'sasimpleandlocally
executedmodelcommonlyfoundinstandaloneapplications.
▶2-Tierarchitecture-:Ina2-tierarchitecture,theapplicationisdividedintoaclient
layerfortheuserinterfaceandaserverlayerforthedatabasemanagementsystem.
Theclientsendsrequeststotheserver,whichprocessesthemandinteractsdirectly
withthedatabase.
▶3-Tierarchitecture-:Ina3-tierarchitecture,theapplicationisdividedintothree
layers:thepresentationlayer(userinterface),applicationlayer(businesslogic),
anddatalayer(databasemanagement).Eachlayeroperatesindependently,
enhancingmodularityandscalabilityindistributedsystems.

Column Name Data Type Constraint
StudentID INT Primary Key
Name VARCHAR Not Null
DeptID INT Foreign Key
Example: College Database Schema
Let’s consider a schema for a simple College Database:
1. Student Table
Column Name Data Type Constraint
DeptID INT Primary Key
DeptName VARCHAR Unique
2. Department Table
Column Name Data Type Constraint
CourseID INT Primary Key
Title VARCHAR Not Null
DeptID INT Foreign Key
3. Course Table
Relationships
•Student.DeptID→ references Department.DeptID
•Course.DeptID→ references Department.DeptID

DATA DICTIONARY

DATA ABSTRACTION

Aspect Data Independence Data Abstraction
Definition
Protecting applications from
changes in schema or storage.
Hiding storage details and
showing only needed info.
Purpose
To allow changes without
rewriting applications.
To simplify interaction
between user and database.
Focus Change management. Information hiding.
Example
Adding a column without
changing queries.
User sees only name & email,
not storage details.
Types/Levels
Logical & Physical data
independence.
Physical, Logical & View levels.
Data Independence and Data Abstraction

WhatisEntity-relationshipmodel?

▶TheERmodel providesawaytoconceptualizeandorganizedatainamannerthat
reflectsthereal-worldrelationshipsandentities.Itisparticularlyusefulduringthe
designphaseofadatabasewhendatabasedesignersneedtounderstand,


communicate,andvisualizethestructureofthedata.
TheERmodelusesvarioussymbolsandnotationstovisuallyrepresentthese
components.Entitiesaretypicallyrepresentedbyrectangles,attributesbyovals,
andrelationshipsbydiamondshapes.Linesconnectingthesesymbolsindicatethe
natureandcardinalityoftherelationships.
TheERmodelalsointroducestheconceptofkeys,whichareattributesor
combinationsofattributesthatuniquelyidentifyeachinstanceofanentitywithin
anentityset.Keysarecrucialformaintainingdataintegrityandensuringthat
eachentityisuniquelyidentifiable.

▶EntitiesintheERmodelcanfurtherbecategorizedintostrongentitiesandweak
entities.Astrongentityisonethatcanbeuniquelyidentifiedbyitsattributes,
whileaweakentitydependsonarelatedstrongentityforidentification.This
distinctionhelpsinunderstandingthehierarchicalnatureofentitieswithina
database.


Anotherkeyconceptistheideaofcardinality,whichdefinesthenumberof
instancesinoneentitysetrelatedtothenumberofinstancesinanotherentityset
througharelationship.Cardinalitycanbeone-to-one,one-to-many,ormany-to-
many,providingawaytoexpressthenatureofrelationshipsinthemodel.
TheERmodelisanessentialtoolduringtheinitialstagesofdatabasedesign.It
facilitatescommunicationbetweendatabasedesigners,stakeholders,andend-
usersbyprovidingavisualrepresentationofthedatastructure.Thisvisual
representationaidsinidentifyingentities,attributes,relationships,andconstraints,
leadingtoamorecomprehensiveunderstandingofthedata.

▶TheERmodelisanessentialtoolduringtheinitialstagesofdatabasedesign.It
facilitatescommunicationbetweendatabasedesigners,stakeholders,andend-
usersbyprovidingavisualrepresentationofthedatastructure.Thisvisual
representationaidsinidentifyingentities,attributes,relationships,andconstraints,
leadingtoamorecomprehensiveunderstandingofthedata.
▶TheEntity-RelationshipmodelisafoundationalframeworkinDBMSthatoffers
astructuredandvisualrepresentationoftherelationshipsbetweenentitiesina
database.Itisanindispensabletoolfordatabasedesigners,enablingthemto
capturetheintricaciesofreal-worldscenariosandprovidingaroadmapforthe
implementationofefficientandwell-structureddatabases.

WhyweuseERdiagram?

AdvantagesofERModel
▶Simple:itissimpletodrawanerdiagramwhenweknowentitiesand
relationships.


Effective:itisaneffectivecommunicationtool.
Easytounderstand:thedesignoferisverylogicalandhencetheyareeasyto



designandunderstand,theyshowdatabasecapabilitieslikehowtables,keysand
columnsareusedtofindasolutiontothegivenquestion.
Integrated:theermodelcanbeeasilyintegratedwithrelationalmodel.
Usefulindecisionmaking:Sincesomeoftheentitiesinthedatabaseareanalyzed
byanER-Diagram,SobydrawinganER-Diagramwecometoknowwhatkind
ofattributesandrelationshipexistbetweenthem.
Easyconvertion:Itcanbeeasilyconvertedtoothertypeofmodels.

▶Flexible:ermodels areflexible and canbemodifiedeasily toaccommodate
changes inthe database designorstructure.




Minimizes data redundancy: ermodels helpminimize dataredundancyby
identifying and eliminatingduplicatedata entries.
Scalability:er models canbe usedfordatabasesof varyingsizes,from small to
large.
Visualrepresentation:ermodelsprovide avisualrepresentationofthedatabase
structure, makingiteasierforstakeholders tounderstandandprovide feedback.
Documentation:ermodels provideusefuldocumentationforfuturereference,
makingiteasiertomaintain andupdatethedatabaseinthelongrun.

DisadvantagesofERModel


Lossofinformation:whiledrawinganermodelsomeoftheinformationcanbe
hiddenorlost.
Limitedrelationship:ermodelcanrepresentlimitedrelationshipsascomparedto
othermodelsanditisnotpossibletoindicateprimarykeysandforeignkeyswhen
they’reexpected.




Norepresentationfordatamanipulation:itisnotpossibletorepresentdata
manipulation(commandslikeinsert(),delete(),alter(),update())inermodel.
Noindustrystandard: thereis noindustrystandardfor notationsofanerdiagram.
Datainconsistency:duetoimpropernormalizationsomedatainconsistencymay
occurso,whilecreatinganerdiagramat least it shouldbeinthirdnormal form.
Missingcardinalities:missingrelationshipcardinalities,soeverythinglookslikea
one-to-onerelationship.one-to-onerelationshipsareactuallyquiterare.

▶Difficulttomodify:ermodelscanbedifficulttomodifyoncetheyarecreated.
anychangesmadetothemodelmayrequireextensiverework,whichcanbetime-
consumingandexpensive.



Limitedattributerepresentation:ermodelsmaynotbeabletorepresentallthe
attributesrequiredforaparticularproblemdomain.thiscanleadtoeithertheloss
ofimportantdataorthecreationofacomplexandunwieldymodel.
Lackofsupportforbusinessrules:ermodelsdonotprovidesupportforbusiness
rules,whichcanmakeitdifficulttoensuredataintegrityandenforceconstraints.
Difficulttoscale:ermodelscanbedifficulttoscaletoaccommodatelargerdata
sets.astheamountofdatainthedatabasegrows,theermodelmayneedtobe
modifiedtohandletheincreasedcomplexity.

DifferentSymbols

ExampleofERModel
From theaboveexamplewecanseetherelationshipWORK_FORisbetweenentities
EMPLOYEEand DEPARTMENT.Itisasamplediagramastheoriginaldiagram includes
Many entitiesandrelationships.
EmpID, Ename, Salary are theattributesofEmployeeentity.
DeptID,DnamearetheattributesofDepartmententity.

Components

ENTITY



An Entity maybean object with aphysical existence –a particularperson, car,
house,oremployee–or it maybe anobject witha conceptualexistence –a
company,ajob,orauniversitycourse.
An Entity type hasakeyattribute thatuniquely identifieseachentity intheentity
set.Butsomeentity typeexistsforwhichkeyattributescan’tbe defined.These
arecalledWeakEntitytypes.
AStrong Entityisa typeof entitythat has a keyAttribute.StrongEntitydoes not
dependonotherEntityinthe Schema.Ithasaprimarykey, thathelpsin
identifying ituniquely,and itis represented by arectangle.Thesearecalled
StrongEntityTypes.

ATTRIBUTE





Theattributeisusedtodescribethepropertyofanentity.Eclipseisusedto
representanattribute.
Thekeyattributeisusedtorepresentthemaincharacteristicsofanentity.It
representsaprimarykey.Thekeyattributeisrepresentedbyanellipsewiththe
textunderlined.
Anattributethatcomposedofmanyotherattributesisknownasacomposite
attribute.Thecompositeattributeisrepresentedbyanellipse,andthoseellipses
areconnectedwithanellipse.
Anattributecanhavemorethanonevalue.Theseattributesareknownasa
multivaluedattribute.Thedoubleovalisusedtorepresentmultivaluedattribute.
Anattributethatcanbederivedfromotherattributeisknownasaderived
attribute.Itcanberepresentedbyadashedellipse.

RELATIONSHIP
Arelationshipisusedtodescribetherelationbetweenentities.Diamondor
rhombusisusedtorepresenttherelationship.
Intheexamplebelow,boththestudent andthecourseareentities,andstudyisthe
relationshipbetweenthem.

One-to-OneRelationship
When onlyone instance of an entityis associatedwiththerelationship.For example,
astudent hasonlyone identification cardandanidentificationcardisgiventoone
person.

One-to-ManyRelationship


When onlyone instanceof the entityonthe left,andmore thanone instanceof an
entity on therightassociates withthe relationship
Forexample,a customercanplacemanyorders,butanorder cannot be placedby
manycustomers.

Many-to-OneRelationship


Whenmore thanone instance of theentityonthe left,andonlyone instanceofan
entity on therightassociates withthe relationship
Forexample,studentshave toopt for asingle course,butacourse canhave many
students.

Many-to-ManyRelationship


Whenmore thanone instance oftheentityonthe left,andmore thanoneinstance
ofanentityonthe rightassociates withthe relationship.
Forexample,youcanassignanemployee tomanyprojects anda projectcanhave
manyemployees.

Database Design
Databasedesignisastep-by-stepprocessofstructuringdatalogicallyandphysicallysothatitcanbe
stored,retrieved,andmaintainedefficiently.Herearethemainstepsofdatabasedesign:
Tags