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) LIKEMc%' - 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) LIKEMc%' OR `MC%' - EWHERE INITCAP (SUBSTR (cust_name, INSTR(cust_name,
')+1)) LIKEMc%'
How the community answered
(44 responses)- A73% (32)
- B16% (7)
- C7% (3)
- E5% (2)
Community Discussion
No community discussion yet for this question.