Oracle
1Z0-071 · Question #395
Examine the description of the CUSTOMERS table: Which two SELECT statements will return these results (Choose two.):
The correct answer is C. SELECT customer_name FROM customers WHERE UPPER (customer_name) LIKE `MA*'; D. SELECT customer_name FROM customers WHERE UPPER (customer_name) LIKE `MA%'. You can use the UPPER function to perform a case-insensitive match, as in this condition: UPPER(last_name) LIKE 'SM%' https://docs.oracle.com/cd/B12037_01/server.101/b10759/conditions016.htm
Restricting and Sorting Data
Question
Examine the description of the CUSTOMERS table:
Which two SELECT statements will return these results (Choose two.):
Exhibit
Options
- ASELECT customer_name FROM customers WHERE customer_name = `Ma';
- BSELECT customer_name FROM customers WHERE customer_name LIKE `Ma';
- CSELECT customer_name FROM customers WHERE UPPER (customer_name) LIKE `MA*';
- DSELECT customer_name FROM customers WHERE UPPER (customer_name) LIKE `MA%';
- ESELECT customer_name FROM customers WHERE customer_name LIKE `Ma%';
- FSELECT customer_name FROM customers WHERE customer_name LIKE `%a%';
- GSELECT customer_name FROM customers WHERE customer_name LIKE `Ma*';
How the community answered
(49 responses)- A2% (1)
- B8% (4)
- C71% (35)
- E4% (2)
- F14% (7)
Explanation
You can use the UPPER function to perform a case-insensitive match, as in this condition: UPPER(last_name) LIKE 'SM%' https://docs.oracle.com/cd/B12037_01/server.101/b10759/conditions016.htm
Topics
#LIKE operator#wildcard characters#UPPER function#pattern matching
Community Discussion
No community discussion yet for this question.
