nerdexam
Oracle

1Z0-047 · Question #18

View the Exhibit and examine the description of the EMPLOYEES table. Your company decided to give a monthly bonus of $50 to all the employees who have completed five years in the company. The…

The correct answer is C. Change the SELECT clause to SELECT last_name, department_id, (salary +50)*12 "Annual Compensation". See the full explanation below for the reasoning.

Question

View the Exhibit and examine the description of the EMPLOYEES table. Your company decided to give a monthly bonus of $50 to all the employees who have completed five years in the company. The following statement is written to display the LAST_NAME, DEPARTMENT_ID, and the total annual salary:

SELECT last_name, department_id, salary+50*12 "Annual Compensation" FROM employees WHERE MONTHS_BETWEEN(SYSDATE, hire_date)/12 >= 5; When you execute the statement, the "Annual Compensation" is not computed correctly. What changes would you make to the query to calculate the annual compensation correctly?

Exhibit

1Z0-047 question #18 exhibit

Options

  • AChange the SELECT clause to SELECT last_name, department_id, salary*12+50 "Annual Compensation".
  • BChange the SELECT clause to SELECT last_name, department_id, salary+(50*12) "Annual Compensation".
  • CChange the SELECT clause to SELECT last_name, department_id, (salary +50)*12 "Annual Compensation".
  • DChange the SELECT clause to SELECT last_name, department_id, (salary*12)+50 "Annual Compensation".

How the community answered

(67 responses)
  • A
    12% (8)
  • B
    6% (4)
  • C
    79% (53)
  • D
    3% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-047 Practice