SQL Set Opetrators One Marks Dumps
SQL Set Opetrators One Marks Dumps
1. What type of join is needed hen yo! ish to in"#!de $os that do not ha%e &at"hin' %a#!es(
a.E)!i*join
+.Nat!$a# join
".O!te$ join
d.A## of the a+o%e.
Ans: c
,. What type of join is needed hen yo! ish to $et!$n $os that do ha%e &at"hin' %a#!es(
a.E)!i*join
+.Nat!$a# join
".O!te$ join
d.A## of the a+o%e.
Ans- d
.. Whi"h of the fo##oin' is one of the +asi" app$oa"hes fo$ joinin' ta+#es(
a. S!+)!e$ies
+.Nat!$a# join
".O!te$ join
d.A## of the a+o%e.
Ans- d
/. The fo##oin' S0L is hi"h type of join- SELE1T 12STO3ER4T. 12STO3ER4ID, ORDER4T.
12STO3ER4ID, NA3E, ORDER4ID 5RO3 12STO3ER4T,ORDER4T W6ERE 12STO3ER4T.
12STO3ER4ID 7 ORDER4T. 12STO3ER4ID
a.E)!i*join
+.Nat!$a# join
".O!te$ join
d.1a$tesian join
Ans- a
8. 6o &any ta+#es &ay +e in"#!ded ith a join(
a. One
+. To
". Th$ee
d. A## of the a+o%e
Ans- d
9. The fo##oin' S0L is hi"h type of join- SELE1T 12STO3ER4T. 12STO3ER4ID, ORDER4T.
12STO3ER4ID, NA3E, ORDER4ID 5RO3 12STO3ER4T,ORDER4T :
a. E)!i*join
+.Nat!$a# join
".O!te$ join
d.1a$tesian join
Ans- d
;. E%a#!ate this S0L state&ent- SELE1T e.E3PLO<EE4ID, e.LAST4NA3E,
e.DEPART3ENT4ID, d.DEPART3ENT4NA3E 5RO3 E3P e, DEPART3ENT d W6ERE
e.DEPART3ENT4ID 7 d.DEPART3ENT4ID: In the state&ent, hi"h "apa+i#ities of a SELE1T
state&ent a$e pe$fo$&ed(
a. Se#e"tion, p$oje"tion, join
+. Diffe$en"e, p$oje"tion, join
". Se#e"tion, inte$se"tion, join
d. Inte$se"tion, p$oje"tion, join
Ans- a
=. 3a$> fo$ $e%ie. In hi"h "ase o!#d yo! !se a 52LL O2TER ?OIN(
a. @oth ta+#es ha%e N2LL %a#!es.
+. <o! ant a## !n&at"hed data f$o& one ta+#e.
". <o! ant a## &at"hed data f$o& +oth ta+#es.
d. <o! ant a## !n&at"hed data f$o& +oth ta+#es.
Ans-d
A. To $ite a )!e$y that pe$fo$&s an o!te$ join of ta+#es A and @ and $et!$ns a## $os f$o& @, <o!
need to $ite
a. any o!te$ join
+. a #eft o!te$ join
". a "$oss join
d. a $i'ht o!te$ join
e. an inne$ join
Ans: d
1B. What is t$!e a+o!t joinin' ta+#es th$o!'h an E)!ijoin(
a. <o! "an join a &aCi&!& of to ta+#es th$o!'h an E)!ijoin.
+. <o! "an join a &aCi&!& of to "o#!&ns th$o!'h an E)!ijoin.
". <o! spe"ify an E)!ijoin "ondition in the SELE1T o$ 5RO3 "#a!ses of a SELE1T state&ent.
d. To join to ta+#es th$o!'h an E)!ijoin, the "o#!&ns in the join "ondition &!st +e p$i&a$y >ey and
fo$ei'n >ey "o#!&ns.
e. <o! "an join n ta+#es Da## ha%in' sin'#e "o#!&n p$i&a$y >eysE in a S0L state&ent +y spe"ifyin' a
&ini&!& of n*1 join "onditions.
Ans: e
11.The 444444444 p$o%ides a set of ope$ations that ta>e one o$ &o$e $e#ations as inp!t and $et!$n
a $e#ation as an o!tp!t.
a. S"he&ati" $ep$esentation
+. Re#ationa# a#'e+$a
". S"he&e dia'$a&
d. Re#ation f#o
Ans- +
1,. The 4444444 ope$ato$ ta>es the $es!#ts of to )!e$ies and $et!$ns on#y $os that appea$ in
+oth $es!#t sets.
a. 2nion
+. Inte$se"t
". Diffe$en"e
d. P$oje"tion
Ans- +
1.. The &ost "o&&on#y !sed ope$ation in $e#ationa# a#'e+$a fo$ p$oje"tin' a set of t!p#e f$o& a
$e#ation is
aE ?oin
+E P$oje"tion
"E Se#e"t
dE 2nion
Vie Anse$
Ans- "
1/. The 4444444ope$ation pe$fo$&s a set !nion of to Fsi&i#a$#y st$!"t!$edG ta+#es
a. 2nion
+. ?oin
". P$od!"t
d. Inte$se"t
Ans- a
18. The $es!#t hi"h ope$ation "ontains a## pai$s of t!p#es f$o& the to $e#ations, $e'a$d#ess of
hethe$ thei$ att$i+!te %a#!es &at"h
a. ?oin
+. 1a$tesian p$od!"t
". Inte$se"tion
d. Set diffe$en"e
Ans- +
19. The44444 ope$ation a##os the "o&+inin' of to $e#ations +y &e$'in' pai$s of t!p#es, one f$o&
ea"h $e#ation, into a sin'#e t!p#e.
a. Se#e"t
+. ?oin
". 2nion
d. Inte$se"tion
Ans- +
1;. ADnE 4444 )!e$y "an +e !sed to p$od!"e a $e#ation that $etains d!p#i"ate $os.
a. 2NION
+.2NION ALL
".INTERSE1T
d.3IN2S
Ans- +
1=. A 4444 is a )!e$y inside a )!e$y.
a.s!+)!e$y
+.+ase)!e$y
".join
d.set )!e$y
Ans- a
1A. INSERT INTO PROD21T SELE1T H 5RO3 P: is an eCa&p#e of a 4444.
a. join
+.s!+)!e$y
". set ope$ato$
d.sto$ed p$o"ed!$e
Ans- +
,B. ADnE 4444 is a +#o"> of "ode D"ontainin' standa$d S0L state&ents and p$o"ed!$a# eCtensionsE
that is sto$ed and eCe"!ted at the D@3S se$%e$.
a.pe$sistent sto$ed &od!#e
+.pe$&anent S0L &od!#e
".S0L state&ent
d.p$o'$a& &anip!#ation "o&&and
Ans- a
,1. ADnE 4444 join $et!$ns not on#y the $os &at"hin' the join "ondition +!t a#so the $os ith
!n&at"hed %a#!es.
a.o!te$
+.inne$
".e)!i*
d."$oss
Ans- a
,,.ADnE 4444 join i## se#e"t on#y the $os ith "o&&on %a#!es in the "o&&on "o#!&nDsE,
eC"#!din' $os ith !n&at"hed %a#!es and d!p#i"ate "o#!&ns.
a.nat!$a#
+."$oss
".f!##
d.o!te$
Ans- a
,.. The 4444 pse!do "o#!&n is !sed to se#e"t the neCt a%ai#a+#e %a#!e f$o& a se)!en"e.
a.12RRVAL
+.NEITVAL
".NEIT
d.GET4NEIT
Ans- a
,/. What type of inne$ join $e)!i$es the !se of a ta+#e )!a#ifie$(
a.2SING
+.NAT2RAL
".E02I*
d.?OIN ON
Ans- a
,8. The fo##oin' S0L state&ent !ses aDnE 4444. SELE1T P41ODE, P4DES1RIPT, P4PRI1E,
V4NA3E 5RO3 PROD21T, VENDOR W6ERE PROD21T.V41ODE 7 VENDOR.V41ODE:
a.set ope$ato$
+.nat!$a# join
".Jo#d*sty#eJ join
d.p$o"ed!$a# state&ent
Ans- "
,9. What type of s!+)!e$y "o!#d +e !sed in p#a"e of INTERSE1T if the RD@3S does not s!ppo$t
it(
a.IN
+.5
".AND
d.2NION
Ans- a
,;. 1o&p#ete the fo##oin' inne$ join- SELE1T H 5RO3 T1 ?OIN T, 4444 D11E
a. O5
+. 2SING
" 6AS
d. ?OIN ON
Ans- +
,=. What type of s!+)!e$y "o!#d +e !sed in p#a"e of 3IN2S if the RD@3S does not s!ppo$t it(
a.IN
+.NOT IN
".AND
d.2NION
Ans- +
,A. If yo! ish to "$eate an inne$ join +!t the to ta+#es do not ha%e a "o&&on#y na&ed att$i+!te,
yo! "an !se aDnE 4444 "#a!se.
a.O5
+.2SING
".6AS
d.?OIN ON
Ans- +
.B. Ass!&e yo! a$e !sin' the 2NION ALL state&ent to "o&+ine the $es!#ts f$o& to identi"a#
ta+#es 12STO3ER and 12STO3ER4,. The 12STO3ER ta+#e "ontains 1B $os, hi#e the
12STO3ER4, ta+#e "ontains se%en $os. The$e a$e to "!sto&e$s in"#!ded in +oth ta+#es. 6o
&any $e"o$ds a$e $et!$ned hen !sin' the 2NION ALL state&ent(
a.;
+.1B
".18
d.1;
Ans- d
.1. Ass!&e yo! a$e !sin' the 2NION state&ent to "o&+ine the $es!#ts f$o& to identi"a# ta+#es
12STO3ER and 12STO3ER4,. The 12STO3ER ta+#e "ontains 1B $os, hi#e the
12STO3ER4, ta+#e "ontains se%en $os. The$e a$e to "!sto&e$s in"#!ded in +oth ta+#es. 6o
&any $e"o$ds a$e $et!$ned hen !sin' the 2NION state&ent(
a.;
+.1B
".18
d.1;
Ans- "
.,. 6o sho!#d a &any*to*&any $e#ationship +e hand#ed(
a.@y addin' an join entity ta+#e
+. @y addin' inte$se"tion entity ta+#e
". @y addin' !nion entity ta+#e
d. @y addin' 1a$tesian entity ta+#e
Ans- +
3.. A 2NION )!e$y is hi"h of the fo##oin'(
a. 1o&+ines the o!tp!t f$o& no &o$e than to )!e$ies and &!st in"#!de the sa&e n!&+e$ of
"o#!&ns.
+. 1o&+ines the o!tp!t f$o& no &o$e than to )!e$ies and does not in"#!de the sa&e n!&+e$ of
"o#!&ns.
". 1o&+ines the o!tp!t f$o& &!#tip#e )!e$ies and &!st in"#!de the sa&e n!&+e$ of "o#!&ns.
d. 1o&+ines the o!tp!t f$o& &!#tip#e )!e$ies and does not in"#!de the sa&e n!&+e$ of "o#!&ns.
Ans- "
3/. O!t of the +e#o data types hi"h "an +e !sed fo$ date and ti&e type
a. Date
+. Date and Ti&e offset
". Ti&e
d. A##
Ans-d
.8. What is the ISO synony& fo$ neCt date type.
a. Ne TeCt
+. NeCt teCt
". Nationa# teCt
d. None of the a+o%e.
Ans- "
.9. The S0L )!e$y to $et$ie%e "!$$ent ti&e in O$a"#e is
a.Se#e"t SysTi&e f$o& d!a#
+.Se#e"t SysDate f$o& d!a#
". Se#e"t TO416AR DSysDate,K66-3I-SSKE f$o& d!a#
d. Se#e"t TO416AR DSysDate,K66-33-SSKE f$o& d!a#
e. @oth D"E and DdE
Ans- "
.;. Re'!#a$ sets a$e "#osed !nde$ !nion,"on"atenation and >#eene "#os!$e.
a. T$!e
+. 5a#se
". Depends on $e'!#a$ set
d. 1anKt say
Ans- a
.=.If L1 and L, a$e $e'!#a$ sets then inte$se"tion of these to i## +e
a. Re'!#a$
+. Non Re'!#a$
". Re"!$si%e
d. Non Re"!$si%e
Ans- a
.A. The join >eyo$d is in"#!ded in hi"h of the fo##oin' "#a!ses(
a.SELE1T
+.W6ERE
".5RO3
D.ORDER @<
Ans- "
/B. Whi"h of the fo##oin' type of joins $efe$"e to $es!#t "onsistin' of ea"h $o f$o& the fi$st ta+#e
+ein' $ep#i"ated f$o& e%e$y $o in the se"ond ta+#e
a. o!te$ join
+. se#f join
". non*e)!a#ity join
d. "a$tesian join
Ans- d
/1. hi"h of the fo##oin' is !sed to "$eate an o!te$ join in a W6ERE "#a!se
a. 5!## o!te$ join
+. Left o!te$ join
". Ri'ht o!te$ join
d. o!te$ join ope$ato$DLE
Ans- d
/,. Whi"h of the fo##oin' >eyo$d is !sed to "$eate a "a$tesian join(
a. o!te$ join
+. Nat!$a# join
". 1$oss join
d. join...!sin'
Ans- "
/.. A join +ased !pon a "o#!&n f$o& ea"h ta+#e "ontainin' e)!i%a#ent data is >non as aDnE
a. ine)!a#ity join
+. e)!a#ity join
". o!te$ join
d. a## of the a+o%e
Ans- +
//. Whi"h of the fo##oin' >eyo$d is !sed to "$eate a e)!a#ity join(
a. Nat!$a# join
+. join..!sin'
". join..on
d. a## of the a+o%e
Ans- d
/8. Whi"h of the fo##oin' >eyo$d is !sed to join to ta+#es that do not "ontained a "o&&on
na&ed and defined "o#!&n(
a. Nat!$a# join
+. join..!sin'
". join..on
d. a## of the a+o%e
Ans- "
/9. A ta+#e a#ias "annot +e assi'hned in the 5RO3 "#a!se if hi"h of the fo##oin' >eyo$ds is
!sed to join ta+#es
a. Nat!$a# join
+. join..!sin'
". join..on
d. a## of the a+o%e
Ans- a
/;. If yo! a$e atte&ptin' to join to ta+#es that ha%e &!#tip#e "o&&on "o#!&ns hi"h of the
fo##oin' ?OIN >eyo$d sho!#d +e !sed to spe"ify ho the ta+#es sho!#d +e #in>ed(
a. Nat!$a# join
+. join..!sin'
". join..on
d. a## of the a+o%e
Ans- +
/=. Whi"h of the fo##oin' "an on#y !sed to #in> ta+#es that ha%e a "o&&on "o#!&n(
a. Nat!$a# join
+. join..!sin'
". join..on
d. a## of the a+o%e
Ans- a
/A. The o!te$ join ope$ato$ in the W6ERE "#a!se "annot +e !sed ith hi"h of the fo##oon'
ope$ato$s(
a. IN
+. AND
". OR
d. +oth a and "
Ans- d
8B. ADnE ***** is !sed to "o&+ine the $es!#ts of to )!e$ies
a."on"atenation ope$ato$
+."o&pa$ision ope$ato$
". set ope$ato$
d. #o'i"a# ope$ato$
Ans- "
81. Whi"h of the fo##oin' set ope$ato$s "an +e !sed to &a>e "e$tain the on#y the $os $et!$ned +y
+oth )!e$ies a$e disp#ayed in the $es!#ts(
a. 2NION
+. INTERSE1T
". 3IN2S
d. 2NION ALL
Ans- +
8,. Whi"h of the fo##oin' set ope$ato$s i## disp#ay the $es!#ts of the "o&+ined S0L state&ents
itho!t s!pp$essin' d!p#i"ate $os(
a. 2NION
+. INTERSE1T
". 3IN2S
d. 2NION ALL
Ans- d
8.. Whi"h of the fo##oin' set ope$ato$s i## disp#ay on#y the !ni)!e $es!#ts of the "o&+ined S0L
state&ents(
a. 2NION
+. INTERSE1T
". 3IN2S
d. 2NION ALL
Ans- a
8/. Whi"h of the fo##oin' )!e$ies i## disp#ay data f$o& +oth the ORDRES and 12STO3ERS
ta+#es(
a. se#e"t H f$o& o$de$s, "!sto&e$s
+. se#e"t #astna&e, fi$stna&e, o$de$M f$o& o$de$s NAT2RAL ?OIN "!sto&e$s
". se#e"t #astna&e, fi$stna&e, o$de$M f$o& o$de$s ,"!sto&e$s he$e
o$de$s."!sto&e$M7"!sto&e$s."!sto&e$M
d. A## of the a+o%e.
89. Whi"h data type is !sed to a##os the ti&e to +e sto$ed as a date ith f$a"tiona# se"onds(
a. TI3ESTA3P
+. DATESTA3P
". DATETI3E
d. TI3EINTERVAL
Ans- a
8;. Whi"h data type a##os ti&e to +e sto$ed as an inte$%a# of yea$s and &onths.
a. INTERVAL <EAR TO 3ONT6
+. INTERVAL 3ONT6 TO DA<
". INTERVAL <EAR TO DA<
D. INTERVAL DA< TO TI3ENONE
Ans- a
8=. Whi"h data type a##os ti&e to +e sto$ed as an inte$%a# of days to ho!$s, &in!tes, and
se"onds.
a. INTERVAL <EAR TO 3ONT6
+. INTERVAL 3ONT6 TO DA<
". INTERVAL <EAR TO DA<
D. INTERVAL DA< TO SE1OND
Ans- d
8A. The TI3ESTA3P data type is an eCtension of the ****** data type(
a. DATE
+. TI3E
". DA<
d. SE1OND
Ans- a
9B. ****** sto$es pe$iod of ti&e in te$&s of days, ho!$s, &in!tes, and se"onds.
a. INTERVAL DA< TO SE1OND
+. INTERVAL DA< TO TI3E
". INTERVAL SE1OND TO 6O2R
d. INTERVAL 3IN2TES TO SE1ONDS
Ans- a
91. ***** sto$es a pe$iod of ti&e !sin' the yea$ and &onth dateti&e fie#s.
a. INTERVAL <EAR TO 3ONT6
+. INTERVAL 3ONT6 TO DA<
". INTERVAL <EAR TO DA<
D. INTERVAL DA< TO SE1OND
Ans- a
9,. ***** is anothe$ %a$iant of TI3ESTA3P that in"#!des a ti&eOone diap#a"e&ent in its %a#!e.
a. TI3ESTA3P WIT6 LO1AL TI3E
+. TI3ESTA3P WIT6 LO1AL DA<
". TI3ESTA3P WIT6 LO1AL SE1OND
d. TI3ESTA3P WIT6 LO1AL <EAR
Ans- a
9.. Data sto$ed in the data+ase is no$&a#iOed to the ***** ti&e Oone
a. data+ase
+. syste&
". !se$
d. none of the a+o%e
Ans- a
9/. The ti&e Oone disp#a"e&ent is not sto$ed as pa$t of the "o#!&n data: O$a"#e $et!$ns the data in
the !se$sP****
a. data+ase ti&e Oone
+. #o"a# session ti&e Oone
". syste& ti&e Oone
d. A## of the a+o%e
Ans- +
98. 2se the **** option to &a$> one o$ &o$e "o#!&ns a$e !n!sed.
a. SET 2N2SED
+. DROP 2N2SED
". @oth a and +
d. none of the a+o%e
Ans- a
99. 2se the ***** option to $e&o%e the "o#!&ns that a$e &a$>ed as !n!sed.
a. SET 2N2SED
+. DROP 2N2SED
". @oth a and +
d. none of the a+o%e
Ans- +
9;. We "annot $o## +a"> $o $e&o%a# hen !sin' *****
a. TR2N1ATE
+. DELETE
". DROP
d. None of the a+o%e
Ans- a
9=. Whi"h is !sed to $e#ease the sto$a'e spa"e !sed +y the ta+#es*)!e$yin'
a. TR2N1ATE
+. DELETE
". DROP
d. None of the a+o%e
Ans- a
9A. Whi"h state&ent $e&o%es the definition of an O$a"#e ta+#e.
a. DROP TA@LE
+. DELETE TA@LE
". TR2N1ATE TA@LE
d. A## of the a+o%e
Ans- a
;B. hi"h state&ent is !sed to $e&o%es the $os and ta+#e st$!"t!$e(
a. DELETE TA@LE
+. DROP TA@LE
". TR2N1ATE TA@LE
d. A## of the a+o%e
Ans- +
;1. .1=. What TR2N1ATE and DELETE "o&&ands does
A.To $et$ie%e $os in a ta+#e
@.To $e&o%e so&e pa$t of a ta+#e
1.To 'et $id of a## $os in a ta+#e.
D.To $e"o%e$ a## the $os de#eted in a ta+#e.
Ans- 1
;,. Ta+#es in $e"y"#e +in "an +e $eso#%ed +a"> into data+ase +y !sin'.
A. 5#ash+a">
@. 5#ash+a"> D$op
1. Re%o>e
D. Re%o>e4Ta+#e
Ans- +
;.. P$i%i#e'es a$e assi'ned to !se$s th$o!'h 44444444444444.
a. D@A
+. Ro#e
". Ta+#e
d. Di"tiona$y
Ans- +
;/. What S<STE3 VARIA@LE is !sed to $efe$ DATA@ASE TI3E (
a QQd+ti&eQQ
+ QQti&eQQ
" QQdateti&eQQ
d None of the a+o%e
Ans - a
;A. S<STE3.E55E1TIVE.DATE %a$ai+#e is
a. Read on#y
+. Read R W$ite
". W$ite on#y
d. None of the a+o%e
Ans - "
=B. What does the TR2N1ATE state&ent do(
a. $e&o%es the ta+#e
+. $e&o%es a## $os f$o& a ta+#e
". sho$tens the ta#e to 1B $os
d. $e&o%es a## "o#!&ns f$o& a ta+#e
Ans- +
81. Whi"h of the fo##oin' "o$$e"t#y shos the "o$$e"t !se of the TR2N1 "o&&and on a date(
a. A. SELE1T TR2N1DTO4DATED1,*5e+*AA,DD*3ON*<<, S<EARKEE FDate G 5RO3 D2AL:
+. TR2N1 7 TO4DATEDK1,*5e+*AAT,KDD*3ON*<<KE, S<EARK, FDate G 5RO3 D2AL:
". SELE1T TR2N1DTO4DATEDK1,*5e+*AAT,KDD*3ON*<<KE, S<EARKE FDate G 5RO3 D2AL:
d. date 7 TR2N1DTO4DATEDK1,*5e+*AAT,KDD*3ON*<<KE, S<EARKE FDate G 5RO3 D2AL
Ans- "
=,. Whi"h to state&ents a""!$ate#y des"$i+e a $o#e(
a. a $o#e "an +e 'i%en to a &aCi&!& of 1BBB !se$s
+. a !se$ "an ha%e a""ess to a &aCi&!& of 1B $o#es
". A $o#e "an ha%e a &aCi&!& of 1BB p$i%i#e'es "ontained in it.
d. P$i%i#e'es a$e 'i%en to a $o#e +y !sin' the 1REATE ROLE state&ent.
e. A $o#e is a na&ed '$o!p of $e#ated p$i%i#e'es that "an +e '$anted to the !se$
f. A !se$ "an ha%e a""ess to se%e$a# $o#es, and se%e$a# !se$s "an +e assi'ned the sa&e $o#e.
Ans- e,f
8.. Whi"h S0L state&ent o!#d yo! !se to $e&o%e a %ie "a##ed E3P4DEPT4V2 f$o& yo!$
s"he&a(
A. DROP e&p4dept4%!:
@. DELETE e&p4dept4%!:
1. RE3OVE e&p4dept4%!:
D. DROP VIEW e&p4dept4%!:
Ans- d
=/. When sho!#d yo! "$eate a $o#e(
a. to si&p#ify the p$o"ess of "$eatin' ne !se$s !sin' the 1REATE 2SER CCC IDENTI5IED +y yyyy
state&ent
+. to '$ant a '$o!p of $e#ated p$i%i#e'es to a !se$
". When the n!&+e$ of peop#e !sin' the data+ase is %e$y hi'h
d. to si&p#ify the p$o"ess of '$antin' and $e%o>in' p$i%i#e'es
e. To si&p#ify p$ofi#e &aintenan"e fo$ a !se$ ho is "onstant#y t$a%e#in'.
Ans- +,d
=8. Whi"h data di"tiona$y ta+#e sho!#d yo! )!e$y to %ie the o+je"t p$i%i#e'es '$anted to the !se$
on spe"ifi" "o#!&ns( U O$a"#e
a. 2SER4TA@4PRIVS43ADE
@. 2SER4TA@4PRIVS
1. 2SER41OL4PRIVS43ADE
D. 2SER41OL4PRIVS
Ans- d
=9. <o! a$e '$anted the 1REATE VIEW p$i%i#e'e. What does this a##o yo! to do(
a. "$eate a ta+#e %ie
+. "$eate a %ie in any s"he&e
". "$eate a %ie in yo!$ s"he&a
d. "$eate a se)!en"e %ie in any s"he&a
Ans- "
=;. 3a$y has a %ie "a##ed E3P4DEPT4LO14V2 that as "$eated +ased on the E3PLO<EES,
DEPART3ENTS, and LO1ATIONS ta+#es. She '$anted SELE1T p$i%i#e'e to S"ott on this %ie.
Whi"h option ena+#es S"ott to e#i&inate the need to )!a#ify the %ie ith the na&e
3AR<.E3P4DEPT4LO14V2 ea"h ti&e the %ie is $efe$en"ed(
a. S"ott "an "$eate a synony& fo$ the E3P4DEPT4LO14V2 +y !sin' the "o&&and 1REATE
PRIVATE S<NON<3 EDL4V2 5OR &a$y.E3P DEPT4LO14V2: then he "an p$efiC the "o#!&ns
ith this synony&
+. S"ott "an "$eate a synony& fo$ the E3P4DEPT4LO14V2 +y !sin' the "o&&and 1REATE
S<NON<3 EDL4V2 5OR &a$y.E3P DEPT4LO14V2: then he "an p$efiC the "o#!&ns ith this
synony&.
". S"ott "an "$eate a synony& fo$ the E3P4DEPT4LO14V2 +y !sin' the "o&&and 1REATE
LO1AL S<NON<3 EDL4V2 5OR &a$y.e&p dept4LO14!%: then he "an p$efiC the "o#!&ns ith
the synony&.
d. S"ott "an "$eate a synony& fo$ the E3P4DEPT4LO14V2 +y !sin' the "o&&and 1REATE
LO1AL S<NON<3 EDL4V2 ON 3a$yDE3P4DEPT4LO14V2E: then he "an p$efiC the "o#!&ns
ith this synony&
Ans- +
==. Whi"h o+je"t p$i%i#e'es "an +e '$anted on a %ie(
a. none
+. DELETE, INSERT, SELE1T
". ALTER, DELETE, INSERT, SELE1T
d. DELETE, INSERT, SELE1T, 2PDATE
Ans- d
=A. What is t$!e a+o!t the WIT6 GRANT OPTION "#a!se(
a. It a##os a '$antee D@A p$i%i#e'es
+. It is $e)!i$ed syntaC fo$ o+je"t p$i%i#e'es
". It a##os p$i%i#e'es on spe"ified "o#!&ns of ta+#es
d. It is !sed to '$ant an o+je"t p$i%i#e'e on a fo$ei'n >ey "o#!&n
e. It a##os the '$antee to '$ant o+je"t p$i%i#e'es to othe$ !se$s and $o#es
Ans- e
AB. 3a$> fo$ $e%ie The D@A iss!es this S0L "o&&and- 1REATE 2SER S"ott IDENTI5IED +y
ti'e$: hat p$i%i#e'es do the !se$ S"ott has at this point(
a. no p$i%i#e'es
+. on#y the SELE1T p$i%i#e'e
". on#y the 1ONNE1T p$i%i#e'e
d. a## the p$i%i#e'es of a defa!#t !se$
Ans- a
A1. 3a$> fo$ $e%ie ECa&ine these state&ents- 1REATE ROLE $e'ist$a$: GRANT 2PDATE ON
st!dent4'$ades TO $e'ist$a$: GRANT $e'ist$a$ to !se$1, !se$,, !se$.: What does this set of S0L
state&ents do(
a. The set of state&ents "ontains an e$$o$ and does not o$>.
+. It "$eates a $o#e "a##ed REGISTRAR, adds the 3ODI5< p$i%i#e'e on the ST2DENT4GRADES
o+je"t to the $o#e, and 'i%es the REGISTRAR $o#e to th$ee !se$s.
". It "$eates a $o#e "a##ed REGISTRAR, adds the 2PDATE p$i%i#e'e on the ST2DENT4GRADES
o+je"t to the $o#e, and 'i%es the REGISTRAR $o#e to th$ee !se$s.
d. It "$eates a $o#e "a##ed REGISTRAR, adds the 2PDATE p$i%i#e'e on the ST2DENT4GRADES
o+je"t to the $o#e, and "$eates th$ee !se$s ith the $o#e.
Ans- "
A,. S"ott iss!es the S0L state&ents- 1REATE TA@LE dept Ddeptno n!&+e$ D,E dna&e
VAR16AR, D1/E #o" VAR16AR, D1.EE: GRANT SELE1T ON DEPT TO S2E: If S!e needs to
se#e"t f$o& S"ottKs DEPT ta+#e, hi"h "o&&and sho!#d she !se(
a. SELE1T H 5RO3 DEPT
+. SELE1T H 5RO3 S1OTT.DEPT
". SELE1T H 5RO3 [email protected].
d. SELE1T H 5RO3 ALL42SERS W6ERE 2SER4NA3E 7 SS1OTTK AND TA@LE NA3E7 SDEPTK:
Ans- +
A.. 3a$> fo$ $e%ie. The !se$ A#i"e ants to '$ant a## !se$s )!e$y p$i%i#e'es on he$ DEPT ta+#e.
Whi"h S0L state&ent a""o&p#ishes this(
a. GRANT se#e"t ON dept TO ALL42SERS:
+. GRANT se#e"t ON dept TO ALL:
". GRANT 02ER< ON dept TO ALL42SERS
d. GRANT se#e"t ON dept TO P2@LI1:
Ans- d
A/. <o! a$e the D@A fo$ an a"ade&i" data+ase. <o! need to "$eate a $o#e that a##os a '$o!p of
!se$s to &odify eCistin' $os in the ST2DENT4GRADES ta+#e. Whi"h set of state&ents
a""o&p#ishes this(
a. 1REATE ROLE $e'ist$a$: GRANT 3ODI5< ON st!dent4'$ades TO $e'ist$a$: GRANT $e'ist$a$
to !se$1, !se$,, !se$.
+. 1REATE NEW ROLE $e'ist$a$: GRANT ALL ON st!dent4'$ades TO $e'ist$a$: GRANT $e'ist$a$
to !se$1, !se$,, !se$.
". 1REATE ROLE $e'ist$a$: GRANT 2PDATE ON st!dent4'$ades TO $e'ist$a$: GRANT ROLE
$e'ist$a$ to !se$1, !se$,, !se$.
d. 1REATE ROLE $e'ist$a$: GRANT 2PDATE ON st!dent4'$ades TO $e'ist$a$: GRANT $e'ist$a$
to !se$1, !se$,, !se$.:
Ans- d
A8. <o! need to 'i%e the 3ANAGER $o#e the a+i#ity to se#e"t f$o&, inse$t into, and &odify
eCistin' $os in the ST2DENT4GRADES ta+#e. Anyone 'i%en this 3ANAGER $o#e sho!#d +e a+#e
to pass those p$i%i#e'es on to othe$s. Whi"h state&ent a""o&p#ishes this(
a.GRANT se#e"t, inse$t, !pdate
ON st!dent4'$ades
TO &ana'e$:
+.GRANT se#e"t, inse$t, !pdate
ON st!dent4'$ades
TO ROLE &ana'e$:
".GRANT se#e"t, inse$t, &odify
ON st!dent4'$ades
TO &ana'e$
WIT6 GRANT OPTION:
d.GRANT se#e"t, inse$t, !pdate
ON st!dent4'$ades
TO &ana'e$
WIT6 GRANT OPTION:
e.GRANT se#e"t, inse$t, !pdate
ON st!dent4'$ades
TO ROLE &ana'e$
WIT6 GRANT OPTION:
f.5.GRANT se#e"t, inse$t, &odify
ON st!dent4'$ades
TO ROLE &ana'e$
WIT6 GRANT OPTION:
Ans- d
A9. What a$e the p$i%i#e'es that "an +e '$anted on a ta+#e +y a !se$ to othe$s(
a. Inse$t, Se#e"t
+. 2pdate, $efe$en"es
". De#ete,IndeC, A#te$
d. A## of the a+o%e
Ans- d
A;. What "o&&and is !sed to 'et +a"> the p$i%i#e'es offe$ed +y the GRANT "o&&and(
a. Inse$t
+. De#ete
". T$!n"ate
d. REVOVE
Ans- d
A= .Whi"h syste& ta+#es "ontain info$&ation on p$i%i#e'es '$anted and p$i%i#e'es o+tained(
a. 2SER4TA@4PRIVS43ADE, 2SER4TA@4PRIVS4RE1D.
+. 2SER4TA@4PRIVS43ADE, 2SER4TA@4GRANT4RE1D.
". 2SER4TA@4REVOV43ADE, 2SER4TA@4PRIVS4RE1D.
d. 2SER4TA@4PRIVS43ADE, 2SER4TA@4REVOV4RE1D.
Ans- a
AA. It is %e$y diffi"!#t to '$ant and &ana'e "o&&on p$i%i#e'es needed +y diffe$ent '$o!ps of
data+ase !se$s !sin' the $o#es
a. T$!e
+. 5a#se
Ans - 5a#se
1BB. The******* state&ent is $e#ated to GRANT and ena+#es ad&inist$ato$s to $e&o%e a""o!nt
p$i%i#e'es.
a. REVOVE
+.ROLE
".INSERT
d. SELE1T
Ans- a
1B1. The $e#ationship +eteen the entities in%o#%ed in !se$ &ana'e&ent "an +e
(More than one answer is correct)
a. A $o#e is !sed to '$ant a!tho$iOation to "a$$y o!t ope$ations on data+ase o+je"ts, s!"h
as s"he&as, ta+#es, and %ies.
+. A p$in"ipa# is eithe$ a $o#e o$ a !se$.
". A >non !se$ "an #o' on to the data+ase. A !se$ "an +e the one$ of data+ase o+je"ts.
d. A $o#e is a "o##e"tion of p$i%i#e'es and "an +e '$anted to eithe$ a !se$ o$ anothe$ $o#e
Dnestin'E.
Ans- +, ", d
1B,. An o+je"t "an on#y +e a""essed +y the fo##oin' !se$s-
(More than one answer is correct)
a. 2se$s to ho& the one$ of the pa$ent s"he&a has '$anted p$i%i#e'es
+. The one$ of the s"he&a in hi"h the o+je"t is #o"ated
". 2se$s to ho& the one$ of the o+je"t has '$anted p$i%i#e'es
Ans- a, +, "
1B.. SAP 6ANA offe$s diffe$ent types of p$i%i#e'es. Whi"h if the fo##oin' is NOT a p$i%i#e'e offe$ed
+y SAP 6ANA.
a. Syste& p$i%i#e'e
+. O+je"t p$i%i#e'e
". Data+ase p$i%i#e'e
d. Ana#yti" p$i%i#e'e
Ans- "
1B/. What a$e %a$io!s p$i%i#e'es that a !se$ "an '$ant to anothe$ !se$(
a. SELE1T
+. 1ONNE1T
". RESO2R1ES
Ans- a,+,"
1B8.TR2N1ATE TA@LE state&ent
a. D$ops a ta+#e te&po$a$i#y
+. Re&o%es a## $os of a ta+#e
". Re&o%es spe"ified n!&+e$ of $os f$o& a ta+#e
d. Re&o%es a## "onst$aints f$o& a ta+#e
Ans- +
1B9. P$i%i#e'es a$e assi'ned to !se$s th$o!'h 44444444444444.
a. D@A
+. Ro#e
". Ta+#e
d. Di"tiona$y
Ans- +
1B;. The S0L )!e$y to $et$ie%e "!$$ent ti&e in O$a"#e is
a. Se#e"t SysTi&e f$o& d!a#
+. Se#e"t SysDate f$o& d!a#
". Se#e"t TO416AR DSysDate,K66-3I-SSKE f$o& d!a#
d. Se#e"t TO416AR DSysDate,K66-33-SSKE f$o& d!a#
e. @oth " and d
Ans- "