Você está na página 1de 6

1. You need to display the HIRE_DATE values in this format: 2 th of !uly 2""2.

#hi$h %E&E'T statement (ould you use) %E&E'T T*_'HAR+hire_date, -ddth .of. /onth YYYY-0 1R*/ employees2 +30

2.

%ysdate is 124/AY42""5.

You need to store the follo(in6 date: 74DE'489 #hi$h statement a:out the date format for this value is true) The RR date format (ill interpret the year as 1989, and the YY date format (ill interpret the year as 2"89 +30

;.

#hi$h statement is true a:out %<& fun$tions) a, : and $ are true. +30

5. #hi$h statement (ill return the salary +for e=ample, the salary of >"""0 from the Employees ta:le in the follo(in6 format) ?>"""."" %E&E'T T*_'HAR+salary, -?99999.""-0 %A&ARY 1R*/ employees +30

The follo(in6 s$ript (ill run su$$essfully. True or 1alse)

%E&E'T T*_'HAR+T*_DATE+-2 4DE'4"5-,-dd4/*@4yy-00 1R*/ dual True +30

>.

A ta:le has the follo(in6 definition: E/A&*YEE%+

E/A&*YEE_ID @B/CER+>0 @*T @B&&, @A/E DAR'HAR2+2"0 @*T @B&&, /A@AEER_ID DAR'HAR2+>00

and $ontains the follo(in6 ro(s:

+1""1, -Co: Cevan-, -2""-0 +2"", -@ata$ha Hansen-, null0

#ill the follo(in6 Fuery (orG)

%E&E'T 3 1R*/ employees #HERE employee_id H mana6er_id2

Yes, *ra$le (ill perform impli$it datatype $onversion, :ut the #HERE $lause (ill not find any mat$hin6 data. +30

7.

The follo(in6 s$ript (ill run su$$essfully. True or false)

%E&E'T T*_'HAR+T*_DATE+-2 4DE'4"5-, -dd4/*@4yy-00 1R*/ dual True +30

1.

The follo(in6 statement returns " +Iero0. True or 1alse)

%E&E'T 121J@B&& 1R*/ dual2 1alse +30

2.

If Fuantity is a num:er datatype, (hat is the result of this statement)

%E&E'T @D&+2""JFuantity, -Iero-0 1R*/ inventory2 The statement fails +30

;.

#hi$h fun$tion $ompares t(o e=pressions) @B&&I1 +30

5. 'onsider the follo(in6 data in the Employees ta:le: +last_name, $ommission_p$t, mana6er_id0 DATA: Kin6, null, null Ko$hhar, null, 1"" Dar6as, null, 125 LlotGey, .2, 1"" #hat is the result of the follo(in6 statement: %E&E'T last_name, '*A&E%'E+$ommission_p$t, mana6er_id, 410 $omm 1R*/ employees 2 Kin6, 41 Ko$hhar, 1"" Dar6as, 125 LlotGey, .2+30

. #ith the follo(in6 data in Employees +last_name, $ommission_p$t, mana6er_id0 (hat is the result of the follo(in6 statement) DATA: Kin6, null, null Ko$hhar, null, 1"" Dar6as, null, 125 LlotGey, .2, 1"" %E&E'T last_name, @D&2+$ommission_p$t, mana6er_id, 410 $omm 1R*/ employees 2 Kin6, 41 Ko$hhar, 41 Dar6as, 41 LlotGey, 1""+30

1. 'A%E and DE'*DE evaluate e=pressions in a similar (ay to I14THE@4E&%E lo6i$. Ho(ever, DE'*DE is spe$ifi$ to *ra$le synta=. True or 1alse) True +30

2.

#hi$h of the follo(in6 is a $onditional e=pression used in %<&) 'A%E +30

;. #hi$h statement (ill return a listin6 of last names, salaries, and a ratin6 of -&o(-, -/edium-, -Eood- or -E=$ellent- dependin6 on the salary value)

%E&E'T last_name,salary, +'A%E #HE@ salaryM """ THE@ -&o(#HE@ salaryM1"""" THE@ -/edium#HE@ salaryM2"""" THE@ -EoodE&%E -E=$ellentE@D0 Fualified_salary 1R*/ employees2 +30

5. 1or the 6iven data from Employees +last_name, mana6er_id0 (hat is the result of the follo(in6 statement: DATA:+ Kin6, null Ko$hhar, 1"" De Haan, 1"" Hunold, 1"2 Ernst, 1";0 %E&E'T last_name, DE'*DE+mana6er_id, 1"", -Kin6-, -A @ *ther-0 .#orGs 1or). 1R*/ employees Kin6, A @ *ther Ko$hhar, Kin6 De Haan, Kin6 Hunold, A @ *ther Ernst, A @ *ther +30