nerdexam
Oracle

1Z0-071 · Question #266

Examine the data in the CUST_NAME column of the CUSTOMERS table: You want to display the CUST_NAME values where the last name starts with Mc or MC. Which two WHERE clauses give the required result?…

The correct answer is A. WHERE SUBSTR (cust_name, INSTR (cust_name, `') +1) LIKE `Mc%' D. WHERE SUBSTR (cust_name, INSTR (cust_name, `') +1) LIKE `Mc%' OR `MC%'. See the full explanation below for the reasoning.

Question

Examine the data in the CUST_NAME column of the CUSTOMERS table:

You want to display the CUST_NAME values where the last name starts with Mc or MC. Which two WHERE clauses give the required result? (Choose two.)

Options

  • AWHERE SUBSTR (cust_name, INSTR (cust_name, ') +1) LIKE Mc%'
  • BWHERE INITCAP (SUBSTR (cust_name, INSTR(cust_name, ')+1)) IN (MC%', `Mc%)
  • CWHERE UPPER (SUBSTR (cust_name, INSTR(cust_name, ')+1)) LIKE UPPER (MC%')
  • DWHERE SUBSTR (cust_name, INSTR (cust_name, ') +1) LIKE Mc%' OR `MC%'
  • EWHERE INITCAP (SUBSTR (cust_name, INSTR(cust_name, ')+1)) LIKE Mc%'

How the community answered

(44 responses)
  • A
    73% (32)
  • B
    16% (7)
  • C
    7% (3)
  • E
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-071 Practice