DBMS Assignment 2
DBMS Assignment 2
Date
0 VNI ON ALL i
Union A opp satin egua to b
SthoutmoVy hupdlcatoM qmd
dat
fnm athibute
heh tbk
cAss.
Caxttsiqn
ota
conmbinati claysemcluding
bcth
th0s th
The
datatyper.
qnd
sae column or
p hplks ON m
? selectoy etYns L)
te tableswalue
RKample at'he
ate t0 talles
bastd
on keep
only he
Table
camtán n hisnMatchimg
paixs of the kf talbt
a
with ktcolurmn,
OMNOY
each Sdie
basis
also,
both
by
folloe
rDduct o! the
tabke haue 2)
Joms column
itojn LattobutenamA
table th
Gom ohh i
(Table
the mateh
all On
xal teultng
Dtbott (omMDm
tcOTds
attibute h}
Defne Naty
qxge
amaltdata
duplicates
asiange 2 StutementMmus
sELECT
twobut
talblefable table tablk queny
nsderfrom Pm
Date
fon AOM andt
dupdicatee display
Page
olymnnae
olumnngme
ngme Calumn_name ascendm que
is to
ulumm statetoeMts.
SELECT Used stconl
Tt fntessect
SelctSelecti- the Select
m
data
sslect is the
sect Qpaatoy
defaut no
has
14
Syptaxt TntY Syntax abt
m)
Girten
cOLORB
Green
TO-B
coLORBBrown NULL
Date
Page coLOR-B
cOLOR
A20-BRed Red Red
ele
NULL
Moll NOLI 3
Itt
from
Jom
Right Redten
Puxple AOR
GreenBlue cO CoL
DR-A Auxp)e
NULL
NULL
Rel NO aResut
fron
full
from
TO-A
OResut Resut
ID-A TD-A NULL
NULL
lala|<W
2 2
e)
adso
etåyns
a
satsty gn
table rÓm LOR
CO Red
table
Date
Page etite ght outex CoLOR-
B
tte Table Kad
ohich the (Rght fom 2
in Right TRos
gcoYds 2
lues
va OLORA
Auxple Red
the the Table
Red Bue
CoLOR
all
also
2
6xapleo 2
3
loyec. from
énnploee;
ustd
ofehap a
fimd mmms
Supplr
speees
empsyee,
b bnfplayeei sasa-sahy colyym to
Can to
pgrgmett énnployee.
From
(salany Vsd
colurnn
used
Hbe
Lsalagyfind/s
fem S
fmottont hat
from toted 0s -of NAREANPto
T+ Qxgyment
as
speciied the
deNiatbn (salay sedcnlmn
lsalaxy) tha Table
Enaployee ot
fumtion
a fynctiÜYy3
max Gzet stDDEY vasiance
leet the
as VARIA:NCE
stanela
STODEV
SAppiedselect SUM n
Sehect select fnd lExnple
MINalue
Y) V) v)
fucthou the
SELECT<
fynce
Nome>(<payRteY>) >2oo90
frput hmbY
exaniak
fpnetoa
a
qs
retune
whe
Saly is
that
the ma): where
Page,
Date
alues colum
ton
is neturns of Employee
NgEtunc
mulfpk.
fumetion no.20000.
Vsalayztte
by This
Tãble retym#nm n
egn
aith isOsuppledTH
that
tkes < i nglue
Agqryatt fom funton functon fo (*)
yo
do
Caplain AVG
Select ByenycoUNT MAx
+hat database
Syntus
ohat AVA
Exg'Select
Count
An
( )
key
not
bae
to
a ofte cqnnst
hae
is
key qre
PageDete c
ik kei dunlcate
alueybt
-doey
tuO
attbutes
fhat
ofcomposite
up identfy
unquely Hentfy
haiquely
Composite
)keymade ikey
athibutea,
is niqueset
of
that
)
candohe
DRM gndcannot
calhmn atibte kay table. not
a
qtabl. oe pmay or
of mulpk
can keys athybutt is
Porejgn
table
keys one b< that
of can
theselatitrstp
ge nus hem
Only set
al be
hae
idesttfy dhat key
values. q of to qn
0Y
tabkTtcamot
on mquedhtâcx thL
s
anelas
lan 4hat
mkxs
tabletable
migyelyme
attót eitablish anothex
f is attthbtes
note
shor
it ky
Camdidat
2) mly
bt
kays
dpcat tabk (2) forin
ky
e) Key
key
SupeY
deaign
qs
assigned
canA supeY q
to f ntify
jde is
ha table
that td St
a 1+A