Dbms 1st Unit
Dbms 1st Unit
DBMS avthitetyre
-Her Architeckre
In this arChittdhure , the database s disecHy avai lable to the use
means he ustr Can dire ctly sit on he D8Ms and uses it
Hoy Changes done hese wil directty be done on he data base itsey Tt
doesn't psoride a handy tool end s, Jor usts
The t e y arthibecure is used or dev elopment o he ic cal applicahon,
whese P1o9 rammeri "ean cliretHy tommuni tate wih e datab4se (or
he quiek resp onfe.
-Tier Asenitedure
The Tie arhitelkure is SamMe as besi. chhent Seves Tn m
UD- Her arthiecuse, applitaHons orn the cient end cen direchiy
Uses
DatabasSe
SeNer
ApplicaHon
Sesves
User
Data Abstrattion
view leve
view-i view- iew-n
logical vitw
Physical itw
Shutres in detai.
Loqial Leve Nett hiqhes ieve o abeNacion descri bes wh4t data are
StOTed in me datab4se, and what vetationsni p eIStS
user
Data Todep endene
View LeV et
Mesg
u a
CAIl T is used to call a shuctured 9guesy anguage
Java pr 0gtam
Data Model
3 Retationghip
nti y Entiy Means anj Dbjet in ouf Databog e. CenrPt rson)
EnH pe
6RSoN name ge, add)
AtETinutes
m o s e attribute w e h a v e me b e t t e r inomahon we e t -
TCan be
lur her -Tt can not be lusmes attributes
ost
divided. dyided ,wnín
Repsestnted by elipse
Conneuted wim au
Compo shte is a tellection
simp1e attribute,
E Pesson
Comp osite
attribute
be cavse
it is Addeess Piont No,
Name age
r h e r divide d
Simp1e a ttributees
not divide4
because it Con
u sther,
Reprcstn+td by d b oval
Sing1e vatued vs MulHvalued attvibutes
n h i s we have o T his we con assiqn more
OSsi9n ony one value i a n one voju
Age E Phone No
pesson Can
Aqe o a A pes0n Can hav& m o r e
Ex Do
Date of bA
Comphen ottvibutes '
hes Relahionshi p
Employce Man4eS Dept
ase
Oone to one e T)
MaMand Min.
Mn
Dret
CdineihReHo Man oo o TUaHonship 1
PGrHupake
Whjih on en H La
S ur
DnShain Parheipa H1 Min: no. of Ttlurionshi?
in
"
ai PaTHipan0
(o
CAsel
M
wor o Projetr
M M
woryY Pra
C U,) (,")
ManMany to one
Sudent
M
EnYo corse
Notatons o&R Diagram
fompa ny
e
List
i. Cniy Type
). weak Eniy
w). Reioienship
).
Tdenikyins RuaHon ship
v). AttTibute
vi. Peimary ky
i). MulH valued Attribute
vi). Composite At tribute
TPe of keys
.Sue keu St o one oT mose attsibutes har alle ws idenhfying
an entiy uniqutly.
s d - i d ,std. name
n. Candid ate key o Supeskey hich Can uniquety
It
TS
minimal set
iceoi an eni
E std.id
Can be mose than one Candidate
Pic hosen by ihe, oeA ag me prinu pat means odeoti sying
entitg.
i) AItei na te key Composite Key Psimo fy Ke
) . Secondasy Keu Mainty used or data 9e esival
used in h e Cage o 91oup by
vi). Foseign key atliibute whose alue match the Primasy KejI
Tis a
in h e Huoted Toble.
(colege -Oame)
Person
MBes
(mobile
MD
Ms)
Sudent Physician Suvgeon
Fauliy
2 Spedlisaion
h i on hiqn eY eve ennH Can be broken down ioto two lower \eve
enhties
opposite ol Genevalisahon.
Top down apps oah
i s used to identify subset o an eniy set that shases <ome
Employee MBes
mobile
(MD
visitos
ASSOaatton
Relahonship bekween too obetts
deines he muli pliy blw objeurs i n e an
assouahon
ossouaíon
ha d
One to o n e fo manu e tc, ace. all these
wosds
bl objtds
EA AA Student and a (awlty ase having on asso da Hon.
Neook Mode
cXension o Hieraschi cal Model have mose
nan
oe
pa5cn
S is that ,
mis Can
Ilttence
0 YLhitaf but
di
Librasy
StudentY
-Feaures'
Abiiy o mesqe moye Retahonghi ps
2 to <ame Tetoscl
Many Pa hs Moye than one pah
-
c2. in Ddel
Cirula Linked List Tmplemented by
-
integvi is not
alected.
Tnteqity consraints
** T *
Domain
ConsTsains
EnHHy Rerenhol Ky
integsiyN integrij ons ainB
Consaink| Conssalos|
Domaln (onstaints
Domain tonst qin s can be
delined as he delinition aa valid
values os an o
attsibute
e TD NAME
To M
SEMESTtRAGE
St
Sonnsonn nd 24
Kat 3
Mor gan 8 th
A42 Ha6y
6 M 3o ho
Sauk Son 2+00o n'E00tgin a null value.
Reerenta inteaslty tonsains
E N H a ntegrik tonsiahnt is speti (ied betloe en tuso abies
ForeiAn
(Table
Table )
EMP-NAMENAME ACE D-No ky
Jauk 2 0.No. 18 is no
Nob allowed as
table
2
Haity L4D deline as a psimaty Kty o
in tabteL 0-NO. isa
3 Jonn 2
2 and
18
o eign Key depinetd
Devi 38 3
Ke ons faints
KRs Ose me enhiy set that is used to dtahfy an enhHy w1hin
enity set uniquely.
ID NAME IsGMESTER AG
ToM
oo Jo HNCoN 2d 2.24
co2 Leonaido
to03 kate 19
o02 8h
Horgan 22
Batkup
and rovid es ba tkup and Ye Cov e Tdoesn't p1o vide batkup
Retove tN of data evcn ie it is ost and
recove1y e dota if i t is
loSt
Query
Piocestings E}}iuent quesy Processing is These is
here in OBms
no
e{icient query
psocescing in file system
Consistenu There iS mose data
lonsisteny 7hte
These is less data
tess Consi stenu-
belause o the Psocess
oj in the file s4SHem.
nosmalizaion.
6 (ompltxiy T has MOYe (ompleiy inb
i s less lomplex at
handlin q as
compased o he Compased Fo 0e ms.
Ale sysHem .
3 Seuri
DeMS nas moie
onstaiOs secuiHy. File sstem has tess
seurikH