Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Practice March 17, 2016

1. Using the DECODER function, write a query that displays the performance of al
employees
based on the value of the column Manager_ID, using the following data.
Manager_ID
Performance
100
Brilliant
120
Superb
122
Exceptional
146
Outstanding
148
Admirable
Non of the above
Normal
2. Rewrite the statement in the preceding exercise using the CASE syntax.
3. Tentukan gaji tertinggi, terendah total gaji dan rata-rata gaji dari setiap p
egawai. Beri naa
kolom yang dibuat dengan nama Maximum, Minimum, Sum, dan Average. Bulatkan ha
sil yang
didapat dengan 1 angka di belakang koma.

You might also like