| (CLAssTImE]Ps No
Onc / L
| Database tT} ts on Organized collection of
| data_So_-thar it _can be easily accessed.
_ TS menage these databases, DBms (Database
Management System) axe used.
Database
DEMS
| P= == =
i — |
I =
TW pes ©F DEMS 3-
| put ume ( Linkedin /Tioi ther
iXelotional DBM: Notes COME HY [eapinly Cues ( Tetedvas
e
© | Nlon- Relational Ss
|
Kelattonal DBMS i “Ih this DBms data stored
is -toble fexmot-
fgoul no Name Class
\ soi [5
2
a
uy
Li Example: My SOL, Oracle.LASSTIME|Pg Ne
Dote
ign Relational DBMS ; - TA this Dems data
is_ stored In_Key - value poly.
— Hef
“Rownio?s 1,
“class %ts Sith”
&,lame': “joi?
z: |
(nlon={2etational Dems).
Fev Byample:- MongodD& , Redis
SOL Tt stand fox Structured Query
——_Language-
—__ Stst_ts used fox update , delete, Insert data
——Lin table or “Relational Database.
RDEMS
(T=)
: }
- Y eotional_ -
Datobace._I Sunt POX t= _
| SOL CRenre - ommand +. - ————
iat is used fox create Tables. a
nea “CREATE TABLE. “tablenarne_( ee
a Column 1_datat
Column 2 datatype
L Sil Keywords are Case - insensttve .
Th MuSeol Case — — is_an option
vu _can uta _on_ond off
J
ity Eyarnple :—
Create Tage user (
Firctplame voychar,
_LastName Vaychar,
Amoall_td Marchax,
(Password varchar
== 3
Eustnlarne [Lateran [Dynalltd [Password| = _ _ __
| SQL _DNSERT INTO Commend +
|
Suntax?—
"Insert into _tableName (cotyenn 4,
(CLassTinat] fc. Ne.
Tr_is_used_4o Insest dara Info_+a@bles . _ _
Column 2-.)
Values (Valued , vatue2...)3
e| A vow Of database table ts known os
yecotd oy a -tuple.
|
+ 2 column of datubase able js Known as
__| an ottyibute.
| Fax Cyample :-
ee
Twseat Into user (Csstrame ,
Losrviame , Emoll-id, PossWeed )
—}—__Vatues [ Jai, hatma
[email protected],
[tai
Byt-nome [Lastname | Ematintd [Password
[Snamaa [ape @§maill abc aes |
—| Hu to Theeet Muntiple Record (wows, -tupte i
— | ____vaoes ( Jat, Shanma, abc@amailom,125),
(Toya, Sharma ., Xy2@ Gmoll.com, ab};|
SOL_SELECT Command i _ ee
| ae \S_uSed +0 Yetyiewes data Siora she-boble.
SeLecT_Colurnn 1, Column a
From tablevame, a
© 10 Select Complete -tmble, use * ( Stor _)
d SELECT
Fyom -boblename ;
Copomand s-
ae Sevect ElestName _
Frorn_USeR;
+ Puuspyr t pul KOMOg Ctunkedin [Toiter)
~~ paeTeS GALLEY | Coping BUGS
| Gncecey [Conia BSL Telaygte|
TASSTIME] Py No.
Date
a
S@L_ Query
+ —— Work — —=
Query Language Processor
Passes + Dphimizes
eS
Tie Manager_+
Ss Transaction Manages.
Physical Database
Fossing, +-
jis _4kenized-
nhs Frocess , Query _shotement_—_
“‘Opinising = Tk Optimize the_best
! algusithra _for_jfhe byte lode
(il From which can fetched!
— | Lrom s+ 1s used -fo specify the -loblesDee 7
— poet Ir is used +o Fitts vecords based _
| on the aiven_Condition _ a
[gow TA+_{s_used +0 combine data -From
| ___ Tables based on oa tommon Field.
7 Geove By i _Tt_is used 4p _ovoup tecerds
| based On our Vedulveent.
mune Tt ts used +o firter a xoups. _
lemaae Buis Tt is used +o sot -the cate
| Erom_-ne table.
[Limit Tr ts used +o specifry how many
yows are vebuxned.SAL =
Constr
nqur yume (Linkedin [Twitte )
PLOTES CUMLLE #9 [soins Gute (Tyran)
[emstraints |
v wv.
CHECK UNTICVE DefavtT INDEX,
a
NoTNULL PRIMARY Foreign
Key Key
“\nese Conshyaints also Known as Thiegrity
_Consttoints -
We [S01 Constrolats 3- Conghratnts ace the vwles
ond vosyictlons applied oa the dara _tn
ioe ie joble.+ [Nero Value Cannot be Nutt ta a column,
He UNIQUE! Vatue Cannot be sare ta a column.
ee
o Ukmingy Key Osed uniquely identify a row.
“e FORCIGN Kev ts References A tow In_Gnethey
| houele-
|
ue | creent= Cattsties a Specific Conditton. —
» | Deeaut all
e CRERTE INDEX Used to speedup -the read
| Process.
SE
Eom [doin Ff vanere Pp Geovrsy Pnaving |
[seccr]~| Drererence Berween Acrer—
aaa : Uproar — as enue women Lessin) Tester)
| RUETEE CMiUery emtreny COSC TstHter ]
ero & the
Whe.
Changes ate made +o
=the -tnble