Adobe Scan 20 Mar 2022

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 18

ENAEAsE fMD

MANAGEMG NTSSTE
Data

Enoon ucts Conection


aj injoarnatíon

pata base Collectín of ecoods

DEr1s creates, manupilates o delete dota base

Dato bo6e + De1s data


sjst
s

unf o
DATP BASE MANAGer1ENT SYSTE p for o
to
Coléction set o pogn1 stD
rctieve 1those daU
O data

ncdctot

Phsicoal stvouge Tnteonot scheoa

bDeMs sojtwOU7e
Converston peromed

Conceptual 6theme
Overall logical o2qonízotion

tware
DB1S So
ConversiD
Peafoomea by

Poogoormelogical ooganigotion m0

Appk c a t i o n p0gouD
CPe
fo dísplayin9
Ds designed
Paogaum
entereing datu at teromioa
Jot

ufuof
Eateoal Vieuo (Or) USee vie

Cteonal Scherne dejton o ogfcal eco%d s


Tetotiooship in eateonul view
Objects rtties, Dtrbutrs ,
Reaton ships
Con ceptual Vieuo i
RepresentS the otioe cotnbase on
One
conc eptual víeu or scherme t u be theoe dato

Concepthuel scherne Consists o relotions hip eaísticg o


Conceptual víuo:

Totenol vieu andicotes bow data l be stoed


TOcthods repesertirsg database

DOTA De PLNAT2O riGUAGE (DOL)


dcols o i t h t b e , Augtuoe O datu bose

Comroands
Creott LLeD Draop, Touncatr Reromt

Dota manupulahon lanqunge (pML):


Tnserotirg data modidication a data
Comrmands Select, Tnét, Update, Delete
DML used in opplicotjoo paoqaomby poot edue tall
Cot Corotrot
lanqunge CDc L)
Grontirg peorníssiorS
:

CornmOnds rart ReDke hoty


Transoction Contaol lanquage
Cic)
Cororoands 1 Cormmf t Save
Fdnt
Ro back GJofted tonscotions

Constraints
Cororoonds: Poimary key, Forign key, check, Uniaue
DeJoutt Not null
file SyGBem Ve DEMs
Searchipo and enooy utilizotion j d i e i e n t i n Ders

) ttibutrs ore reauieed Jo he sysR-erm bere o s


Dems i ndependent (Hirec4ly occess to dato)
ConcuYr enCY CoulKple person pccess daka a t

4) seeuríky
CRo boscd oces , Controi s în pBMS)
5) Redandancy

9-Ter Drchitecture
Clent 1 elfent 2 elient3
interfacc
CJetch dota

I o r scNe

eAVantaqe
Mintuiner:

yadieodvantaqe
Ootobose Senve ScalabT
Gecuai

3-TieT Archit ecture:


clien t
I C3 opplfcation

Susfness lyen
PPpico tor
Cour ce
scheme ) logfcol
represeOtu Bon o

data bu s t .
Structure aDBMS:

Casual V6e De
Notive use
TeecorD sy 1etéco 5s
Tetecom Systeo guen paocesso

DDL Coro pi)er


Compilen User Derns its
intetace. data manou

Compiled opplícotio OS 01) DON


poDqor
ite s s

0s Disk marmy

Disk 1s Dota dietiopa


tes
Contuin5 r e t a datb

(tHLt)
Hfgh level lorguaqe
uros Ppicahioo peogD

Dotabase Mo4hed Ppelcatio


Poe Cornpflen
PaDcedure
Cas
+1LL Compiler

Cornpit e d Oject
mOdule
9optirmized eATtoT
version

Girosy uersion a Are paoYpam

Dotn
0s Ders Puntrme
bos
te sub Dotu
tcEen
pata Independend e t

Change îne One level Connot Hect in


Othe level

Eteroal scbeme CPppicabion paogan


logfeal
dota inaepr
Togfcol levei Creltoatíons)
crsical
dato inicpr pysi tal tevet Cstpo0qe)u

Dokabo
Types 0 bEMS
)Heigarehica l DBMS 3) RDBMS Relational
4) ORDems Cpe 00
) NDBMs Nebgo0ks
DB)
5 00DBms Coo

: Centity relatfonship Model) o o


ER lodel
Dsed Jo loqial repoesentotion

entt0tject thot bas


phsfcal eníetcnee
pCott Entity
Student Course
relokon
entiby 0 s
S Shudent (rotlnD aqe, oddress)
C ottbutes
Scherna

ottoibutes O relationship

Single vs multivalued ottibutes

Stngle Oon have onl ope


value
fa rol No

tMutivalued mooe +han One Value

Fa phone Oddess
studen

DamC
Phoper)
lost
Simplc le Connot divideJuothe moe

Compo sitet move than one can be dvidedd

Storcd yed rmao9


CaD-OB
Deeive d : derived eom other ettibuttst
pxage Ccon be
dei Ved t
presered
totoergy
key tíbute used to
ursaueh Atitý.ceprmsei
reprreentotioorp
Reoied ot tibute'The volue tbot iss mandatoay
Comple 0ttebute
Cormpoeite t mulbvaled

EaAddre6 s (didjeren ph No)


Cordiralty
- Arond entity Romary kej
k

deak enthy alee rlo


aseocíative Combiination
relatfonshíp
eentity
C,9 Cty 2)
min
mo11 mani
eok Enty ksocfative cntity K
o n e to bpe

=1dentidyiny o n e to mand
relationship 'M N
may to many

poioary ko D) Multvae d
attibutte. attibu

dscrim+nato = derYved
Cttibute aFt ute
partiar ken e o

CornpbS1te ottibutea

Relotionships y Relationship sets


n 2 ertity sets

e E t n ore, entity sets then a rela bioshi p set,u

R1s o subse 0

e,e2 eu relotíonships

Netvook Dofa imudels notoe


4@achíol data models

-Hiera.chtol D.M
r st dota model.

nthe Hieorchinl ructure


Orgeni3cd dotu
dolon- r e e structure)
CTop-
node bave only one parenE CI:relation)
Child

Porent o Child ' M relation


Show6 M:M reloion
L no
Departroent

Cours Ctud cot

Caculty
Coll eqe CM) RSs

C:)
bepartroe 20doostructr )

S4udenb
C) 1),
Cour6 Faceiha

Theoay Potio
Feot ur e.1) vsea to
epoesent'i:mRS RS
2) Ustrq poin ter to
Cormee one Tecovd to
Other recoo d

T se
dele te porent autormatically Child
nJomotion oYU be
deletedo
-Pdvantoge s. Disod vantoqe
) Sinpicity
No M:N
2Doto Lecuri k
2) Chonge î PD stru ckure
3 Doto int-eari y rt y eQuireG chanoe fn appheo
poogo
3)Deleon PableN
NeiORK D.M

t an eatcneion of hieac hfal o


g
Only digeince blw Hei DM Net DM i te Con hay

ooTG than oneParenE

epresents usigrop
teoinology aclotionshie fs a ért i Net DM
¬och set is oaAe up of otteos 2typrs oj CoTcs

Cal
University
Moths Dept Comp Dept

ubrror Conplob

Features :M 1 R:S con be PTeSrnted

)Mony paths
)Crcular tnked f s t . h

Super ke combiped
attibutes ohose
Set ot one o) move

1dehjitathe
enihes in he en y seet
value uniauel

Condidate key minimal supeokyyi

SK ohich dotsnoE
haue any Peper SubsetE

Pimary key T alway s uni aue


sef.
1pend s on stong enby
Meak entity
set t t eustunte

ntity set othi


set oithi Pk
o o
tOn9 ntity set t
CONVER4 O N OP R Diag to TOBUe: U

Step 1 Cooversion o t o n trtity:


creott d seperote tobe
a) Forr coch steorg otity
Sane nome and incude al éirmple t l breok cornpole
at4butes inD Snpl inchude hero

Tano multivalurd at is stoqe


b)Setect Pk o tate
slep Conversib o eok eity

a) For each beok erotity c r e o t s eperate toble us

the same oarmt g include o simple ott, koeak

Cornposi e at t nt nplr y nclude thrm

bToke P stron entity incluAe iL as vion t


ip eak
enti
C) Declore -he
Com binabop o PK discimnna Fe
at as P1 Jo oeak entty

Step 3-Converstion q coe- one relationship

relotionship b1 odidy
a) here 1 oo one
a s ' Pk
either 9 od) B tD includePk o otbe abl

b)Tretotion.ship Contoins a1uibutes incud them


modried tobie

) efther bove tott poridpotoy 4bent


t0ble
shoul A be the rmodified

Conustion
o one-
mony relotfonship
step 4'-
bl g B
a) Fo eoch 0p- many reloton say

modidy M side tobe 2, nctuAe P.k o o sA as

dorign ee
M:N

Cat 2)
B Cb b)
Rab)

Be b , b2, d)
to 1
P'K
eRCO,d1, b)
BCb b1)
4 1

)Aelai, a2 bi) 2) C a a2)


B Cb br)
BRCa, b), ba)

PK Carnob be ou ll
RCLATTONAL D M

Degree No ol adtoibutes o a
tableCrelatíonskip)
Cordinolith NO0 tuples in a relotionship

eue b b

2 Modighed B
M-N 3

P Modi-tied B Neio toble

Gue

D)aaz bi )aa ba c bi b> Cz

O Oa C C2
Wich option th atten bute ith ohi ch oe canno fo0

o table

Trnpossi ble fo toam a toble Loi th ll

D-44mibut@S oJ C
ttegmty Cons kouint

dmi ssible
h
p
domoin tntertuple retabon shiD
Value of a tuple
these tyPEs oCons traïn s
Domain dependencr es re calle d as doka
dpendencr es
ea
employee relotion shi p

OYe 66

Data
dependeri ce BOOady classdied o
eauality generatinq Tuple 9eneo h9
dependencres depencre
Hunctional dependnds) C multvalurd o)
on dependencY)
We wi aluoays ideny relotíona
constoaints by

TO R Called06 legal instnce f it sotishes


t h e irtegeity constuints

dertijies tiroe
asin9 0sprts bB.
) represents time tvartapt descPtion o retation.
ttuple
Poojretion o tple tD over
x eR is denoted by

TSe xU Y
I Y CX X Y Le cap5 E fs a t i y i alFp

y CR)) =

tor ofven R, the


no 0 tuples hoínu Nalue 1.

Poojectivity Cx Y2) Cx-Y z)


yPeeudo ansivb ( YandY2)F (2 )

BC D

by G dC

b C d e

b) d
ec c
b3 BDCC
Q b2 C az t56
ay byCu dy
a3 b BCD g
dz
by Cu du e

1C 0

CLOSORe sET of STTRT BUTESo


bhmh
R-66cOep eeteecoe o90e
BC
Bc- 6D
D ec-BcAD
D 6CeDé
CPB
BC CEBeD

R 6Ccoep
DC

e 0ecD
9c 9C BDE D

D
SOL uerics

Singte charar ter

Beauence al chorocters

NUroe Jom BoOr NAME ohich bas


To setect boO

Corputer "in it

Selec toom BOOKNAMe Hte Computer (.

3ootname starting oh S y 3 e letter i s o

Selee
eo BOotN6ME ohere ileeS- - aL

ggreqote Operatonst
M9X, MLN, SUM, NG COONT CoNT)
Selec R,NO, 1a (
Maa S) om Stulen E
a l ro0s )
0nly one
tobl
Agoreqoteunctioncon' br uted in oher, uo0up b
Drde
by y clauses

Set ooi-ented 9perabon 3t

Ca Union, intersection
Cw) Co)
Relotional oiented i

renemin t)
Selection Cr)
Pogechior Cu)
joi ns o)
diiston C)
iAd P R buE noE in 6 (R-67

Relatioal Select
Select 6 the aubse of fuple c the reloton ohiep

Satisji es the Conditon


)
C)
selee

Retatio0a pej ectiont


Selcio be subsets D atti bute
ea D qf
alemployes Suronorne ana ernploy
Dumbe
9gurnoume, emp noempoy )
Dvielon ) }ar al"

R
A) Pm Bm) (e, Bm

-S
CB Am?

r s S l 4 c TesC ue s(tue )y

h a

- hD
B c D
O

b
Let / S

rCe) sc)

s p . c Cr) n s (Cp ) xs) - R.s,T))

R PY9 reosde ottbutr ot


reR
CP 42e 9
P RI1 S

dcaree PlR1t 15

RP-/
O

03

a5 b

T P 6 o 9be
emp
tchemu thep

=)ConsideN cach tr
uples Aorn end 5 Joom 5
Same volue

RDS

You might also like