0% found this document useful (0 votes)
5 views

DBMS_ClassNotes

The document discusses various concepts related to relational databases, including keys, attributes, and functional dependencies. It outlines operations such as CREATE, INSERT, DELETE, and UPDATE, as well as the importance of candidate keys and normalization. Additionally, it touches on the structure of tables and relationships within a database, emphasizing the significance of maintaining data integrity and minimizing redundancy.

Uploaded by

toufiqueslm
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

DBMS_ClassNotes

The document discusses various concepts related to relational databases, including keys, attributes, and functional dependencies. It outlines operations such as CREATE, INSERT, DELETE, and UPDATE, as well as the importance of candidate keys and normalization. Additionally, it touches on the structure of tables and relationships within a database, emphasizing the significance of maintaining data integrity and minimizing redundancy.

Uploaded by

toufiqueslm
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

asecated be

friay to
kaseaduugtzint key
--fuiang
key
euiputed valcdl Tdingle
(DOB Deiived -
(Naun) Cemfeitt
(Mitei). att Nhell -
No) (haneMattivaud divided)
- (cait
he-Linple
attribute: fruine are
1
il -frime
kiey eackatbuibutes
i all the confeit, key-
uce candidet
ty dubetiy otlon Atermat 9
ky-CaudidaC
ky) subut (ne kyeujormiaal keg-aKinay
candidal
bey dukety
Cepeitt
valuud diiglo atibulesE Celmns-
-dinpla
/RDEMS DBMs
kelatioual ’
0 (i0hyta) Name
kyla) (5dadus
-Delineun
-CREATE, ALTEK, Dkor, TRUNCATE
) INSER T, DELETE, UPDATE

Suey
1-patabasc dniuebalo
Ne DalalenbelLauage - GkANT, KEVOKE (.
( ferviuien )
Contbel SAVE POIN T
ROLLBACK
Cemnit
(dnda till
Becke Huee (R)
pheiceu
Cenmit) neine
thu nelatie
detf atthikutea
tributi > Naue,
Lauguage (to nefasut datakae)
Stutined quieny

ligcial
data ue

mul!,
mlue mayb diituguislakl sr,
eutites Amuthe
leuititn,allte

ky ale)
aideulifin(pay
(ilattal Databu).
these ate leue
woud be dayiy dhat lin tie,
dnefect, il untgue idetiha
hatditt an any
briary donain and'r' be a
- Let (jhea at detned Bn D. Thew
nllal ntity attibute at
a <4' eithr hll
Rla wit Atn ,
miuat be
ygien tine. sacl aalee t
dhe pruinany key vale ofo
whese vi
ual to v, say tydfiud
deta nalel Foteigy
teveektaal Lvtltameuty
Phyeical levd
ditroal levd (teray vie)
dtriibuti
Compoite attrikuti Unden-valued
attlbut
Weak
LE]
Ceneuity tuit
ne to ne

o y to- Cue
M

t a uieraity. hee ave 'eties ducl as slideut, faculty


cowue, adepartinent. facuty takes claees and ale puidla the
stulentt who ane pesearcl! schttass Jludeut ikoll cn the
defartmendt fen a partular cewcse . Lete Facultier re alo
efe caw gud a nnber of yod.
di quide and allated ti t bisject at a tine
Wetueek, euardisehtlan ci
|MEMBEK ENROLL fsRARY

KBORKOW <ORDER
N
N
N
Autiariked N
Boeks
dehedule

New Book
AUTHOR
N

KWsite NBoek PUBLISH

(FhcuTY eTUDENT
GUIDE

LoCATE Researct
Nelolan
DegueeNN
tidut

<ENeOLL
Geeralizatin,
S A

+ Relatienbif
HBranek be kitieew Diities
ut Qmey eten

(Manager

Covet uti tabl.

Branl lable tlat

hat blang
Mamager

For Woks ou' tebe, eembatin Enleyee ID,

. TGtal auticiputien fnial latijatien tuuctwnal eraiut


" Rile Mame
fheedural: Ewy stf bas t be dafied (PLSSL, e')

AD6 - sAlatinal algebra - huacedaal langy jt, dt.


dif.
Calculus - en precedural ncen

’Fundametal
- seleclsu
thonatin of nelational algebai- (Geusne ,
be deried
cant
"Suitt" (EMP)
- ihyectia
eleciew a-ma
-detdlerenee " Adal 5000o(EMP)
-lantuaw braduct | e " olerk
- Rename 1enawe, &al(oybb : cleuk"A sal >50000(EMP))
slecount / accsuntmo, uet. nae, addr, braned)
- Lan( Lpan-no, cyt.name, aoldr, bramch)
dl the name y tle eustmer who las etlaseetw a laan er an
acceunt he bank
Us wull be vale Teast neme(lean
" ls wtuld be sane ariy)
Jame no f attribcti
i.e. fne Tcuk-nae (eeunt)
The dma
' s ' u c t be

Aane fo all 'i.


Taddr,cut. ume, bhanch
(loan) U
4:7eut-nane, dd
iilintlanyed
domain
No
domd
X*
bet difuene:
name, add (leaa)-1utnans, add/ Aeceuvut)
EMr DE
deptno dname
KOL
Eo1 10
ABC 20 OEL
Ec2 XYZ 20
30. MUM

duame
ARC KOL
10 0EL
Eot ABG 20
Eo! ABC 10 30 MUM
E02 XYZ 20 10 KOL
E02. XYZ 20 20 OEL
E02 XYZ 20 30 MUM
EMPX DEPT

DErTdkthe (ENPX DEVT) dnane -`Kou)


A
de ENA4phva -
Fuetonal depndeiy
cau detrwnine the slaa:
PIN
candidat ky u lto |
-Mattig tueavuf a nelatin 'R, tlera i
ief'al defendnyX y that wheever bucl
a Costiaint betaelw tor tutlw ti
i(x)- t, (), ut be k, (y)= 4().
|SSN PNUMBER) HOURs ENAME PNAME |PLDc

}sSN, PNUMGER’ HouRs


SSN> ENAME
PNUMBERPNAME, PLOC

8 PNUMBE R PLOC

SSN PAUMBER
Cakdat ky
I
sa tonsthlinl on ' ' atates tot tlone ht be mse than
yke tull a given Xvalue, iw ay nelatonal malane,
that

Slaure f a det of futnal depeudumce


let Fbea det Fúa det of

Theu rule ane said tt ke Lund, aas they de net penenala


bincenect Hu, caid t be cemflet, a fer agienf;
ueae 'aulean generat all F*
deduce tu folowing tane
ulu to eaily conbuti Ft:
keld.

Coufut Ft
F:

attribut Z frem X weany

athibut zeX, (-fz) deit 'aly detraass .


Eq SSN, fNUnBER HoUkS (ul f"al)

dne atthibutt *Zea can be Hemeved fom A, ant the


defudeugy tll krld, ie, fer domezeX, (*-{2})
e seutve NUMBER
sS N, PNUM6ER >ENAME SSN altne can dletorint ENnE
defenal duin gudeline fer nelatisnal elema'
GutlelidD Dugu a nelatal tto chena do that itá easyto
elai it meanig . Do uot Gonbie alaibat pan
iuti asige xalatin
2): Desn the base elatien kohena do hat at iuntien, olelilis
Eg: lpdaten auemaly
attibute ee a bau xelatien
whese vales nay gutitly be aull .
: pesiw a nelalinal tehena d Thattey ca be fiied will
2qual ti cenditiens attibutu that av aitka buaay y
that puaanter
are geuerated.
base elat'ean be dintd wto multfe
Helatitns . bn den to get te bace solatien, we med to
all the aewty oreatd elaans ya foiniag thesi, egt
sne additieal tples, that ane et nti w-cnal teletan,
ane caled dfuous tujle.
EMP DEIT EMPND. ENAME, SAL, DEPINO,
EMT EMEND, ENAME, SAL, Loc) DNHHEL
DET E=IND. DNAME, Lec)
The breblen btce due to
foining te to talles teue
Lgedtles ae Cueatid puiud.
’ keduancy
Eiut,
stened epeátay
" 340 Eies that elataka
sislnt the dae dlata euay bec
ncsnutnt
Heuesen Ceulialled tedunaacy be alloed dh de

*alttibutt
dve caa dlecerspoe mivesual elatienalwcaena duie
batt ito a tot
Hhat ull becenl th selatisnal database D,
p'i caled decenapeatienof
dlcte hat eacl atlabl i s' il abbeas atlea
Helatin dcheuna
A attribales ane Lest,
m

(gcttig/enécaiy back al-te att


Lessleus
hal iefunks uple a
geneald ulena aalnal

A F dfuaenciu Fasamally a dcenfezlian

esudtkas hecd:

N(7,). ) , I )=s chtngNey


tmomeut
belatienal dat i cuo2ut /aiutautauebus slata

Lutasatiau, The tetisn

fuasatid that 0 hiluius


ane added to e teult.

The c&wmen athiluls ia uunay


by

bet a ke a 4et ay athibite. <ith all Haa ddif altbikuta, finii


deternined by
,edull

.Cnd

SA6Ac CG H. ccI,BH}

AB
ABC
ABc H
lia candilatt kay)
ABCHIG cam letermuit all attbcate,

efat
'apply nefpleiity ad augeneutatien gulerenff.
fee cach ai t FD,f and f ti F
add t sesultant D to Ft
Lnd if.

til Et deest
BC, CD’E, B’D, E>A

ie gia ielatiaa H(A,6,C, D,E) decempesd ito

EteBt Cst H,E, D, BC


ABetBEAet Bett

B
BD
kecaue c e tt a cadidat key
coine attaibuti
mae abler.
the tables,

INE: bomiK value


4 selatsu n 1NE
alee valuer sy
STATUS Sf >UTY
|STY CTY’ STATUS

cITY S#,P#’8TY

deletion
utdaten
it9 a LNE dandall ae men- key
attsibctos ae
SUrPL Y(S# cITY, SIATUS, P, STY)

SUPPLY (S#, CITY, STATUS)! S# deterisee? , lo all non-key


at . ane faly y
we can have Hae
&stata

dién-keyatibut ac.

SUPLY(S# aTY STATUS)

CS (CITY, sTATUs)
kepert kepetNe Ldito, dept dept-nase, dekt-addr,
auttcued authernaul, alethan -adds)

Edian ’ DeptMe
Depl-uo ’ Deptnaue, alept add
authca-id ’ Qutlhor- uame, authou-add
PKy K«pext_No, athor -id)

tha lauther-id, autsanuaune, authonadda)


JNF
RA(Refrt ne, autho-td)
RE Sebont-no, edton)
ED[ eolitoe , deptno )
DET deptnd, dept-naMe , deptadd)
BUNE n BCNF
Boyce Codd NF Lia caudila keya
Detuiinat: We oal an attibute Bluby combeule, a
deleasat
defeudent
palCalydakendancy
allBue
depiadiuey

C’B
iter ered dalakau ntdealan ale
1 Jaiedeale

fea tramsaclien, suly


Hhan the ackal dh elsage)

X<T Cesit

dikenued till cluclefelnta


RDE by EF CodA 4x,0,20)

Da. E. E Kadtd uing kelasiesal Dilabasu'i


The Hules aei <0,s
nte DB u
Pepesened as values i has lable tt the
lyial level. Cesnsnit
2.Aa data ilesns h the DB ahe alvays Accesible
tablenanaes
n

ti) Data iaaihlats

) Nateilati

The R uedel Luak all kán helatieeldedkelalit

seliual tf dála.

data indetudeace'
duklalujuaye S&L)aud alsedi He daaban calilegd
abuiatie
Data } t a

acces

(3. A kIEMdbe ablede diuanspe


alatlsal
KDBMS. ae kuen a

nafecliely
* tadezig haliny
ovtt
. Jlaslud iudte i baud en umfea ditilutien alues
bucketa
5 dpaa anhead
ane
3. dasceien tiane
4. Deletin tie

lauinany idices ane ale called clutuing sidloes.


dened

"Den nder
A-10 Behala
A-20
Multileuet cindea
Gaia Gava
A- 30 Gant Maiktala |A
Mau A-40
Fheslo A- I5
lanikala
fatijukod
fatiuke Kaaghat
A 25 Ravazhat
A- 50
A- 45
Raaghat
valca..

value.

Deleliai

anextecer

Bleck dize = B M ecord stred widizing tn DB.

ein a blecKS=

-
sastgilugantiat file suganatit
llaskd fle Agankal

You might also like