Practica4 PDF

You might also like

You are on page 1of 3

OracIe Database 11: SQL FundamentaIs I 4 - 45

Practice 4
1. Create a report that produces the lollowing lor each employee:
<emp!cyee !asf name> eans <sa!ay> mcnfb!y buf wanfs <3 fimes
sa!ay>. Iabel the column Leam Sa!aies.
2. Display each employees last name, hire date, and salary review date, which is the lirst Monday
alter six months ol service. Iabel the column L'1LW. Format the dates to appear in the lormat
similar to Monday, the ThirtyFirst ol |uly, 2OOO.`
.
.
ry review date, which is the lirst Monday
. Format the dates to appear in the lormat
.
OracIe Database 11: SQL FundamentaIs I 4 - 46
Practice 4 (continued)
8. Display the last name, hire date, and day ol the week on which the employee started. Iabel the
column LAY. Order the results by the day ol the week, starting with Monday.
4. Create a query that displays the employees last names and commission amounts. Il an employee
does not earn commission, show No Commission.` Iabel the column C0''.
.
.
mmission amounts. Il an employee
C0''
.
OracIe Database 11: SQL FundamentaIs I 4 - 47
Practice 4 (continued)
Il you have time, complete the lollowing exercises:
5. Using the LLC0LL lunction, write a query that displays the grade ol all employees based on the
value ol the column J0B_1L, using the lollowing data:
Job Grade
AL_LS A
ST_'AN B
1T_0C C
SA_L L
ST_CLLK L
Ncne c1 fbe abcve
b. Rewrite the statement in the preceding exercise using the CASL syntax.
.
.
b. Rewrite the statement in the preceding exercise using the b. Rewrite the statement in the preceding exercise using the

You might also like