nerdexam
Oracle

1Z0-071 · Question #186

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

The correct answer is A. SELECT first_name, salary, salary*12+(salary*NVL2 (commission_pct. 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 renumeration for each employee. Total renumeration is the sum of the annual salary and the percentage commission earned for a year. Only a few employees earn commission. Which SQL statement would you execute to get the desired output?

Exhibit

1Z0-071 question #186 exhibit

Options

  • ASELECT first_name, salary, salary12+(salaryNVL2 (commission_pct,
  • BSELECT first_name, salary, salary12+salarycommission_pct "Total" FROM EMPLOYEES;
  • CSELECT first_name, salary (salary + NVL (commission_pct, 0)*salary)*12 "Total"
  • DSELECT first_name, salary*12 + NVL(salary,0)*commission_pct, "Total" FROM EMPLOYEES;

How the community answered

(52 responses)
  • A
    83% (43)
  • B
    10% (5)
  • C
    6% (3)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-071 Practice