Question: Practice 4: Using Conversion Functions and Conditional Expressions Create a report that produces the following for each employee: < employee last name > earns <

Practice 4: Using Conversion Functions and Conditional Expressions

Create a report that produces the following for each employee:

<employee last name> earns <salary> monthly but wants <3 times salary.>. Label the column as Dream Salaries.

Display each employees last name, hire date, and salary review date, which is the first Monday after six months of service. Label the column REVIEW. Format the dates to appear in the format similar to Monday, the Thirty-First of July, 2000.

Display the last name, hire date, and day of the week on which the employee started. Label the column as DAY. Order the results by the day of the week, starting with Monday.

Create a query that displays the employees last names and commission amounts. If an employee does not earn commission, show No Commission. Label the column as COMM.

Using the DECODE function, write a query that displays the grade of all employees based on the value of the JOB_ID column, using the following data: Job Grade

AD_PRES A ST_MAN B IT_PROG C SA_REP D

ST_CLERK E None of the above 0

Rewrite the statement in the preceding exercise using the CASE syntax.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!