Oracle
1Z0-071 · Question #367
Examine the description of the MEMBERS table: Examine the partial query: SELECT city, last_name LNAME FROM members ...; You want to display all cities that contain the string AN. The cities must be…
The correct answer is C. ORDER BY 1, LNAME DESC F. WHERE city LIKE `%AN%'. See the full explanation below for the reasoning.
Question
Examine the description of the MEMBERS table:
Examine the partial query:
SELECT city, last_name LNAME FROM members …; You want to display all cities that contain the string AN. The cities must be returned in ascending order, with the last names further sorted in descending order. Which two clauses must you add to the query? (Choose two.)
Options
- AORDER BY last_name DESC, city ASC
- BWHERE city IN (`%AN%')
- CORDER BY 1, LNAME DESC
- DORDER BY 1, 2
- EWHERE city = `%AN%'
- FWHERE city LIKE `%AN%'
How the community answered
(39 responses)- A3% (1)
- B3% (1)
- C77% (30)
- D10% (4)
- E8% (3)
Community Discussion
No community discussion yet for this question.