nerdexam
Oracle

1Z0-082 · Question #19

The CUSTOMERS table has a CUST_CREDIT_LIMIT column of data type NUMBER. Which two queries execute successfully? (Choose two.)

The correct answer is B. SELECT NVL2(cust_credit_limit * .15, `Not Available') FROM customers; C. SELECT NVL(TO_CHAR(cust_credit_limit * .15), `Not Available') FROM customers. See the full explanation below for the reasoning.

SQL and PL/SQL

Question

The CUSTOMERS table has a CUST_CREDIT_LIMIT column of data type NUMBER. Which two queries execute successfully? (Choose two.)

Options

  • ASELECT NVL(cust_credit_limit * .15, `Not Available') FROM customers;
  • BSELECT NVL2(cust_credit_limit * .15, `Not Available') FROM customers;
  • CSELECT NVL(TO_CHAR(cust_credit_limit * .15), `Not Available') FROM customers;
  • DSELECT TO_CHAR(NVL(cust_credit_limit * .15, `Not Available')) FROM customers;
  • ESELECT NVL2(cust_credit_limit, TO_CHAR(cust_credit_limit * .15), `Not Available') FROM

How the community answered

(27 responses)
  • A
    7% (2)
  • B
    74% (20)
  • D
    4% (1)
  • E
    15% (4)

Topics

#NVL#NVL2#NULL handling#implicit type conversion

Community Discussion

No community discussion yet for this question.

Full 1Z0-082 Practice