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

DBMS last minute revision notes

The document discusses database systems, focusing on their architecture, data storage, and retrieval processes. It highlights the importance of relationships, keys, and normalization in organizing data efficiently. Additionally, it covers various data manipulation languages and operations, including SQL commands for managing data within databases.

Uploaded by

rlal64501
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

DBMS last minute revision notes

The document discusses database systems, focusing on their architecture, data storage, and retrieval processes. It highlights the importance of relationships, keys, and normalization in organizing data efficiently. Additionally, it covers various data manipulation languages and operations, including SQL commands for managing data within databases.

Uploaded by

rlal64501
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Database System Conajtf Archtechun

D8ms ’ A sofhwave system whteh is


enhy’ A Real lorld object
usd to Store ) vehiev e distinguisobie frem e otfher chjech in
and rUn q e s on Yeal wovtd.
the pvopevies
4ttvib ute s,’ Ra Tt vepretnhthe cata bay
And also lbwind ws to Ceate ) Stered fn
of entihies
Te ady upelate delite deta in
Rvationships,’ A ConncHon is a
databa se. TOYe
Connectin blw Juoo
data StoYage
& retieval. entihes .
Subboy,t E t t i t e r ace ave fie ldr in
Aeutehq Kys ’ Kys
muti pe ucers hat
by To ble
n a Toste
Entuve dat uriy.
Database System vs Cile Sastem
is a unique
Data System, Primary keys ’
data n a Styucture d wayf undee
ovganises Jou cotiy
Table & Relahonships.
cord a d i4 cent
at for eath Ye
Due to Contraited njroach
Ky
Sharirg is Eag efes to þim ary
foveign key ’ t
quenes
P Suþpert compler
Table
anottr
of
varieky ot Tecanius to
Stove t is a proc ss databe
P wide
retrieve the data.
Normalzetion
the data

organizig
NE) N

witheut R
ovgani'ses dota in filus Ry
Rataionshtps.
formas of f
it is Ruy
Du to aft.
not eas to shne daty Rdundany lViNuiw
nade dubicate datq
a N E u i i n a t e povtial dapeudeucies
ktad to clata GNDEUimate Tronsitive depenclsneis
efficinty 9tore &vetieve thedata.
Hant non- trivial fendiona!
du peucleucies
mli- vae upmeuues
Cuiminate
Ciminate Join De penng
N
Tradeqity refers to
arcur aty Consiste nyin datakbay
of data Stoved
Three- ier Arehite chre
Stvuctuk o ha databay,
L is a Seftware Avchitectue hatern he

wnd in duin ot Shudut


Class
dvi vom nppucationf Sud1nt- no
databast
Ptsenafion Tees (user Tnterface)
Inttratt wih end-usevs
H Topmost layer Thuee - Schema Avchifechee
psiahon Internalsckema ’Desoibts hou
Aresent Tnfo from tne
,Mobiu bbs
E t k i M wbite hregh a
brorAa is Chr ed & accasse at Phy ka
user
lsie Tier [Ation Sevver]

&manays appiaion
Maale loyer precesusYlA aowribs Aetble Strucoe for the
logc & busness whole daBa ba

Aþ caion
Srvovs.
aerlSehe sr Seheug
Web servers,
Represens hoo data dis viewnl
dolbox ter þeduct into G
Data Tier [Dalabase] End uss
Eatenal
AB6tom layer manages di Sfof ata Caterna!
Schma Schema
FsQL databas. av Shmud
Ovder his hy
H Peduet dtails )
in dalabane Conuptual Schema
Compo nens Tntern schemg
Hua’ Trkeroct with
the ytem
the daabse
HDem monags
the data
HDatob ase) Stores
Dak Trdspoudanp
in the data ba
wihout
Data Models make chans
Strutuve of he appieaton.
he
IH Repreents Afedig
daabase. Logical dala Iusepdlue
Tuo Ty bes ot Data - Model opevatiomg he modfi cation ot the lopal
rad
Schema oihout offectng he <ft þre

Putr-dafsd oprations Physical doa Tadapeudenu

upante-i e t alows
Sthedue uhe in
phy sical Stovaye
clis k without

Digevibes duta'ls of hao aa is Shod


Hnplnttai
'CREATC TAB Cencebts of suer key, ardi dale
Dotabat ang va ATER Tos!
Dah De fini tion long uage (DDL)Jater ral ée
DBms, it is el to de ti Strut Supr kay’et
Tn maagd th
Extern sc. Detin more ttribytes

" Data Moni palaticn languge (Dn)


monipujes the in the datah
data Stoved In "ferscn enh
a
4 "Addher Cad
andidste' y
'S£LCCr' TNSCR T','DELeTE'.
onpt ot Toantachon mentmal Soper k

Tiansactien Ufe cyes Tdsifies entity


unialy
the "Person e n t a
Aomily Fstart
Kay cou td
Addhoy Cod
Cordidate
Conitemiy Hommi
Tsclation HRoubock Pyimav Ca't

Duvability vae

LR model's Concehh
Use to
veþeentaHen
ER mocel is a visualvelaions ps omo Generalzahon
decigm & dssevibt
entHtis
a dotabase
Gindl Gonmon AHibute Armer?
Jo form a genevauied ontity
generaiaion ot
eehli' as a
[entstes]-> keprecenhs an
PRecdange an Atribute
Represenk
Oval [Atvibute ikpAaregation
[Retaiansip] Represant an lelaties
Diamond
(onwehivity1Traiate
reshihip ww |Boers
nHhe s
Toe e e entihie
hLines combid to form

Consthains
napping must be
Stisfitd
of a dsfat
L Rule s that emptoges ove p t
Ettedtd ER mod
Dovig Eah stu dut
Cau Pmol in
vedu u
Couses but sach
mulhe
mutipu Studenk.

tribwe y Empeyee (Eno., Nae,SaloJ )


loc tcoco Technu an
1000e+Secvet
"S hudat entihy he
Tn a Subcla
U Sudent ID'
Ailatien Daa model
Data model epresenks data as
& celumns Estaklick velationships bl
Table usin key
Porgromning’ Sirig Ratabigra)
dalaha
Tles kr stdent'" &" Ceuvei' ko
a reteticnihif
Cnreimenh"
Table Advontages Oost-ffectivtd
Centtrainls
used to ensuTe data is Censistent Timt

1 Can held
Databythe kind of
Táenhty deine (
I , Vavchur)

Ttey oft sQL tom manda


bl the Table
Aalationhips
Rr CangByint ensthaink relatd to
in Telahonal elaobo DDL DML DeL
Data definition Daa maniputake Da Centrcl

Uwt
lorg
Domain Censtrain
SQL Oators & Heir
L(valu’ stored in Cetumn)
0 sQL Avihmetic eperators (+,- ,k,l, 4-)
baed on
dateye)
volue s
ampound eprnatrs (t>,-*j*, , )
sL 0R, NOT)
|QL lgical opaler s (AND,
Select * FRom fmployeg AND
Sala ry scoDo
rtai Tabls
Orydes
Departet = MR;
sale ctiem, Unio, Jon Tndxes
Tacvex opesaie Ta btas , viewç & otadabn
Stores he data
Tube Caleulus Ta ble -’ That
Takes vepxecnhiy
Gmathimata AbþoaA view ’ Rows d atomns/virkud
perferrnane
os
formular Tmpvove uury
perced Tndene
Qurts gvegato Anetions
ove
mahematical

Sub qunes Tt forms Some


Quevies Cet cf vaat
oY on 4
Setrieve
data frcm Cne
oprahons Covnt ste)
Guis
Tablss. (Sumt) AVG,
Yn re ha is embeddsd CAcm studta;
SfLCCr Avg (nye
Subyvies.y.
wtin
arotaY

Ava (Sala) eom


Tnsrt ,update k Dute opraton IL 1NF Yelaion
Tnceet odds new Rrods value
uptode tmodities eicting Rtevds Cac(Cat
Tabte
Single
Date Remore Ruco da
fyer D Remore
TNSLR T IN TO Eptageus (wa, Salay) Tom Dupicale
mer ber
valuts ('To, tboco) 003 Bodin

Join untons TerstcHion envet into N


Name
Join ombine Rows from Two eY more
YolaJed Cdomhs Torm
"obles based on Foe Hhat
To m

union Combine the resuth ftm Tuo or Aodinton


mere auvies into a singu mesudtqurg.
2NE (1d Normal form)
TnleretHon Combing Juo Selct stale mu þtal
ad it Yemove
in LN
It most be datermine
be Same. debudemies ’ Port of Pimavy non
AMtnhos

Shuded
Delete
JO IN Dspartnts DN empleyees. Prics poytial
Depavtatt. DefothtD
Departues TD =
Jcleg1
Cursor! t is a point usd
to fetch Rous o03
resuLt set
fram a
d a
A preudure is namd sQL block
4 SQL blcck that Autonaticauy Studit T)
to evenk. Shhdt
exe cutkS in respone 11
00I
Funcional Debendenies
Cuyush
he relaionships
deseyibes
Rilaonal
in a
Two atti butes 3N (sA Nermal Rovm)
dalobase. Denoted os t mt- be n LNE d also
wih
altributes Traitive
1Qmove
4 n a Ta ble
CouTse ID} Sudet Nam Pinbecle

Studert TD , Name muons |000


murba

’ Name it Ai hya
it Studact I delernn their Iloc|
neHdwer
noo9
Rohan
Ran
shudtuen
Nermalioion
the clata & Sudnt
Pinodu
o f a daabase
Momba

atribuks I000
the Pune
oul Adiya tI00|
Haidwar

10o9
Naial
uNP/BCNP (Boy ce -ond Nord ev) mv) [muL- volued deendetiec
muhvele
Clension ot eatationshi
Runticnal blw
dependereies)
Rohan
Po Ronul dte nink Gnoher

0 Fo4 Preet
fOL
Tronsacon
Syslem
But ot hat Crecution
Pegvams) Contels
Tansochien

Ta a datahav
FO3 Rohsn Fo3
Pol Ranu Fol
fo4
foL
Prect Banking nonsferring
Systen
Tncdvion deperdeu es (Tnvolves 2opeahens

blw s 2e n aifferent daducig memd


Reiaio nthip \ot Atibutes) Ralaitng &ceeunt

a Tion $acton) [adsig mony


to Onothet
Tt meons al emp must belrg ^vialitabit
a depatnt.

Dotntet De omposi thion Catution ot


Loses Join Tiansathon
Cuarandee
original (Rucons thrcdedlywithaut los
Ruatien Podues
Rosult
into 2 lahn
when X dico mpoe
anot
One q Her

Hiel le of te datbo
Tvansaeton ai loves
Racover from
Atnbe of a
Tnveve s Mehanas Restre he
databa

Teined, Nter a Tranfachs


bogi Co cdt
faiture

RiatonshiÇs blo Atti burs Dala not feuud


daabase ate Hsystem Enis
log- Gand ke coverg
4 a daabosl Tnterubtd
ave
Entries -Doing Recorarn
Tsans a cHen dut to (ash
Aralyred
Check þoins
t o t Captred
Tf a fui love stem Daaba ’ at (art checkþ cint)
oCCurS Rstove failue
in the vent ot
feetter re coe
Dead- Lock Mondliy
Tuoo or (Unable ’ Duu to
More Trantaction waiig for
others

we D1 ad lock

By bor hg one or
RCA)= 20D0 mere ansachon
A A - 1D0o
wA) (1oeo)
R(B) 30DD

Aomiciy - 7f a Thonsachin fuls, yo4


wiu to Ro Lba ck

( corgis leny: Sum of


Shoud be ane
3) Ico tation

GDusabiy Chang be

Suppust seud eay fre


A decu t t
& O do to B
bulact

td yo
optn
GBocew of magd

intortet wit oue


witno ut

Tntowisted

You might also like