nerdexam
Oracle

1Z0-047 · Question #97

View the Exhibit and examine the description of the EMPLOYEES table. You want to calculate the total remuneration for each employee. Total remuneration is the sum of the annual salary and the…

The correct answer is B. SELECTfirst_name,salary, salary*12+NVL((salary*commission_pct), 0) "Total" FROMEMPLOYEES. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the description of the EMPLOYEES table. You want to calculate the total remuneration for each employee. Total remuneration is the sum of the annual salary and the percentage commission earned for a year. Only a few employees earn commission. Which SOL statement would you execute to get the desired output?

Exhibit

1Z0-047 question #97 exhibit

Options

  • ASELECTfirst_name, salary, salary12+salarycommission_pct "Total" FROM EMPLOYEES;
  • BSELECTfirst_name,salary, salary12+NVL((salarycommission_pct), 0) "Total" FROMEMPLOYEES;
  • CSELECTfirst_name, salary, salary*12 + NVL(salary, O)*commission_pct "Total" FROM EMPLOYEES;
  • DSELECTfirst_name, salary, salary12+(salaryNVL2(commission_pct, salary,salary+commission_pct))"Total"

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    74% (23)
  • C
    6% (2)
  • D
    16% (5)

Community Discussion

No community discussion yet for this question.

Full 1Z0-047 Practice