exam questions

Exam 1z0-071 All Questions

View all questions & answers for the 1z0-071 exam

Exam 1z0-071 topic 1 question 97 discussion

Actual exam question from Oracle's 1z0-071
Question #: 97
Topic #: 1
[All 1z0-071 Questions]

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.)

  • A. WHERE INITCAP(SUBSTR(cust_name, INSTR(cust_name, ' ') + 1)) LIKE 'Mc%'
  • B. WHERE SUBSTR(cust_name, INSTR(cust_name, ' ') + 1) LIKE 'Mc%'
  • C. WHERE SUBSTR(cust_name, INSTR(cust_name, ' ') + 1 ) LIKE 'Mc%' OR 'MC%'
  • D. WHERE UPPER(SUBSTR(cust_name, INSTR(cust_name, ' ') + 1)) LIKE UPPER('MC%')
  • E. WHERE INITCAP(SUBSTR(cust_name, INSTR(cust_name, ' ’) + 1)) IN ('MC%', 'Mc%)
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Thameur01
2 months, 3 weeks ago
Selected Answer: BD
A: Incorrect: INITCAP changes the first character of the extracted last name to uppercase and the rest to lowercase. However, this does not work for "MC" because INITCAP would change it to "Mc." B:Correct: This extracts the last name and matches it directly against "Mc%" (case-sensitive). This works because "Mc" is explicitly matched. D: Correct: UPPER ensures that both the extracted last name and the pattern are converted to uppercase, making the comparison case-insensitive. This matches both "Mc" and "MC."
upvoted 1 times
...
lucemqy
5 months ago
Selected Answer: AD
AD is correct LIKE is case sensitive
upvoted 1 times
...
zouve
10 months ago
AD tested 100% guarantee
upvoted 1 times
...
Nelita
10 months, 3 weeks ago
Selected Answer: AD
AD ARE CORRECT
upvoted 1 times
...
kuff
11 months, 2 weeks ago
Selected Answer: AD
AD is the answer
upvoted 1 times
...
pmeyer
11 months, 3 weeks ago
Selected Answer: AD
A and D are correct, B is wrong.
upvoted 1 times
...
Poke90
1 year ago
Selected Answer: AD
B is wrong
upvoted 1 times
...
Rik92
1 year, 1 month ago
Selected Answer: AD
Tried all, AD are correct. B is incorrect as it only returns McCain and not MCEwan due to Mc and MC mismatch.
upvoted 4 times
...
greenneem
1 year, 2 months ago
B is correct. D is incorrect as it will also generate the last name starts with small letter m.
upvoted 1 times
...
dexdinh91
1 year, 3 months ago
Selected Answer: AD
AD are correct
upvoted 2 times
...
Viviana3184
1 year, 3 months ago
AD are correct
upvoted 1 times
...
Babi265
1 year, 4 months ago
AD is the correct answer
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago