You are on page 1of 80

Semester 1 Final Term Exam covers Sections 11-18 of Database Design. Section 12 1.

One-to-One relationships are transformed into hec! onstraints in the tables created at either end of that relationship. Tr"e or False# $ar! for %evie& '1( )oints Tr"e False '*( orrect 2. The Oracle Database can implement a man+ to man+ relationship. ,o" simpl+ create t&o foreign !e+s bet&een the t&o tables. Tr"e or False# $ar! for %evie& '1( )oints Tr"e False '*( -ncorrect. %efer to Section 12 .. /h+ &o"ld this table name 0OT &or! in an Oracle database# this1+ear1end2next1+ear $ar! for %evie& '1( )oints Table names m"st begin &ith an alphabetic character Too long The )l"s sign 2 is not allo&ed in ob3ect names '*( 0one of the above -ncorrect. %efer to Section 12 4. -n a ph+sical data model5 an attrib"te becomes a 1111111111111. $ar! for %evie& '1( )oints Table Foreign 6e+ onstraint

ol"mn '*( orrect 7. -n a ph+sical data model5 a relationship is represented as a combination of8 ' hoose T&o( $ar! for %evie& '1( )oints ' hoose all correct ans&ers( ol"mn )rimar+ 6e+ or 9ni:"e 6e+ '*( hec! onstraint or 9ni:"e 6e+ Foreign 6e+ '*( -ncorrect. %efer to Section 12 ;. -dentif+ all of the incorrect statements that complete this sentence8 < primar+ !e+ is8 ' hoose three( $ar! for %evie& '1( )oints ' hoose all correct ans&ers( < single col"mn that "ni:"el+ identifies each col"mn in a table '*( One or more col"mns in a table that "ni:"el+ identifies each ro& in that table < set of col"mns in one table that "ni:"el+ identifies each ro& in another table '*( Onl+ one col"mn that m"st be n"ll '*( -ncorrect. %efer to Section 12 =. The explanation belo& is a col"mn integrit+ constraint8 < col"mn m"st contain onl+ val"es consistent &ith the defined data format of the col"mn. Tr"e or False# $ar! for %evie& '1( )oints Tr"e '*( False

orrect 8. Foreign !e+s m"st be n"ll. Tr"e or False# $ar! for %evie& '1( )oints Tr"e False '*( orrect >. The explanation belo& is a 9ser Defined integrit+ r"le and m"st therefore be man"all+ coded5 the Database cannot enforce this r"le a"tomaticall+8 < primar+ !e+ m"st be "ni:"e5 and no part of the primar+ !e+ can be n"ll. Tr"e or False# $ar! for %evie& '1( )oints Tr"e False '*( -ncorrect. %efer to Section 12 1?. /hen translating an arc relationship to a ph+sical design5 +o" m"st t"rn the arc relationships into foreign !e+s. <ss"ming +o" are implementing an Excl"sive Design5 +o" m"st also create t&o 9ni:"e 6e+ onstraints to ens"re the <rc is implemented correctl+. Tr"e or False# $ar! for %evie& '1( )oints Tr"e False '*( -ncorrect. %efer to Section 12 )age 1 of 7 Test8 Final Exam Semester 1 %evie& +o"r ans&ers5 feedbac!5 and :"estion scores belo&. <n asteris! '*( indicates a correct ans&er. Semester 1 Final Term Exam covers Sections 11-18 of Database Design. Section 12

11. /hich of the follo&ing are reasons &h+ +o" sho"ld consider "sing a S"bt+pe -mplementation# $ar! for %evie& '1( )oints The res"lting table &ill reside in a single database and be "sed b+ 3"st O0E "ser. /hen the common access paths for the s"pert+pes are different. @"siness f"nctionalit+ and b"siness r"les5 access paths and fre:"enc+ of access are all ver+ different bet&een s"bt+pes. '*( $ost of the relationships are at the s"pert+pe level -ncorrect. %efer to Section 12 Section 1. 12. The 1111111 cla"se can be added to a SEAE T statement to ret"rn a s"bset of the data. $ar! for %evie& '1( )oints <0,/BE%E /B- B /BE%E '*( ECE%, orrect. 1.. /hat command can be "sed to create a ne& ro& in a table in the database# $ar! for %evie& '1( )oints %E<TE 0E/ <DD -0SE%T '*( orrect. Section 1;

14. ,o" &ant to create a list of all alb"ms that have been prod"ced b+ the compan+. The list sho"ld incl"de the title of the alb"m5 the artistDs name5 and the date the alb"m &as released. The <A@9$S table incl"des the follo&ing col"mns8 <A@1T-TAE C<% B<%2'17?( 0OT 09AA <A@1<%T-ST C<% B<%2'17?( 0OT 09AA <A@1D<TE D<TE 0OT 09AA /hich statement can +o" "se to retrieve the necessar+ information# $ar! for %evie& '1( )oints SEAE T * F%O$ alb"msE '*( SEAE T alb1title5 alb1artist5 alb1dates F%O$ alb"mE SEAE T alb1title5 alb1artist5 alb1dates F%O$ alb"msE SEAE T alb1titleE alb1artistE alb1date F%O$ alb"msE -ncorrect. See Section 1; 17. -n a SEAE T cla"se5 &hat is the res"lt of 2 2 . * 2# $ar! for %evie& '1( )oints ; 8 '*( 1? 1. orrect. 1;. /hich SFA !e+&ord specifies that an alias &ill be s"bstit"ted for a col"mn name in the o"tp"t of a SFA :"er+# $ar! for %evie& '1( )oints <S '*(

O% <0D S9@ST-T9TE orrect. 1=. /hen +o" "se the SEAE T cla"se to list one or t&o col"mns onl+ from a table and no /BE%E cla"se5 &hich SFA capabilit+ is "sed# $ar! for %evie& '1( )oints Goining onl+ Selection onl+ )ro3ection onl+ '*( )ro3ection and Selection -ncorrect. See Section 1; 18. /hen listing col"mns in the SEAE T list5 &hat sho"ld +o" "se to separate the col"mns# $ar! for %evie& '1( )oints ommas '*( Semicolons Dashes 9nderscores orrect. 1>. -n &hich cla"se of a SEAE T statement &o"ld +o" specif+ the name of the table or tables being :"eried# $ar! for %evie& '1( )oints The F%O$ cla"se '*( The SEAE T cla"se The /BE%E cla"se

<n+ of the above options5 +o" can list tables &herever +o" &ant to in a SEAE T statement. orrect. 2?. The SEAE T statement retrieves information from the database. -n a SEAE T statement5 +o" can do all of the follo&ing EH E)T8 $ar! for %evie& '1( )oints )ro3ection $anip"lation '*( Goining Selection -ncorrect. See Section 1; )age 2 of 7 Test8 Final Exam Semester 1 %evie& +o"r ans&ers5 feedbac!5 and :"estion scores belo&. <n asteris! '*( indicates a correct ans&er. Semester 1 Final Term Exam covers Sections 11-18 of Database Design. Section 1; 21. -n a SEAE T statement <dditions are eval"ated before $"ltiplications. Tr"e or False# $ar! for %evie& '1( )oints Tr"e False '*( orrect. 22. ,o" cannot "se comp"ters "nless +o" completel+ "nderstand exactl+ ho& the+ &or!. Tr"e or False# $ar! for %evie& '1( )oints Tr"e False '*(

-ncorrect. See Section 1; Section 1= 2.. The ST9DE0T table contains these col"mns8 ST9DE0T1-D 09$@E%'1?( )rimar+ 6e+ A<ST10<$E C<% B<%2'27( F-%ST10<$E C<% B<%2'27( $<-01S9@GE T1-D 09$@E%'.( <DC-SO%1-D 09$@E%'7( Eval"ate this statement8 SEAE T D-ST-0 T advisor1id5 main1s"b3ect1id F%O$ st"dentE /hich statement is tr"e# $ar! for %evie& '1( )oints Each <DC-SO%1-D can be displa+ed onl+ once. Each $<-01S9@GE T1-D can be displa+ed more than once per <DC-SO%1-D. '*( Each combination of <DC-SO%1-D and $<-01S9@GE T1-D can be displa+ed more than once. Each $<-01S9@GE T1-D can be displa+ed onl+ once per :"er+. -ncorrect. See Section 1= 24. ,o" &ant to create a report that displa+s all emplo+ees &ho &ere hired before Gan"ar+ 15 2??? and &hose ann"al salaries are greater than 7????. The E$)AO,EES table contains these col"mns8 E$)AO,EE1-D C<% B<%2'7( )%-$<%, 6E, A<ST10<$E C<% B<%2'.7( B-%ED<TE D<TE DE)<%T$E0T1-D 09$@E%'4( The S<A<%, table contains these col"mns8 S<A<%,-D C<% B<%2'7( )%-$<%, 6E, S<A<%, 09$@E%'75 2( E$)AO,EE1-D C<% B<%2'7( FO%E-I0 6E,

/hich :"er+ sho"ld +o" iss"e# $ar! for %evie& '1( )oints SEAE T last1name5 hiredate5 salar+ F%O$ emplo+ees 0<T9%<A GO-0 salar+ 9S-0I emplo+ee1id /BE%E hiredate J ?1-3an-?? <0D salar+ K 7????E SEAE T last1name5 hiredate5 salar+ F%O$ emplo+ees GO-0 salar+ O0 emplo+ee1id L emplo+ee1id /BE%E hiredate J D?1-3an-??M <0D salar+ K 7????E SEAE T last1name5 hiredate5 salar+ F%O$ emplo+ees 0<T9%<A GO-0 salar+ /BE%E hiredate J D?1-3an-??M <0D salar+ K 7????E '*( SEAE T last1name5 hiredate5 salar+ F%O$ emplo+ees '2( salar+ /BE%E hiredate J D?1-3an-??M <0D salar+ K 7????E -ncorrect 27. The E$)AO,EES table incl"des these col"mns8 E$)AO,EE1-D 09$@E%'4( 0OT 09AA A<ST10<$E C<% B<%2'17( 0OT 09AA F-%ST10<$E C<% B<%2'1?( 0OT 09AA B-%E1D<TE D<TE 0OT 09AA ,o" &ant to prod"ce a report that provides the first names5 last names and hire dates of those emplo+ees &ho &ere hired bet&een $arch 15 2???5 and <"g"st .?5 2???. /hich statements can +o" iss"e to accomplish this tas!# $ar! for %evie& '1( )oints SEAE T last1name5 first1name5 hire1date F%O$ emplo+ees /BE%E hire1date @ET/EE0 D?1-$<%-??M <0D D.?-<9I-??ME '*( SEAE T last1name5 first1name5 hire1date F%O$ emplo+ees /BE%E hire1date @ET/EE0 D.?-<9I-??M <0D D?1-$<%-??ME

SEAE T last1name5 first1name5 hire1date F%O$ emplo+ees I%O9) @, hire1date KL D?1-$<%-??M and hire1date JL D.?- <9I-??ME SEAE T last1name5 first1name5 hire1date F%O$ emplo+ees <0D hire1date KL D?1-$<%-??M and hire1date JL D.?-<9I- ??ME orrect. 2;. ,o" need to displa+ all the val"es in the E$<-A col"mn that contains the "nderscore '1( character as part of that email address. The /BE%E cla"se in +o"r SEAE T statement contains the A-6E operator. /hat m"st +o" incl"de in the A-6E operator# $ar! for %evie& '1( )oints The ES <)E option 'N( and one or more percent signs 'O( The '2( operator < percent sign 'O( The ES <)E option 'N( '*( -ncorrect. See Section 1= 2=. Eval"ate this SEAE T statement8 SEAE T * F%O$ emplo+ees /BE%E department1id -0'1?5 2?5 .?( <0D salar+ K 2????E /hich val"es &o"ld ca"se the logical condition to ret"rn T%9E# $ar! for %evie& '1( )oints DE)<%T$E0T1-D L 1? and S<A<%, L 2???? DE)<%T$E0T1-D L 2? and S<A<%, L 2???? DE)<%T$E0T1-D L n"ll and S<A<%, L 2???1 DE)<%T$E0T1-D L 1? and S<A<%, L 2???1 '*( orrect. See Section 1=

28. -f the E$)AO,EES table has the follo&ing col"mns5 and +o" &ant to &rite a SEAE T statement to ret"rn the emplo+ee last name and department n"mber for emplo+ee n"mber 1=;5 &hich of the follo&ing SFA statements sho"ld +o" "se# 0ame T+pe Aength E$)AO,EE1-D 09$@E% 22 F-%ST10<$E C<% B<%2 2? A<ST10<$E C<% B<%2 27 E$<-A C<% B<%2 27 )BO0E109$@E% C<% B<%2 2? S<A<%, 09$@E% 22 O$$-SS-O01) T 09$@E% 22 $<0<IE%1-D 09$@E% 22 DE)<%T$E0T1-D 09$@E% 22 $ar! for %evie& '1( )oints SEAE T last1name5 department1id F%O$ emplo+ees /BE%E emplo+ee1id L 1=;E '*( SEAE T last1name5 department1id F%O$ emplo+ees /BE%E emplo+ee1id e:"als 1=;E SEAE T first1name5 emplo+ee1id F%O$ emplo+ees /BE%E emplo+ee1id L 1=;E SEAE T last1name5 emplo+ee1id F%O$ emplo+ees /BE%E emplo+ee1id e:"als 1=;E orrect. 2>. Eval"ate this SEAE T statement8 SEAE T last1name5 first1name5 salar+ F%O$ emplo+eesE Bo& &ill the heading for the S<A<%, col"mn appear in the displa+ b+ defa"lt in Oracle <pplication Express# $ar! for %evie& '1( )oints The heading &ill displa+ &ith the first character capitaliPed and centered.

The heading &ill displa+ &ith the first character capitaliPed and left 3"stified. The heading &ill displa+ as "ppercase and centered. '*( The heading &ill displa+ as "ppercase and left 3"stified. orrect. .?. ,o" need &rite a SEAE T statement that sho"ld onl+ ret"rn ro&s that contain .45 4;5 or 48 for the DE)<%T$E0T1-D col"mn. /hich operator sho"ld +o" "se in the /BE%E cla"se to compare the DE)<%T$E0T1-D col"mn to this specific list of val"es# $ar! for %evie& '1( )oints L QL -0 '*( @ET/EE0..<0D.. orrect. )age . of 7 Test8 Final Exam Semester 1 %evie& +o"r ans&ers5 feedbac!5 and :"estion scores belo&. <n asteris! '*( indicates a correct ans&er. Semester 1 Final Term Exam covers Sections 11-18 of Database Design. Section 1= .1. /hich comparison operator searches for a specified character pattern# $ar! for %evie& '1( )oints -0 A-6E '*( @ET/EE0R<0DR -S 09AA -ncorrect. See Section 1=.

.2. /hat does the D-ST-0 T !e+&ord do &hen it is "sed in a SEAE T cla"se# $ar! for %evie& '1( )oints Bides 09AA val"es Eliminates all "ni:"e val"es and compares val"es Eliminates d"plicate ro&s in the res"lt '*( Eliminates onl+ "ni:"e ro&s in the res"lt -ncorrect. See Section 1= ... /hich s+mbol represents the not e:"al to condition# $ar! for %evie& '1( )oints S T2D QL '*( U orrect. .4. /hich of the follo&ing elements cannot be incl"ded in a /BE%E cla"se# $ar! for %evie& '1( )oints < col"mn alias '*( < col"mn name < comparison condition < constant orrect. .7. /here in a SFA statement can +o" not "se arithmetic operators# $ar! for %evie& '1( )oints SEAE T F%O$ '*(

/BE%E 0O0E -ncorrect. See Section 1=. .;. /hich cla"se &o"ld +o" incl"de in a SEAE T statement to restrict the data ret"rned to onl+ the emplo+ees in department 1?# $ar! for %evie& '1( )oints /BE%E '*( F%O$ SEAE T -S orrect. Section 18 .=. /hich of the follo&ing best describes the meaning of the A-6E operator# $ar! for %evie& '1( )oints Displa+ ro&s based on a range of val"es. To test for val"es in a list. $atch a character pattern. '*( To find 0"ll val"es. -ncorrect. See Section 18 .8. The O%DE% @, cla"se al&a+s comes last. Tr"e or False# $ar! for %evie& '1( )oints Tr"e '*( False orrect. .>. /hich of the follo&ing is T%9E regarding the logical <0D operator# $ar! for %evie& '1( )oints

T%9E <0D T%9E ret"rn F<ASE T%9E <0D F<ASE ret"rn T%9E F<ASE <0D T%9E ret"rn 09AA T%9E <0D F<ASE ret"rn F<ASE '*( -ncorrect. See Section 18 4?. /hich cla"se &o"ld +o" incl"de in a SEAE T statement to sort the ro&s ret"rned b+ the A<ST10<$E col"mn# $ar! for %evie& '1( )oints O%DE% @, '*( /BE%E F%O$ B<C-0I -ncorrect. See Section 18 )age 4 of 7 Test8 Final Exam Semester 1 %evie& +o"r ans&ers5 feedbac!5 and :"estion scores belo&. <n asteris! '*( indicates a correct ans&er. Semester 1 Final Term Exam covers Sections 11-18 of Database Design. Section 18 41. /hich comparison condition means VAess Than or E:"al To#W $ar! for %evie& '1( )oints VL(W V2JW VKLW VJLW '*(

orrect. 42. ,o" need to change the defa"lt sort order of the O%DE% @, cla"se so that the data is displa+ed in reverse alphabetical order. /hich !e+&ord sho"ld +o" incl"de in the O%DE% @, cla"se# $ar! for %evie& '1( )oints DES '*( <S SO%T B<0IE orrect. 4.. /hat val"e &ill the follo&ing SFA statement ret"rn# SEAE T emplo+ee1id F%O$ emplo+ees /BE%E emplo+ee1id @ET/EE0 1?? <0D 17? O% emplo+ee1id -0'11>5 1=75 2?7( <0D 'emplo+ee1id @ET/EE0 17? <0D 2??(E $ar! for %evie& '1( )oints 1> 0o ro&s &ill be ret"rned 1??5 1?15 1?25 1?.5 1?45 1?=5 1245 1415 1425 14.5 1445 14> '*( 2??5 2?15 2?25 2?.5 2?45 2?75 2?; orrect. 44. /hich SEAE T statement sho"ld +o" "se to limit the displa+ of prod"ct information to those prod"cts &ith a price of less than 7?# $ar! for %evie& '1( )oints SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts /BE%E price J 7?E '*(

SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts B<C-0I price J 7?E SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts /BE%E price JL 7?E SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts I%O9) @, price J 7?E SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts /BE%E price J 7?.?? I%O9) @, priceE orrect. 47. Eval"ate this SEAE T statement8 SEAE T last1name5 first1name5 department1id5 manager1id F%O$ emplo+eesE ,o" need to sort data b+ manager id val"es and then alphabeticall+ b+ emplo+ee last name and first name val"es. /hich O%DE% @, cla"se co"ld +o" "se# $ar! for %evie& '1( )oints O%DE% @, department1id5 last1name O%DE% @, manager1id5 last1name5 first1name '*( O%DE% @, last1name5 first1name5 manager1id O%DE% @, manager1id5 first1name5 last1name orrect. 4;. Eval"ate this SEAE T statement8 SEAE T * F%O$ emplo+ees /BE%E salar+ K .???? <0D department1id L 1? O% email -S 0OT 09AAE /hich statement is tr"e#

$ar! for %evie& '1( )oints The O% condition &ill be eval"ated before the <0D condition. The <0D condition &ill be eval"ated before the O% condition. '*( The O% and <0D conditions have the same precedence and &ill be eval"ated from left to right The O% and <0D conditions have the same precedence and &ill be eval"ated from right to left orrect. 4=. Eval"ate this SEAE T statement8 SEAE T last1name5 first1name5 email F%O$ emplo+ees O%DE% @, emailE -f the E$<-A col"mn contains n"ll val"es5 &hich statement is tr"e# $ar! for %evie& '1( )oints 0"ll email val"es &ill be displa+ed first in the res"lt. 0"ll email val"es &ill be displa+ed last in the res"lt. '*( 0"ll email val"es &ill not be displa+ed in the res"lt. The res"lt &ill not be sorted. -ncorrectQ See Section 18. 48. Eval"ate this SEAE T statement8 SEAE T * F%O$ emplo+ees /BE%E department1id L .4 O% department1id L 47 O% department1id L ;=E /hich operator is the e:"ivalent of the O% conditions "sed in this SEAE T statement# $ar! for %evie& '1( )oints -0 '*( <0D

A-6E @ET/EE0 R <0D R orrect. 4>. The )A<,E%S table contains these col"mns8 )A<,E%S T<@AE8 A<ST10<$E C<% B<%2 '2?( F-%ST10<$E C<% B<%2 '2?( S<A<%, 09$@E%'852( TE<$1-D 09$@E%'4( $<0<IE%1-D 09$@E%'>( )OS-T-O01-D 09$@E%'4( ,o" m"st displa+ the pla+er name5 team id5 and salar+ for pla+ers &hose salar+ is in the range from 27??? thro"gh 1????? and &hose team id is in the range of 12?? thro"gh 17??. The res"lts m"st be sorted b+ team id from lo&est to highest and then f"rther sorted b+ salar+ from highest to lo&est. /hich statement sho"ld +o" "se to displa+ the desired res"lt# $ar! for %evie& '1( )oints SEAE T last1name5 first1name5 team1id5 salar+ F%O$ pla+ers /BE%E 'salar+ K 27??? O% salar+ J 1?????( <0D team1id @ET/EE0 12?? <0D 17?? O%DE% @, team1id5 salar+E SEAE T last1name5 first1name5 team1id5 salar+ F%O$ pla+ers /BE%E salar+ @ET/EE0 27??? <0D 1????? <0D team1id @ET/EE0 12?? <0D 17?? O%DE% @, team1id5 salar+ DES E '*( SEAE T last1name5 first1name5 team1id5 salar+ F%O$ pla+ers /BE%E salar+ K 24>>>.>> <0D salar+ J 1????? <0D team1id @ET/EE0 12?? <0D 17?? O%DE% @, team1id <S 5 salar+ DES E SEAE T last1name5 first1name5 team1id5 salar+ F%O$ pla+ers /BE%E salar+ @ET/EE0 24>>>.>> <0D 1?????.?1 <0D team1id @ET/EE0 12?? <0D 17?? O%DE% @, team1id DES 5 salar+ DES E

orrect. 7?. Eval"ate this SFA statement8 SEAE T e.emplo+ee1id5 e.last1name5 e.first1name5 m.manager1id F%O$ emplo+ees e5 emplo+ees m O%DE% @, e.last1name5 e.first1name /BE%E e.emplo+ee1id L m.manager1idE This statement fails &hen exec"ted. /hich change &ill correct the problem# $ar! for %evie& '1( )oints %eorder the cla"ses in the :"er+. '*( %emove the table aliases in the /BE%E cla"se. %emove the table aliases in the O%DE% @, cla"se. -ncl"de a B<C-0I cla"se. -ncorrectQ See Section 18. )age 7 of 7 Test8 Final Exam Semester 1 %evie& +o"r ans&ers5 feedbac!5 and :"estion scores belo&. <n asteris! '*( indicates a correct ans&er. Semester 1 Final Term Exam covers Sections 11-18 of Database Design. Section 12 1. -n a ph+sical data model5 a relationship is represented as a combination of8 ' hoose T&o( $ar! for %evie& '1( )oints ' hoose all correct ans&ers( ol"mn )rimar+ 6e+ or 9ni:"e 6e+ '*( hec! onstraint or 9ni:"e 6e+ Foreign 6e+ '*(

orrect 2. -n a ph+sical data model5 an attrib"te becomes a 1111111111111. $ar! for %evie& '1( )oints Table Foreign 6e+ onstraint ol"mn '*( orrect .. /h+ &o"ld this table name 0OT &or! in an Oracle database# this1+ear1end2next1+ear $ar! for %evie& '1( )oints Table names m"st begin &ith an alphabetic character Too long The )l"s sign 2 is not allo&ed in ob3ect names '*( 0one of the above orrect 4. /hen mapping s"pert+pes5 relationships at the s"pert+pe level transform as "s"al. %elationships at s"bt+pe level are implemented as foreign !e+s5 b"t the foreign !e+ col"mns all become mandator+. Tr"e or False# $ar! for %evie& '1( )oints Tr"e False '*( orrect 7. /hich of the follo&ing are reasons &h+ +o" sho"ld consider "sing a S"bt+pe -mplementation# $ar! for %evie& '1( )oints The res"lting table &ill reside in a single database and be "sed b+ 3"st O0E "ser.

/hen the common access paths for the s"pert+pes are different. @"siness f"nctionalit+ and b"siness r"les5 access paths and fre:"enc+ of access are all ver+ different bet&een s"bt+pes. '*( $ost of the relationships are at the s"pert+pe level orrect ;. The Oracle Database can implement a man+ to man+ relationship. ,o" simpl+ create t&o foreign !e+s bet&een the t&o tables. Tr"e or False# $ar! for %evie& '1( )oints Tr"e False '*( orrect =. -t is possible to implement non-transferabilit+ via a simple Foreign 6e+ %elationship. Tr"e or False# $ar! for %evie& '1( )oints Tr"e False '*( -ncorrect. %efer to Section 12 8. The text belo& is an example of &hat constraint t+pe8 The val"e in the manager1id col"mn of the E$)AO,EES table m"st match a val"e in the emplo+ee1id col"mn in the E$)AO,EES table. $ar! for %evie& '1( )oints Entit+ integrit+ 9ser-defined integrit+ ol"mn integrit+ %eferential integrit+ '*( orrect

>. Entit+ integrit+ refers to $ar! for %evie& '1( )oints Tables al&a+s containing text data Tables al&a+s containing n"meric data ol"mns having )rimar+ 6e+s5 Foreign 6e+s5 9ni:"e 6e+s and hec! constraints defined in the database. Tables having )rimar+ 6e+s5 Foreign 6e+s5 9ni:"e 6e+s and hec! constraints defined in the database. '*( -ncorrect. %efer to Section 12 1?. -dentif+ all of the incorrect statements that complete this sentence8 < primar+ !e+ is8 ' hoose three( $ar! for %evie& '1( )oints ' hoose all correct ans&ers( < single col"mn that "ni:"el+ identifies each col"mn in a table '*( One or more col"mns in a table that "ni:"el+ identifies each ro& in that table < set of col"mns in one table that "ni:"el+ identifies each ro& in another table '*( Onl+ one col"mn that m"st be n"ll '*( -ncorrect. %efer to Section 12 )age 1 of 7 Test8 Final Exam Semester 1 %evie& +o"r ans&ers5 feedbac!5 and :"estion scores belo&. <n asteris! '*( indicates a correct ans&er. Semester 1 Final Term Exam covers Sections 11-18 of Database Design. Section 12 11. The explanation belo& is a col"mn integrit+ constraint8 < col"mn m"st contain onl+ val"es consistent &ith the defined data format of the col"mn. Tr"e or False#

$ar! for %evie& '1( )oints Tr"e '*( False orrect Section 1. 12. The DES %-@E command ret"rns all ro&s from a table. Tr"e or False# $ar! for %evie& '1( )oints Tr"e False '*( orrect. 1.. /hat command can be "sed to create a ne& ro& in a table in the database# $ar! for %evie& '1( )oints %E<TE 0E/ <DD -0SE%T '*( orrect. Section 1; 14. -n a SFA statement5 &hich cla"se specifies one or more col"mns to be ret"rned b+ the :"er+# $ar! for %evie& '1( )oints SEAE T '*( F%O$ /BE%E

<n+ of the above options5 +o" can list col"mns &herever +o" &ant to in a SEAE T statement. -ncorrect. See Section 1; 17. /hich SFA !e+&ord specifies that an alias &ill be s"bstit"ted for a col"mn name in the o"tp"t of a SFA :"er+# $ar! for %evie& '1( )oints <S '*( O% <0D S9@ST-T9TE orrect. 1;. The SEAE T statement retrieves information from the database. -n a SEAE T statement5 +o" can do all of the follo&ing EH E)T8 $ar! for %evie& '1( )oints )ro3ection $anip"lation '*( Goining Selection orrect. 1=. /hen listing col"mns in the SEAE T list5 &hat sho"ld +o" "se to separate the col"mns# $ar! for %evie& '1( )oints ommas '*( Semicolons Dashes 9nderscores orrect.

18. -n the defa"lt order of precedence5 &hich operator &o"ld be eval"ated first# $ar! for %evie& '1( )oints S"btractions $"ltiplications '*( <dditions Divisions orrect. 1>. /hen +o" "se the SEAE T cla"se to list one or t&o col"mns onl+ from a table and no /BE%E cla"se5 &hich SFA capabilit+ is "sed# $ar! for %evie& '1( )oints Goining onl+ Selection onl+ )ro3ection onl+ '*( )ro3ection and Selection -ncorrect. See Section 1; 2?. -n &hich cla"se of a SEAE T statement &o"ld +o" specif+ the name of the table or tables being :"eried# $ar! for %evie& '1( )oints The F%O$ cla"se '*( The SEAE T cla"se The /BE%E cla"se <n+ of the above options5 +o" can list tables &herever +o" &ant to in a SEAE T statement. -ncorrect. See Section 1; )age 2 of 7 Test8 Final Exam Semester 1

%evie& +o"r ans&ers5 feedbac!5 and :"estion scores belo&. <n asteris! '*( indicates a correct ans&er. Semester 1 Final Term Exam covers Sections 11-18 of Database Design. Section 1; 21. There is onl+ one !ind of soft&are "sed b+ all comp"ters. Tr"e or False# $ar! for %evie& '1( )oints Tr"e False '*( orrect. 22. -n a SEAE T statement <dditions are eval"ated before $"ltiplications. Tr"e or False# $ar! for %evie& '1( )oints Tr"e False '*( orrect. Section 1= 2.. -f the E$)AO,EES table has the follo&ing col"mns5 and +o" &ant to &rite a SEAE T statement to ret"rn the emplo+ee last name and department n"mber for emplo+ee n"mber 1=;5 &hich of the follo&ing SFA statements sho"ld +o" "se# 0ame T+pe Aength E$)AO,EE1-D 09$@E% 22 F-%ST10<$E C<% B<%2 2? A<ST10<$E C<% B<%2 27 E$<-A C<% B<%2 27 )BO0E109$@E% C<% B<%2 2? S<A<%, 09$@E% 22 O$$-SS-O01) T 09$@E% 22 $<0<IE%1-D 09$@E% 22 DE)<%T$E0T1-D 09$@E% 22 $ar! for %evie& '1( )oints

SEAE T last1name5 department1id F%O$ emplo+ees /BE%E emplo+ee1id L 1=;E '*( SEAE T last1name5 department1id F%O$ emplo+ees /BE%E emplo+ee1id e:"als 1=;E SEAE T first1name5 emplo+ee1id F%O$ emplo+ees /BE%E emplo+ee1id L 1=;E SEAE T last1name5 emplo+ee1id F%O$ emplo+ees /BE%E emplo+ee1id e:"als 1=;E orrect. 24. ,o" &ant to retrieve a list of c"stomers &hose last names begin &ith the letters Fr . /hich s+mbol sho"ld +o" incl"de in the /BE%E cla"se of +o"r SEAE T statement to achieve the desired res"lt# $ar! for %evie& '1( )oints O '*( U S * orrect. See Section 1= 27. Eval"ate this SEAE T statement8 SEAE T last1name5 first1name5 salar+ F%O$ emplo+eesE Bo& &ill the heading for the S<A<%, col"mn appear in the displa+ b+ defa"lt in Oracle <pplication Express# $ar! for %evie& '1( )oints The heading &ill displa+ &ith the first character capitaliPed and centered. The heading &ill displa+ &ith the first character capitaliPed and left 3"stified.

The heading &ill displa+ as "ppercase and centered. '*( The heading &ill displa+ as "ppercase and left 3"stified. orrect. 2;. /hich SEAE T statement &ill displa+ both "ni:"e and non-"ni:"e combinations of the $<0<IE%1-D and DE)<%T$E0T1-D val"es from the E$)AO,EES table# $ar! for %evie& '1( )oints SEAE T manager1id5 department1id D-ST-0 T F%O$ emplo+eesE SEAE T manager1id5 department1id F%O$ emplo+eesE '*( SEAE T D-ST-0 T manager1id5 department1id F%O$ emplo+eesE SEAE T manager1id5 D-ST-0 T department1id F%O$ emplo+eesE -ncorrect. See Section 1=. 2=. ,o" need to displa+ all the emplo+ees &hose last name starts &ith the letters Sm . /hich /BE%E cla"se sho"ld +o" "se# $ar! for %evie& '1( )oints /BE%E last1name A-6E TSmOD '*( /BE%E last1name A-6E TOSmD /BE%E last1name A-6E T1SmD /BE%E last1name A-6E TSm1D orrect. See Section 1= 28. The ST9DE0T table contains these col"mns8 ST9DE0T1-D 09$@E%'1?( )rimar+ 6e+ A<ST10<$E C<% B<%2'27( F-%ST10<$E C<% B<%2'27( $<-01S9@GE T1-D 09$@E%'.( <DC-SO%1-D 09$@E%'7( Eval"ate this statement8 SEAE T D-ST-0 T advisor1id5 main1s"b3ect1id F%O$ st"dentE

/hich statement is tr"e# $ar! for %evie& '1( )oints Each <DC-SO%1-D can be displa+ed onl+ once. Each $<-01S9@GE T1-D can be displa+ed more than once per <DC-SO%1-D. '*( Each combination of <DC-SO%1-D and $<-01S9@GE T1-D can be displa+ed more than once. Each $<-01S9@GE T1-D can be displa+ed onl+ once per :"er+. orrect. See Section 1= 2>. The E$)AO,EES table contains these col"mns8 E$)AO,EE1-D 09$@E%'>( )rimar+6e+ A<ST10<$E C<% B<%2 '2?( F-%ST10<$E C<% B<%2 '2?( DE)<%T$E0T1-D 09$@E%'7( 0OT 09AA $<0<IE%1-D 09$@E%'>( 0OT 09AA Eval"ate these t&o SEAE T statements8 1. SEAE T D-ST-0 T emplo+ee1id5 department1id5 manager1id F%O$ emplo+eesE 2. SEAE T emplo+ee1id5 department1id5 manager1id F%O$ emplo+eesE /hich of the follo&ing statements is tr"e# $ar! for %evie& '1( )oints The t&o statements &ill displa+ the same data. '*( The first statement &ill displa+ a partic"lar DE)<%T$E0T1-D onl+ once. The first statement &ill 0OT displa+ val"es from all of the ro&s in the E$)AO,EES table The second statement co"ld displa+ a "ni:"e combination of the E$)AO,EE1-D5 $<0<IE%1-D5 and DE)<%T$E0T1-D val"es more than once. orrect. See Section 1= .?. -f +o" &rite :"eries "sing the @ET/EE0 operator it does not matter in &hat order +o" enter the val"es5 i.e. @ET/EE0 lo& val"e <0D high val"e &ill give the same res"lt as @ET/EE0 high val"e and lo& val"e. Tr"e or False# $ar! for %evie& '1( )oints

Tr"e False '*( orrect. )age . of 7 Test8 Final Exam Semester 1 %evie& +o"r ans&ers5 feedbac!5 and :"estion scores belo&. <n asteris! '*( indicates a correct ans&er. Semester 1 Final Term Exam covers Sections 11-18 of Database Design. Section 1= .1. /hich comparison condition &o"ld +o" "se to select ro&s that match a character pattern# $ar! for %evie& '1( )oints -0 A-6E '*( <A$OST S-$-A<% -ncorrect. See Section 1=. .2. ,o" need to displa+ emplo+ees &hose salar+ is in the range of .???? and 7????. /hich comparison operator sho"ld +o" "se# $ar! for %evie& '1( )oints -0 A-6E @ET/EE0R<0DR '*( -S 09AA orrect.

... /hat does the D-ST-0 T !e+&ord do &hen it is "sed in a SEAE T cla"se# $ar! for %evie& '1( )oints Bides 09AA val"es Eliminates all "ni:"e val"es and compares val"es Eliminates d"plicate ro&s in the res"lt '*( Eliminates onl+ "ni:"e ro&s in the res"lt orrect. See Section 1= .4. /hich comparison operator searches for a specified character pattern# $ar! for %evie& '1( )oints -0 A-6E '*( @ET/EE0R<0DR -S 09AA -ncorrect. See Section 1=. .7. /here in a SFA statement can +o" not "se arithmetic operators# $ar! for %evie& '1( )oints SEAE T F%O$ '*( /BE%E 0O0E orrect. .;. /hich s+mbol represents the not e:"al to condition# $ar! for %evie& '1( )oints S T2D

QL '*( U orrect. Section 18 .=. Eval"ate this SFA statement8 SEAE T e.emplo+ee1id5 e.last1name5 e.first1name5 m.manager1id F%O$ emplo+ees e5 emplo+ees m O%DE% @, e.last1name5 e.first1name /BE%E e.emplo+ee1id L m.manager1idE This statement fails &hen exec"ted. /hich change &ill correct the problem# $ar! for %evie& '1( )oints %eorder the cla"ses in the :"er+. '*( %emove the table aliases in the /BE%E cla"se. %emove the table aliases in the O%DE% @, cla"se. -ncl"de a B<C-0I cla"se. orrect. .8. The )A<,E%S table contains these col"mns8 )A<,E%S T<@AE8 A<ST10<$E C<% B<%2 '2?( F-%ST10<$E C<% B<%2 '2?( S<A<%, 09$@E%'852( TE<$1-D 09$@E%'4( $<0<IE%1-D 09$@E%'>( )OS-T-O01-D 09$@E%'4( ,o" m"st displa+ the pla+er name5 team id5 and salar+ for pla+ers &hose salar+ is in the range from 27??? thro"gh 1????? and &hose team id is in the range of 12?? thro"gh 17??. The res"lts m"st be sorted b+ team id from lo&est to highest and then f"rther sorted b+ salar+ from highest to lo&est. /hich statement sho"ld +o" "se to displa+ the desired res"lt# $ar! for %evie& '1( )oints SEAE T last1name5 first1name5 team1id5 salar+ F%O$ pla+ers /BE%E 'salar+ K 27??? O% salar+ J 1?????(

<0D team1id @ET/EE0 12?? <0D 17?? O%DE% @, team1id5 salar+E SEAE T last1name5 first1name5 team1id5 salar+ F%O$ pla+ers /BE%E salar+ @ET/EE0 27??? <0D 1????? <0D team1id @ET/EE0 12?? <0D 17?? O%DE% @, team1id5 salar+ DES E '*( SEAE T last1name5 first1name5 team1id5 salar+ F%O$ pla+ers /BE%E salar+ K 24>>>.>> <0D salar+ J 1????? <0D team1id @ET/EE0 12?? <0D 17?? O%DE% @, team1id <S 5 salar+ DES E SEAE T last1name5 first1name5 team1id5 salar+ F%O$ pla+ers /BE%E salar+ @ET/EE0 24>>>.>> <0D 1?????.?1 <0D team1id @ET/EE0 12?? <0D 17?? O%DE% @, team1id DES 5 salar+ DES E orrect. .>. /hich statement abo"t the defa"lt sort order is tr"e# $ar! for %evie& '1( )oints The lo&est n"meric val"es are displa+ed last. The earliest date val"es are displa+ed first. '*( 0"ll val"es are displa+ed first. haracter val"es are displa+ed in reverse alphabetical order. orrect. 4?. The O%DE% @, cla"se al&a+s comes last. Tr"e or False# $ar! for %evie& '1( )oints Tr"e '*( False orrect.

)age 4 of 7 Test8 Final Exam Semester 1 %evie& +o"r ans&ers5 feedbac!5 and :"estion scores belo&. <n asteris! '*( indicates a correct ans&er. Semester 1 Final Term Exam covers Sections 11-18 of Database Design. Section 18 41. /hich logical operator ret"rns T%9E if either condition is tr"e# $ar! for %evie& '1( )oints O% '*( <0D 0OT @OTB orrect. 42. /hich comparison condition means VAess Than or E:"al To#W $ar! for %evie& '1( )oints VL(W V2JW VKLW VJLW '*( orrect. 4.. /hich of the follo&ing is T%9E regarding the logical <0D operator# $ar! for %evie& '1( )oints T%9E <0D T%9E ret"rn F<ASE T%9E <0D F<ASE ret"rn T%9E F<ASE <0D T%9E ret"rn 09AA

T%9E <0D F<ASE ret"rn F<ASE '*( orrect. 44. /hich statement abo"t the O%DE% @, cla"se is tr"e# $ar! for %evie& '1( )oints ,o" can "se a col"mn alias in the O%DE% @, cla"se. '*( The defa"lt sort order of the O%DE% @, cla"se is descending. The O%DE% @, cla"se can onl+ contain col"mns that are incl"ded in the SEAE T list. The O%DE% @, cla"se sho"ld immediatel+ precede the F%O$ cla"se in a SEAE T statement orrect. 47. ,o" :"er+ the database &ith this SFA statement8 SEAE T price F%O$ prod"cts /BE%E price -0'15 275 7?5 27?( <0D 'price @ET/EE0 27 <0D 4? O% price K 7?(E /hich t&o val"es co"ld the statement ret"rn# ' hoose t&o.( $ar! for %evie& '1( )oints ' hoose all correct ans&ers( 1 7? 27 '*( 1? 27? '*( 1?? orrect. 4;. Eval"ate this SFA statement8 SEAE T prod"ct1id5 prod"ct1name5 price

F%O$ prod"cts O%DE% @, prod"ct1name5 priceE /hat occ"rs &hen the statement is exec"ted# $ar! for %evie& '1( )oints The res"lts are sorted n"mericall+ onl+. The res"lts are sorted alphabeticall+ onl+. The res"lts are sorted n"mericall+ and then alphabeticall+. The res"lts are sorted alphabeticall+ and then n"mericall+. '*( orrect. 4=. Eval"ate this SEAE T statement8 SEAE T last1name5 first1name5 email F%O$ emplo+ees O%DE% @, emailE -f the E$<-A col"mn contains n"ll val"es5 &hich statement is tr"e# $ar! for %evie& '1( )oints 0"ll email val"es &ill be displa+ed first in the res"lt. 0"ll email val"es &ill be displa+ed last in the res"lt. '*( 0"ll email val"es &ill not be displa+ed in the res"lt. The res"lt &ill not be sorted. orrect. 48. /hat val"e &ill the follo&ing SFA statement ret"rn# SEAE T emplo+ee1id F%O$ emplo+ees /BE%E emplo+ee1id @ET/EE0 1?? <0D 17? O% emplo+ee1id -0'11>5 1=75 2?7( <0D 'emplo+ee1id @ET/EE0 17? <0D 2??(E $ar! for %evie& '1( )oints

1> 0o ro&s &ill be ret"rned 1??5 1?15 1?25 1?.5 1?45 1?=5 1245 1415 1425 14.5 1445 14> '*( 2??5 2?15 2?25 2?.5 2?45 2?75 2?; orrect. 4>. /hich SEAE T statement sho"ld +o" "se to limit the displa+ of prod"ct information to those prod"cts &ith a price of less than 7?# $ar! for %evie& '1( )oints SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts /BE%E price J 7?E '*( SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts B<C-0I price J 7?E SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts /BE%E price JL 7?E SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts I%O9) @, price J 7?E SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts /BE%E price J 7?.?? I%O9) @, priceE orrect. 7?. Eval"ate this SEAE T statement8 SEAE T * F%O$ emplo+ees /BE%E department1id L .4 O% department1id L 47 O% department1id L ;=E

/hich operator is the e:"ivalent of the O% conditions "sed in this SEAE T statement# $ar! for %evie& '1( )oints -0 '*( <0D A-6E @ET/EE0 R <0D R orrect. )age 7 of 7

hoi Section 12 1. -n a ph+sical data model5 a relationship is represented as a combination of8 ' hoose T&o( $ar!eren voor na!i3!en '1( )"nten '6ies alle goede ant&oorden.( ol"mn )rimar+ 6e+ or 9ni:"e 6e+ '*( hec! onstraint or 9ni:"e 6e+ Foreign 6e+ '*( orrect 2. -n an Oracle database5 &h+ &o"ld 11T<@AE not &or! as a table name# $ar!eren voor na!i3!en '1( )"nten The database does not "nderstand all capital letters There is no problem here. ,o" can create a table called 11T<@AE.

Ob3ect names m"st not start &ith a n"mber. The+ m"st begin &ith a letter '*( T<@AE is a reserved &ord orrect .. The transformation from an E% diagram to a ph+sical design involves changing terminolog+. )rimar+ 9ni:"e -dentifiers in the E% diagram become 1111111111 and relationships become 111111111111. $ar!eren voor na!i3!en '1( )"nten Foreign !e+s5 )rimar+ !e+s )rimar+ !e+s5 Foreign !e+s '*( Foreign !e+s5 mandator+ b"siness r"les 9ni:"e 6e+s5 )rimar+ !e+s -ncorrect. %efer to Section 12 4. The text belo& is an example of &hat constraint t+pe8 The val"e in the manager1id col"mn of the E$)AO,EES table m"st match a val"e in the emplo+ee1id col"mn in the E$)AO,EES table. $ar!eren voor na!i3!en '1( )"nten Entit+ integrit+ 9ser-defined integrit+ ol"mn integrit+ %eferential integrit+ '*( -ncorrect. %efer to Section 12 7. < table m"st have at least one candidate !e+5 as &ell as its primar+ !e+. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( -ncorrect. %efer to Section 12

;. The explanation belo& is a 9ser Defined integrit+ r"le and m"st therefore be man"all+ coded5 the Database cannot enforce this r"le a"tomaticall+8 < primar+ !e+ m"st be "ni:"e5 and no part of the primar+ !e+ can be n"ll. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( -ncorrect. %efer to Section 12 =. The explanation belo& is a col"mn integrit+ constraint8 < col"mn m"st contain onl+ val"es consistent &ith the defined data format of the col"mn. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar '*( 0iet &aar orrect 8. /hat do +o" create &hen +o" transform a man+ to man+ relationship from +o"r E% diagram into a ph+sical design# $ar!eren voor na!i3!en '1( )"nten 9ni:"e !e+ constraints -ntersection entit+ -ntersection table '*( T&o tables &ith Foreign !e+ constraints bet&een them -ncorrect. %efer to Section 12 >. The Oracle Database can implement a man+ to man+ relationship. ,o" simpl+ create t&o foreign !e+s bet&een the t&o tables. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( -ncorrect. %efer to Section 12

1?. /hen mapping s"pert+pes5 relationships at the s"pert+pe level transform as "s"al. %elationships at s"bt+pe level are implemented as foreign !e+s5 b"t the foreign !e+ col"mns all become mandator+. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( orrect Section 12 11. /hen translating an arc relationship to a ph+sical design5 +o" m"st t"rn the arc relationships into foreign !e+s. <ss"ming +o" are implementing an Excl"sive Design5 +o" m"st also create t&o 9ni:"e 6e+ onstraints to ens"re the <rc is implemented correctl+. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( orrect Section 1. 12. /hat command can be "sed to create a ne& ro& in a table in the database# $ar!eren voor na!i3!en '1( )"nten %E<TE 0E/ <DD -0SE%T '*( -ncorrect. %efer to Section 1. 1.. The 1111111 cla"se can be added to a SEAE T statement to ret"rn a s"bset of the data. $ar!eren voor na!i3!en '1( )"nten <0,/BE%E

/B- B /BE%E '*( ECE%, -ncorrect. %efer to Section 1. Section 1; 14. <ll comp"ters in the &orld spea! the same lang"ages5 so +o" onl+ need to learn one programming lang"age X Oracle SFA. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( -ncorrect. See Section 1; 17. ,o" cannot "se comp"ters "nless +o" completel+ "nderstand exactl+ ho& the+ &or!. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( orrect. 1;. /hen listing col"mns in the SEAE T list5 &hat sho"ld +o" "se to separate the col"mns# $ar!eren voor na!i3!en '1( )"nten ommas '*( Semicolons Dashes 9nderscores orrect. 1=. ,o" :"er+ the database &ith this SFA statement8 SEAE T * F%O$ st"dentsE

/h+ &o"ld +o" "se this statement# $ar!eren voor na!i3!en '1( )"nten To insert data To vie& data '*( To displa+ the table str"ct"re To delete data -ncorrect. See Section 1; 18. -n &hich cla"se of a SEAE T statement &o"ld +o" specif+ the name of the table or tables being :"eried# $ar!eren voor na!i3!en '1( )"nten The F%O$ cla"se '*( The SEAE T cla"se The /BE%E cla"se <n+ of the above options5 +o" can list tables &herever +o" &ant to in a SEAE T statement. -ncorrect. See Section 1; 1>. /hich statement best describes ho& arithmetic expressions are handled# $ar!eren voor na!i3!en '1( )"nten <ddition operations are handled before an+ other operations. $"ltiplication and s"btraction operations are handled before an+ other operations. $"ltiplication and addition operations are handled before s"btraction and division operations. Division and m"ltiplication operations are handled before s"btraction and addition operations. '*( orrect. 2?. The SEAE T statement retrieves information from the database. -n a SEAE T statement5 +o" can do all of the follo&ing EH E)T8 $ar!eren voor na!i3!en '1( )"nten

)ro3ection $anip"lation '*( Goining Selection -ncorrect. See Section 1; Section 1; 21. ,o" :"er+ the database &ith this SFA statement8 SEAE T * F%O$ transaction /BE%E prod"ct1id L 47;>E /hich SFA SEAE T statement capabilities are achieved &hen this statement is exec"ted# $ar!eren voor na!i3!en '1( )"nten Selection onl+ '*( )ro3ection onl+ Selection and pro3ection onl+ )ro3ection5 selection and 3oining orrect. 22. -f a SFA statement ret"rns data from t&o or more tables5 &hich SFA capabilit+ is being "sed# $ar!eren voor na!i3!en '1( )"nten Selection )ro3ection Goining '*( -nsertion -ncorrect. See Section 1; Section 1=

2.. ,o" need to displa+ emplo+ees &hose salar+ is in the range of .???? and 7????. /hich comparison operator sho"ld +o" "se# $ar!eren voor na!i3!en '1( )"nten -0 A-6E @ET/EE0R<0DR '*( -S 09AA orrect. 24. /hen "sing the A-6E condition5 &hich s+mbol represents an+ se:"ence of none5 one or more characters# $ar!eren voor na!i3!en '1( )"nten 1 O '*( S Y -ncorrect. See Section 1=. 27. ,o" need to displa+ all the ro&s in the E$)AO,EES table that contain a n"ll val"e in the DE)<%T$E0T1-D col"mn. /hich comparison operator sho"ld +o" "se# $ar!eren voor na!i3!en '1( )"nten VL 09AAW 09AAQ -S09AA -S 09AA '*( -ncorrect. See Section 1=. 2;. /here in a SFA statement can +o" not "se arithmetic operators# $ar!eren voor na!i3!en '1( )"nten

SEAE T F%O$ '*( /BE%E 0O0E -ncorrect. See Section 1=. 2=. /hat does the D-ST-0 T !e+&ord do &hen it is "sed in a SEAE T cla"se# $ar!eren voor na!i3!en '1( )"nten Bides 09AA val"es Eliminates all "ni:"e val"es and compares val"es Eliminates d"plicate ro&s in the res"lt '*( Eliminates onl+ "ni:"e ro&s in the res"lt -ncorrect. See Section 1= 28. /hich cla"se &o"ld +o" incl"de in a SEAE T statement to restrict the data ret"rned to onl+ the emplo+ees in department 1?# $ar!eren voor na!i3!en '1( )"nten /BE%E '*( F%O$ SEAE T -S orrect. 2>. The E$)AO,EES table incl"des these col"mns8 E$)AO,EE1-D 09$@E%'4( 0OT 09AA A<ST10<$E C<% B<%2'17( 0OT 09AA F-%ST10<$E C<% B<%2'1?( 0OT 09AA B-%E1D<TE D<TE 0OT 09AA ,o" &ant to prod"ce a report that provides the first names5 last names and hire dates of those emplo+ees &ho &ere hired bet&een $arch 15 2???5 and <"g"st .?5 2???. /hich statements can

+o" iss"e to accomplish this tas!# $ar!eren voor na!i3!en '1( )"nten SEAE T last1name5 first1name5 hire1date F%O$ emplo+ees /BE%E hire1date @ET/EE0 D?1-$<%-??M <0D D.?-<9I-??ME '*( SEAE T last1name5 first1name5 hire1date F%O$ emplo+ees /BE%E hire1date @ET/EE0 D.?-<9I-??M <0D D?1-$<%-??ME SEAE T last1name5 first1name5 hire1date F%O$ emplo+ees I%O9) @, hire1date KL D?1-$<%-??M and hire1date L D?1-$<%-??M and hire1date 2????E /hich val"es &o"ld ca"se the logical condition to ret"rn T%9E# $ar!eren voor na!i3!en '1( )"nten DE)<%T$E0T1-D L 1? and S<A<%, L 2???? DE)<%T$E0T1-D L 2? and S<A<%, L 2???? DE)<%T$E0T1-D L n"ll and S<A<%, L 2???1 DE)<%T$E0T1-D L 1? and S<A<%, L 2???1 '*( orrect. See Section 1= .4. ,o" need &rite a SEAE T statement that sho"ld onl+ ret"rn ro&s that contain .45 4;5 or 48 for the DE)<%T$E0T1-D col"mn. /hich operator sho"ld +o" "se in the /BE%E cla"se to compare the DE)<%T$E0T1-D col"mn to this specific list of val"es# $ar!eren voor na!i3!en '1( )"nten L QL -0 '*( @ET/EE0..<0D.. orrect. .7. Eval"ate this SEAE T statement8 SEAE T last1name5 first1name5 salar+ F%O$ emplo+eesE

Bo& &ill the heading for the S<A<%, col"mn appear in the displa+ b+ defa"lt in Oracle <pplication Express# $ar!eren voor na!i3!en '1( )"nten The heading &ill displa+ &ith the first character capitaliPed and centered. The heading &ill displa+ &ith the first character capitaliPed and left 3"stified. The heading &ill displa+ as "ppercase and centered. '*( The heading &ill displa+ as "ppercase and left 3"stified. -ncorrect. See Section 1=. .;. ,o" need to displa+ all the val"es in the E$<-A col"mn that contains the "nderscore '1( character as part of that email address. The /BE%E cla"se in +o"r SEAE T statement contains the A-6E operator. /hat m"st +o" incl"de in the A-6E operator# $ar!eren voor na!i3!en '1( )"nten The ES <)E option 'N( and one or more percent signs 'O( The '2( operator < percent sign 'O( The ES <)E option 'N( '*( -ncorrect. See Section 1= Section 18 .=. The )A<,E%S table contains these col"mns8 )A<,E%S T<@AE8 A<ST10<$E C<% B<%2 '2?( F-%ST10<$E C<% B<%2 '2?( S<A<%, 09$@E%'852( TE<$1-D 09$@E%'4( $<0<IE%1-D 09$@E%'>( )OS-T-O01-D 09$@E%'4( ,o" m"st displa+ the pla+er name5 team id5 and salar+ for pla+ers &hose salar+ is in the range from 27??? thro"gh 1????? and &hose team id is in the range of 12?? thro"gh 17??. The res"lts m"st be sorted b+ team id from lo&est to highest and then f"rther sorted b+ salar+ from highest to lo&est. /hich statement sho"ld +o" "se to displa+ the desired res"lt# $ar!eren voor na!i3!en '1( )"nten

SEAE T last1name5 first1name5 team1id5 salar+ F%O$ pla+ers /BE%E 'salar+ K 27??? O% salar+ 24>>>.>> <0D salar+ L ;>?? O%DE% @, last1name5 first1nameE '*( SEAE T last1name5 first1name F%O$ pla+ers /BE%E position1id K ;>?? O%DE% @, last1name5 first1nameE SEAE T last1name5 first1name F%O$ pla+ers /BE%E position1id L ;>?? O%DE% @, last1name DES 5 first1nameE orrect. .>. /hich statement abo"t the logical operators is tr"e# $ar!eren voor na!i3!en '1( )"nten The order of operator precedence is <0D5 O%5 and 0OT. The order of operator precedence is <0D5 0OT5 and O%. The order of operator precedence is 0OT5 O%5 and <0D. The order of operator precedence is 0OT5 <0D5 and O%. '*( -ncorrect. See Section 18 4?. /hich of the follo&ing is T%9E regarding the logical <0D operator# $ar!eren voor na!i3!en '1( )"nten T%9E <0D T%9E ret"rn F<ASE T%9E <0D F<ASE ret"rn T%9E F<ASE <0D T%9E ret"rn 09AA T%9E <0D F<ASE ret"rn F<ASE '*( orrect. Section 18

41. /hich logical operator ret"rns T%9E if either condition is tr"e# $ar!eren voor na!i3!en '1( )"nten O% '*( <0D 0OT @OTB orrect. 42. /hich comparison condition means VAess Than or E:"al To#W $ar!eren voor na!i3!en '1( )"nten VL(W V2LW W 7?(E /hich t&o val"es co"ld the statement ret"rn# ' hoose t&o.( $ar!eren voor na!i3!en '1( )"nten '6ies alle goede ant&oorden.( 1 7? 27 '*( 1? 27? '*( 1?? -ncorrectQ See Section 18. 48. Eval"ate this SFA statement8 SEAE T prod"ct1id5 prod"ct1name5 price F%O$ prod"cts O%DE% @, prod"ct1name5 priceE /hat occ"rs &hen the statement is exec"ted# $ar!eren voor na!i3!en '1( )"nten

The res"lts are sorted n"mericall+ onl+. The res"lts are sorted alphabeticall+ onl+. The res"lts are sorted n"mericall+ and then alphabeticall+. The res"lts are sorted alphabeticall+ and then n"mericall+. '*( orrect. 4>. /hat val"e &ill the follo&ing SFA statement ret"rn# SEAE T emplo+ee1id F%O$ emplo+ees /BE%E emplo+ee1id @ET/EE0 1?? <0D 17? O% emplo+ee1id -0'11>5 1=75 2?7( <0D 'emplo+ee1id @ET/EE0 17? <0D 2??(E $ar!eren voor na!i3!en '1( )"nten 1> 0o ro&s &ill be ret"rned 1??5 1?15 1?25 1?.5 1?45 1?=5 1245 1415 1425 14.5 1445 14> '*( 2??5 2?15 2?25 2?.5 2?45 2?75 2?; -ncorrectQ See Section 18. 7?. Eval"ate this SEAE T statement8 SEAE T * F%O$ emplo+ees /BE%E salar+ K .???? <0D department1id L 1? O% email -S 0OT 09AAE /hich statement is tr"e# $ar!eren voor na!i3!en '1( )"nten The O% condition &ill be eval"ated before the <0D condition. The <0D condition &ill be eval"ated before the O% condition. '*( The O% and <0D conditions have the same precedence and &ill be eval"ated from left to right The O% and <0D conditions have the same precedence and &ill be eval"ated from right to left orrect.

Section 12 1. <n V<rc -mplementationW can be done 3"st li!e an+ other %elationship X +o" simpl+ add the re:"ired Foreign 6e+s. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( -ncorrect. %efer to Section 12 2. /hich of the follo&ing are reasons &h+ +o" sho"ld consider "sing a S"bt+pe -mplementation# $ar!eren voor na!i3!en '1( )"nten The res"lting table &ill reside in a single database and be "sed b+ 3"st O0E "ser. /hen the common access paths for the s"pert+pes are different. @"siness f"nctionalit+ and b"siness r"les5 access paths and fre:"enc+ of access are all ver+ different bet&een s"bt+pes. '*( $ost of the relationships are at the s"pert+pe level -ncorrect. %efer to Section 12 .. -t is possible to implement non-transferabilit+ via a simple Foreign 6e+ %elationship. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( orrect 4. The Oracle Database can implement a man+ to man+ relationship. ,o" simpl+ create t&o foreign !e+s bet&een the t&o tables. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( orrect

7. The explanation belo& is a col"mn integrit+ constraint8 < col"mn m"st contain onl+ val"es consistent &ith the defined data format of the col"mn. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar '*( 0iet &aar orrect ;. < foreign !e+ cannot refer to a primar+ !e+ in the same table. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( -ncorrect. %efer to Section 12 =. The text belo& is an example of &hat constraint t+pe8 -f the n"mber of @OO6S lent to a @O%%O/E% in the A-@%<%, exceeds 75 then &e m"st send himZher a letter re:"esting the ret"rn of the @OO6S5 &hich &ill re:"ire extra programming to enforce. $ar!eren voor na!i3!en '1( )"nten Entit+ integrit+ 9ser-defined integrit+ '*( ol"mn integrit+ %eferential integrit+ orrect 8. < table m"st have a primar+ !e+. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( -ncorrect. %efer to Section 12

>. /h+ &o"ld this table name 0OT &or! in an Oracle database# this1+ear1end2next1+ear $ar!eren voor na!i3!en '1( )"nten Table names m"st begin &ith an alphabetic character Too long The )l"s sign 2 is not allo&ed in ob3ect names '*( 0one of the above orrect 1?. -n a ph+sical data model5 an attrib"te becomes a 1111111111111. $ar!eren voor na!i3!en '1( )"nten Table Foreign 6e+ onstraint ol"mn '*( -ncorrect. %efer to Section 12 Section 12 11. -n an Oracle database5 &h+ &o"ld 11T<@AE not &or! as a table name# $ar!eren voor na!i3!en '1( )"nten The database does not "nderstand all capital letters There is no problem here. ,o" can create a table called 11T<@AE. Ob3ect names m"st not start &ith a n"mber. The+ m"st begin &ith a letter '*( T<@AE is a reserved &ord -ncorrect. %efer to Section 12 Section 1.

12. The 1111111 cla"se can be added to a SEAE T statement to ret"rn a s"bset of the data. $ar!eren voor na!i3!en '1( )"nten <0,/BE%E /B- B /BE%E '*( ECE%, orrect. 1.. /hat command &ill ret"rn data from the database to +o"# $ar!eren voor na!i3!en '1( )"nten FET B IET SEAE T '*( %ET9%0 orrect. Section 1; 14. There is onl+ one !ind of soft&are "sed b+ all comp"ters. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( orrect. 17. -n a SEAE T statement <dditions are eval"ated before $"ltiplications. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*(

orrect. 1;. ,o" :"er+ the database &ith this SFA statement8 SEAE T * F%O$ transaction /BE%E prod"ct1id L 47;>E /hich SFA SEAE T statement capabilities are achieved &hen this statement is exec"ted# $ar!eren voor na!i3!en '1( )"nten Selection onl+ '*( )ro3ection onl+ Selection and pro3ection onl+ )ro3ection5 selection and 3oining -ncorrect. See Section 1; 1=. ,o" :"er+ the database &ith this SFA statement8 SEAE T * F%O$ st"dentsE /h+ &o"ld +o" "se this statement# $ar!eren voor na!i3!en '1( )"nten To insert data To vie& data '*( To displa+ the table str"ct"re To delete data orrect. 18. -n a SFA statement5 &hich cla"se specifies one or more col"mns to be ret"rned b+ the :"er+# $ar!eren voor na!i3!en '1( )"nten SEAE T '*( F%O$ /BE%E <n+ of the above options5 +o" can list col"mns &herever +o" &ant to in a SEAE T statement.

-ncorrect. See Section 1; 1>. /hich SFA statement &ill ret"rn an error# $ar!eren voor na!i3!en '1( )"nten SEA * F% s!+E '*( select star from s!+E SEAE T star F%O$ s!+E SEAE T * F%O$ s!+E -ncorrect. See Section 1; 2?. /hen +o" "se the SEAE T cla"se to list one or t&o col"mns onl+ from a table and no /BE%E cla"se5 &hich SFA capabilit+ is "sed# $ar!eren voor na!i3!en '1( )"nten Goining onl+ Selection onl+ )ro3ection onl+ '*( )ro3ection and Selection orrect. Section 1; 21. /hen listing col"mns in the SEAE T list5 &hat sho"ld +o" "se to separate the col"mns# $ar!eren voor na!i3!en '1( )"nten ommas '*( Semicolons Dashes 9nderscores orrect.

22. -n the defa"lt order of precedence5 &hich operator &o"ld be eval"ated first# $ar!eren voor na!i3!en '1( )"nten S"btractions $"ltiplications '*( <dditions Divisions orrect. Section 1= 2.. ,o" need to displa+ all the ro&s in the E$)AO,EES table that contain a n"ll val"e in the DE)<%T$E0T1-D col"mn. /hich comparison operator sho"ld +o" "se# $ar!eren voor na!i3!en '1( )"nten VL 09AAW 09AAQ -S09AA -S 09AA '*( orrect. 24. ,o" need to displa+ emplo+ees &ith salaries that are at least .???? or higher. /hich comparison operator sho"ld +o" "se# $ar!eren voor na!i3!en '1( )"nten K VLKW KL '*( QL orrect.

27. /here in a SFA statement can +o" not "se arithmetic operators# $ar!eren voor na!i3!en '1( )"nten SEAE T F%O$ '*( /BE%E 0O0E -ncorrect. See Section 1=. 2;. /hich cla"se &o"ld +o" incl"de in a SEAE T statement to restrict the data ret"rned to onl+ the emplo+ees in department 1?# $ar!eren voor na!i3!en '1( )"nten /BE%E '*( F%O$ SEAE T -S orrect. 2=. ,o" need to displa+ emplo+ees &hose salar+ is in the range of .???? and 7????. /hich comparison operator sho"ld +o" "se# $ar!eren voor na!i3!en '1( )"nten -0 A-6E @ET/EE0R<0DR '*( -S 09AA orrect. 28. The oncatenation Operator does &hich of the follo&ing# $ar!eren voor na!i3!en '1( )"nten Ain!s ro&s of data together inside the database.

Ain!s t&o or more col"mns or literals to form a single o"tp"t col"mn '*( -s represented b+ the asteris! '*( s+mbol Separates col"mns. orrect. See Section 1= 2>. The E$)AO,EES table incl"des these col"mns8 E$)AO,EE1-D 09$@E%'4( 0OT 09AA A<ST10<$E C<% B<%2'17( 0OT 09AA F-%ST10<$E C<% B<%2'1?( 0OT 09AA B-%E1D<TE D<TE 0OT 09AA ,o" &ant to prod"ce a report that provides the first names5 last names and hire dates of those emplo+ees &ho &ere hired bet&een $arch 15 2???5 and <"g"st .?5 2???. /hich statements can +o" iss"e to accomplish this tas!# $ar!eren voor na!i3!en '1( )"nten SEAE T last1name5 first1name5 hire1date F%O$ emplo+ees /BE%E hire1date @ET/EE0 D?1-$<%-??M <0D D.?-<9I-??ME '*( SEAE T last1name5 first1name5 hire1date F%O$ emplo+ees /BE%E hire1date @ET/EE0 D.?-<9I-??M <0D D?1-$<%-??ME SEAE T last1name5 first1name5 hire1date F%O$ emplo+ees I%O9) @, hire1date KL D?1-$<%-??M and hire1date L D?1-$<%-??M and hire1date 7?(E /hich t&o val"es co"ld the statement ret"rn# ' hoose t&o.( $ar!eren voor na!i3!en '1( )"nten '6ies alle goede ant&oorden.( 1 7? 27 '*( 1? 27? '*( 1??

orrect. 47. /hich SEAE T statement sho"ld +o" "se to limit the displa+ of prod"ct information to those prod"cts &ith a price of less than 7?# $ar!eren voor na!i3!en '1( )"nten SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts /BE%E price J 7?E '*( SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts B<C-0I price J 7?E SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts /BE%E price JL 7?E SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts I%O9) @, price J 7?E SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts /BE%E price 27??? O% salar+ 24>>>.>> <0D salar+ J 1????? <0D team1id @ET/EE0 12?? <0D 17?? O%DE% @, team1id <S 5 salar+ DES E SEAE T last1name5 first1name5 team1id5 salar+ F%O$ pla+ers /BE%E salar+ @ET/EE0 24>>>.>> <0D 1?????.?1 <0D team1id @ET/EE0 12?? <0D 17?? O%DE% @, team1id DES 5 salar+ DES E orrect. 7?. The E$)AO,EES table contains these col"mns8 E$)AO,EE1-D 09$@E%'>( )6 A<ST10<$E C<% B<%2'27( F-%ST10<$E C<% B<%2'27( DE)<%T$E0T1-D 09$@E%'>( ompare these t&o SFA statements8 1. SEAE T D-ST-0 T department1id DE)T5 last1name5 first1name F%O$ emplo+ees

O%DE% @, department1idE 2. SEAE T department1id DE)T5 last1name5 first1name F%O$ emplo+ees O%DE% @, DE)TE Bo& &ill the res"lts differ# $ar!eren voor na!i3!en '1( )"nten One of the statements &ill ret"rn a s+ntax error. One of the statements &ill eliminate all d"plicate DE)<%T$E0T1-D val"es. There is no difference in the res"lt bet&een the t&o statements. '*( The statements &ill sort on different col"mn val"es. -ncorrectQ See Section 18.

anonymous 1. < table m"st have a primar+ !e+. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( -ncorrect. %efer to Section 12 2. The explanation belo& is a col"mn integrit+ constraint8 < col"mn m"st contain onl+ val"es consistent &ith the defined data format of the col"mn. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar '*( 0iet &aar orrect .. The text belo& is an example of &hat constraint t+pe8 -f the n"mber of @OO6S lent to a @O%%O/E% in the A-@%<%, exceeds 75 then &e m"st send himZher a letter re:"esting the ret"rn of the @OO6S5 &hich &ill re:"ire extra programming to

enforce. $ar!eren voor na!i3!en '1( )"nten Entit+ integrit+ 9ser-defined integrit+ '*( ol"mn integrit+ %eferential integrit+ -ncorrect. %efer to Section 12 4. < foreign !e+ cannot refer to a primar+ !e+ in the same table. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( -ncorrect. %efer to Section 12 7. -n an Oracle database5 &h+ &o"ld 11T<@AE not &or! as a table name# $ar!eren voor na!i3!en '1( )"nten The database does not "nderstand all capital letters There is no problem here. ,o" can create a table called 11T<@AE. Ob3ect names m"st not start &ith a n"mber. The+ m"st begin &ith a letter '*( T<@AE is a reserved &ord -ncorrect. %efer to Section 12 ;. /h+ &o"ld this table name 0OT &or! in an Oracle database# this1+ear1end2next1+ear $ar!eren voor na!i3!en '1( )"nten Table names m"st begin &ith an alphabetic character Too long The )l"s sign 2 is not allo&ed in ob3ect names '*(

0one of the above orrect =. <ttrib"tes become tables in a database. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( -ncorrect. %efer to Section 12 8. /hen mapping s"pert+pes5 relationships at the s"pert+pe level transform as "s"al. %elationships at s"bt+pe level are implemented as foreign !e+s5 b"t the foreign !e+ col"mns all become mandator+. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( -ncorrect. %efer to Section 12 >. <n V<rc -mplementationW can be done 3"st li!e an+ other %elationship X +o" simpl+ add the re:"ired Foreign 6e+s. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( -ncorrect. %efer to Section 12 1?. $an+ to man+ relationships are implemented via a str"ct"re called a8 1111111111111111 $ar!eren voor na!i3!en '1( )"nten S"pert+pe -ntersection Table '*( -ntersection Entit+ S"bt+pe

-ncorrect. %efer to Section 12 Section 12 11. -t is possible to implement non-transferabilit+ via a simple Foreign 6e+ %elationship. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( orrect Section 1. 12. /hat command can be "sed to create a ne& ro& in a table in the database# $ar!eren voor na!i3!en '1( )"nten %E<TE 0E/ <DD -0SE%T '*( orrect. 1.. The 1111111 cla"se can be added to a SEAE T statement to ret"rn a s"bset of the data. $ar!eren voor na!i3!en '1( )"nten <0,/BE%E /B- B /BE%E '*( ECE%, orrect. Section 1;

14. -n a SEAE T cla"se5 &hat is the res"lt of 2 2 . * 2# $ar!eren voor na!i3!en '1( )"nten ; 8 '*( 1? 1. orrect. 17. -n a SFA statement5 &hich cla"se specifies one or more col"mns to be ret"rned b+ the :"er+# $ar!eren voor na!i3!en '1( )"nten SEAE T '*( F%O$ /BE%E <n+ of the above options5 +o" can list col"mns &herever +o" &ant to in a SEAE T statement. -ncorrect. See Section 1; 1;. /hen listing col"mns in the SEAE T list5 &hat sho"ld +o" "se to separate the col"mns# $ar!eren voor na!i3!en '1( )"nten ommas '*( Semicolons Dashes 9nderscores orrect. 1=. -n the defa"lt order of precedence5 &hich operator &o"ld be eval"ated first# $ar!eren voor na!i3!en '1( )"nten S"btractions

$"ltiplications '*( <dditions Divisions -ncorrect. See Section 1; 18. -f a SFA statement ret"rns data from t&o or more tables5 &hich SFA capabilit+ is being "sed# $ar!eren voor na!i3!en '1( )"nten Selection )ro3ection Goining '*( -nsertion -ncorrect. See Section 1; 1>. The SEAE T statement retrieves information from the database. -n a SEAE T statement5 +o" can do all of the follo&ing EH E)T8 $ar!eren voor na!i3!en '1( )"nten )ro3ection $anip"lation '*( Goining Selection -ncorrect. See Section 1; 2?. /hich SFA statement &ill ret"rn an error# $ar!eren voor na!i3!en '1( )"nten SEA * F% s!+E '*( select star from s!+E SEAE T star F%O$ s!+E SEAE T * F%O$ s!+E

orrect. Section 1; 21. -n a SEAE T statement <dditions are eval"ated before $"ltiplications. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( orrect. 22. ,o" cannot "se comp"ters "nless +o" completel+ "nderstand exactl+ ho& the+ &or!. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar 0iet &aar '*( orrect. Section 1= 2.. /here in a SFA statement can +o" not "se arithmetic operators# $ar!eren voor na!i3!en '1( )"nten SEAE T F%O$ '*( /BE%E 0O0E -ncorrect. See Section 1=. 24. /hich cla"se &o"ld +o" incl"de in a SEAE T statement to restrict the data ret"rned to onl+ the emplo+ees in department 1?# $ar!eren voor na!i3!en '1( )"nten /BE%E '*( F%O$

SEAE T -S orrect. 27. /hich of the follo&ing elements cannot be incl"ded in a /BE%E cla"se# $ar!eren voor na!i3!en '1( )"nten < col"mn alias '*( < col"mn name < comparison condition < constant -ncorrect. See Section 1=. 2;. /hich operator is "sed to combine col"mns of character strings to other col"mns# $ar!eren voor na!i3!en '1( )"nten * Z 2 [[ '*( -ncorrect. See Section 1= 2=. /hat does the D-ST-0 T !e+&ord do &hen it is "sed in a SEAE T cla"se# $ar!eren voor na!i3!en '1( )"nten Bides 09AA val"es Eliminates all "ni:"e val"es and compares val"es Eliminates d"plicate ro&s in the res"lt '*( Eliminates onl+ "ni:"e ro&s in the res"lt

orrect. See Section 1= 28. ,o" need to displa+ emplo+ees &hose salar+ is in the range of .???? and 7????. /hich comparison operator sho"ld +o" "se# $ar!eren voor na!i3!en '1( )"nten -0 A-6E @ET/EE0R<0DR '*( -S 09AA -ncorrect. See Section 1=. 2>. Eval"ate this SEAE T statement8 SEAE T * F%O$ emplo+ees /BE%E department1id -0'1?5 2?5 .?( <0D salar+ K 2????E /hich val"es &o"ld ca"se the logical condition to ret"rn T%9E# $ar!eren voor na!i3!en '1( )"nten DE)<%T$E0T1-D L 1? and S<A<%, L 2???? DE)<%T$E0T1-D L 2? and S<A<%, L 2???? DE)<%T$E0T1-D L n"ll and S<A<%, L 2???1 DE)<%T$E0T1-D L 1? and S<A<%, L 2???1 '*( -ncorrect. See Section 1= .?. ,o" &ant to retrieve a list of c"stomers &hose last names begin &ith the letters Fr . /hich !e+&ord sho"ld +o" incl"de in the /BE%E cla"se of +o"r SEAE T statement to achieve the desired res"lt# $ar!eren voor na!i3!en '1( )"nten <0D -0 @ET/EE0 A-6E '*(

orrect. See Section 1= Section 1= .1. ,o" need &rite a SEAE T statement that sho"ld onl+ ret"rn ro&s that contain .45 4;5 or 48 for the DE)<%T$E0T1-D col"mn. /hich operator sho"ld +o" "se in the /BE%E cla"se to compare the DE)<%T$E0T1-D col"mn to this specific list of val"es# $ar!eren voor na!i3!en '1( )"nten L QL -0 '*( @ET/EE0..<0D.. -ncorrect. See Section 1=. .2. ,o" &ant to retrieve a list of c"stomers &hose last names begin &ith the letters Fr . /hich s+mbol sho"ld +o" incl"de in the /BE%E cla"se of +o"r SEAE T statement to achieve the desired res"lt# $ar!eren voor na!i3!en '1( )"nten O '*( U S * orrect. See Section 1= ... ,o" &ant to determine the orders that have been placed b+ c"stomers &ho reside in hicago. ,o" &rite this partial SEAE T statement8 SEAE T orderid5 orderdate5 total F%O$ ordersE /hat sho"ld +o" incl"de in +o"r SEAE T statement to achieve the desired res"lts# $ar!eren voor na!i3!en '1( )"nten <0D cit+ L hicagoE <0D cit+ L T hicagoDE

/BE%E cit+ L T hicagoDE '*( /BE%E cit+ L hicagoE orrect. .4. The E$)AO,EES table contains these col"mns8 A<ST10<$E C<% B<%2'27( F-%ST10<$E C<% B<%2'27( E$<-A C<% B<%2'7?( ,o" are &riting a SEAE T statement to retrieve the names of emplo+ees that have an email address. SEAE T last1name[[D5 T[[first1name VEmplo+ee 0ameW F%O$ emplo+eesE /hich /BE%E cla"se sho"ld +o" "se to complete this statement# $ar!eren voor na!i3!en '1( )"nten /BE%E email L 09AAE /BE%E email QL 09AAE /BE%E email -S 09AAE /BE%E email -S 0OT 09AAE '*( -ncorrect. See Section 1=. .7. ,o" &ant to create a report that displa+s all emplo+ees &ho &ere hired before Gan"ar+ 15 2??? and &hose ann"al salaries are greater than 7????. The E$)AO,EES table contains these col"mns8 E$)AO,EE1-D C<% B<%2'7( )%-$<%, 6E, A<ST10<$E C<% B<%2'.7( B-%ED<TE D<TE DE)<%T$E0T1-D 09$@E%'4( The S<A<%, table contains these col"mns8 S<A<%,-D C<% B<%2'7( )%-$<%, 6E, S<A<%, 09$@E%'75 2( E$)AO,EE1-D C<% B<%2'7( FO%E-I0 6E, /hich :"er+ sho"ld +o" iss"e# $ar!eren voor na!i3!en '1( )"nten SEAE T last1name5 hiredate5 salar+ F%O$ emplo+ees 0<T9%<A GO-0 salar+ 9S-0I emplo+ee1id /BE%E hiredate 7????E

SEAE T last1name5 hiredate5 salar+ F%O$ emplo+ees GO-0 salar+ O0 emplo+ee1id L emplo+ee1id /BE%E hiredate 7????E SEAE T last1name5 hiredate5 salar+ F%O$ emplo+ees 0<T9%<A GO-0 salar+ /BE%E hiredate 7????E '*( SEAE T last1name5 hiredate5 salar+ F%O$ emplo+ees '2( salar+ /BE%E hiredate 7????E -ncorrect .;. The E$)AO,EES table contains these col"mns8 E$)AO,EE1-D 09$@E%'>( )rimar+6e+ A<ST10<$E C<% B<%2 '2?( F-%ST10<$E C<% B<%2 '2?( DE)<%T$E0T1-D 09$@E%'7( 0OT 09AA $<0<IE%1-D 09$@E%'>( 0OT 09AA Eval"ate these t&o SEAE T statements8 1. SEAE T D-ST-0 T emplo+ee1id5 department1id5 manager1id F%O$ emplo+eesE 2. SEAE T emplo+ee1id5 department1id5 manager1id F%O$ emplo+eesE /hich of the follo&ing statements is tr"e# $ar!eren voor na!i3!en '1( )"nten The t&o statements &ill displa+ the same data. '*( The first statement &ill displa+ a partic"lar DE)<%T$E0T1-D onl+ once. The first statement &ill 0OT displa+ val"es from all of the ro&s in the E$)AO,EES table The second statement co"ld displa+ a "ni:"e combination of the E$)AO,EE1-D5 $<0<IE%1-D5 and DE)<%T$E0T1-D val"es more than once. -ncorrect. See Section 1= Section 18 .=. The )A<,E%S table contains these col"mns8 )A<,E%S T<@AE8 A<ST10<$E C<% B<%2 '2?( F-%ST10<$E C<% B<%2 '2?( S<A<%, 09$@E%'852(

TE<$1-D 09$@E%'4( $<0<IE%1-D 09$@E%'>( )OS-T-O01-D 09$@E%'4( ,o" &ant to displa+ all pla+ersD names &ith position ;>?? or greater. ,o" &ant the pla+ers names to be displa+ed alphabeticall+ b+ last name and then b+ first name. /hich statement sho"ld +o" "se to achieve the re:"ired res"lts# $ar!eren voor na!i3!en '1( )"nten SEAE T last1name5 first1name F%O$ pla+ers /BE%E position1id KL ;>?? O%DE% @, last1name5 first1nameE '*( SEAE T last1name5 first1name F%O$ pla+ers /BE%E position1id K ;>?? O%DE% @, last1name5 first1nameE SEAE T last1name5 first1name F%O$ pla+ers /BE%E position1id L ;>?? O%DE% @, last1name DES 5 first1nameE orrect. .8. The E$)AO,EES table contains these col"mns8 E$)AO,EE1-D 09$@E%'>( )6 A<ST10<$E C<% B<%2'27( F-%ST10<$E C<% B<%2'27( DE)<%T$E0T1-D 09$@E%'>( ompare these t&o SFA statements8 1. SEAE T D-ST-0 T department1id DE)T5 last1name5 first1name F%O$ emplo+ees O%DE% @, department1idE 2. SEAE T department1id DE)T5 last1name5 first1name F%O$ emplo+ees O%DE% @, DE)TE Bo& &ill the res"lts differ# $ar!eren voor na!i3!en '1( )"nten One of the statements &ill ret"rn a s+ntax error. One of the statements &ill eliminate all d"plicate DE)<%T$E0T1-D val"es.

There is no difference in the res"lt bet&een the t&o statements. '*( The statements &ill sort on different col"mn val"es. -ncorrectQ See Section 18. .>. /hich logical operator ret"rns T%9E if either condition is tr"e# $ar!eren voor na!i3!en '1( )"nten O% '*( <0D 0OT @OTB -ncorrect. See Section 18 4?. /hich statement abo"t the logical operators is tr"e# $ar!eren voor na!i3!en '1( )"nten The order of operator precedence is <0D5 O%5 and 0OT. The order of operator precedence is <0D5 0OT5 and O%. The order of operator precedence is 0OT5 O%5 and <0D. The order of operator precedence is 0OT5 <0D5 and O%. '*( -ncorrect. See Section 18 Test8 Final Exam Semester 1 @e!i3! "& ant&oorden5 feedbac! en scores hieronder. Een asteris! '*( geeft een goed ant&oord aan. Semester 1 Final Term Exam covers Sections 11-18 of Database Design. Section 18 41. From left to right5 &hat is the correct order of )recedence# $ar!eren voor na!i3!en '1( )"nten <rithmetic5 oncatenation5 omparison5 O% '*(

0OT5 <0D5 O%5 <rithmetic <rithmetic5 0OT5 Aogical5 omparison <rithmetic5 0OT5 oncatenation5 Aogical -ncorrect. See Section 18 42. The O%DE% @, cla"se al&a+s comes last. Tr"e or False# $ar!eren voor na!i3!en '1( )"nten /aar '*( 0iet &aar orrect. 4.. ,o" need to change the defa"lt sort order of the O%DE% @, cla"se so that the data is displa+ed in reverse alphabetical order. /hich !e+&ord sho"ld +o" incl"de in the O%DE% @, cla"se# $ar!eren voor na!i3!en '1( )"nten DES '*( <S SO%T B<0IE orrect. 44. /hich comparison condition means VAess Than or E:"al To#W $ar!eren voor na!i3!en '1( )"nten VL(W V2LW W 7?(E /hich t&o val"es co"ld the statement ret"rn# ' hoose t&o.( $ar!eren voor na!i3!en '1( )"nten '6ies alle goede ant&oorden.( 1

7? 27 '*( 1? 27? '*( 1?? -ncorrectQ See Section 18. 48. ,o" need to create a report to displa+ all emplo+ees that &ere hired on or before Gan"ar+ 15 1>>;. The data sho"ld displa+ in this format8 Emplo+ee Start Date and Salar+ 148.= X Smith 1?-$<,->2 Z 7??? /hich SEAE T statement co"ld +o" "se# $ar!eren voor na!i3!en '1( )"nten SEAE T emplo+ee1id [[ X [[ last1name VEmplo+eeW5 hire1date [[ Z [[ salar+ VStart Date and Salar+ F%O$ emplo+ees /BE%E hire1date JL \?1-G<0->;\E SEAE T emplo+ee1id [[\ \[[ last1name ]Emplo+ee]5 hire1date [[\ \[[ salar+ ]Start Date and Salar+] F%O$ emplo+ees /BE%E hire1date JL ?1-G<0->;\E SEAE T emplo+ee1id [[\]- ][[ last1name ]Emplo+ee]5 hire1date [[] Z ][[ salar+ Start Date and Salar+] F%O$ emplo+ees /BE%E hire1date JL \?1-G<0->;\E SEAE T emplo+ee1id [[\ X \[[ last1name \Emplo+ee\5 hire1date [[\ Z \[[ salar+ \Start Date and Salar+] F%O$ emplo+ees /BE%E hire1date JL \?1-G<0->;\E SEAE T emplo+ee1id [[\ X \[[ last1name ]Emplo+ee]5 hire1date [[\ Z \[[ salar+ ]Start Date and Salar+] F%O$ emplo+ees /BE%E hire1date JL \?1-G<0->;\E '*( -ncorrectQ See Section 18.

4>. Eval"ate this SEAE T statement8 SEAE T last1name5 first1name5 salar+ F%O$ emplo+eesE Bo& &ill the res"lts of this :"er+ be sorted# $ar!eren voor na!i3!en '1( )"nten The database &ill displa+ the ro&s in &hatever order it finds it in the database5 so no partic"lar order. '*( The res"lts &ill be sorted ascending b+ the A<ST10<$E col"mn onl+. The res"lts &ill be sorted ascending b+ A<ST10<$E and F-%ST10<$E onl+. The res"lts &ill be sorted ascending b+ A<ST10<$E5 F-%ST10<$E5 and S<A<%,. orrect. 7?. /hich SEAE T statement sho"ld +o" "se to limit the displa+ of prod"ct information to those prod"cts &ith a price of less than 7?# $ar!eren voor na!i3!en '1( )"nten SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts /BE%E price J 7?E '*( SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts B<C-0I price J 7?E SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts /BE%E price JL 7?E SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts I%O9) @, price J 7?E SEAE T prod"ct1id5 prod"ct1name F%O$ prod"cts /BE%E price J 7?.?? I%O9) @, priceE orrect.

Eval"ate this SEAE T statement8 SEAE T last1name5 first1name5 salar+ F%O$ emplo+eesE Bo& &ill the res"lts of this :"er+ be sorted# The database &ill displa+ the ro&s in &hatever order it finds it in the database5 so no partic"lar order. '*(

Which SELECT statement should you use to limit the display of product information to those products with a price of less than 50? SELECT product_id, product_name F !" products W#E E price $ 50% &'(

)ttri*utes *ecome ta*les in a data*ase+ True or False? False

When mappin, supertypes, relationships at the supertype le-el transform as usual+ elationships at su*type le-el are implemented as forei,n .eys, *ut the forei,n .ey columns all *ecome mandatory+ True or False? False

)n /)rc 0mplementation1 can *e done 2ust li.e any other add the re4uired Forei,n 5eys+ True or False? False

elationship 3 you simply

You might also like