Oracle
1Z0-082 · Question #159
Examine the description of the members table: Examine the partial query: SELECT city, last__name 1NAME FROM members You want to display all cities that contain the string an. The cities must be…
The correct answer is A. ORDER BY 1, LNAME DESC C. WHERE city LIKE *%AN%*. See the full explanation below for the reasoning.
SQL and PL/SQL
Question
Examine the description of the members table:
Examine the partial query:
SELECT city, last__name 1NAME 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?
Exhibit
Options
- AORDER BY 1, LNAME DESC
- BORDER BY 1, 2
- CWHERE city LIKE %AN%
- DWHERE city = =%AN%'
- EWHERE city IN (?AN%')
- FORDER BY last_narae DESC, city ASC
How the community answered
(23 responses)- A83% (19)
- B4% (1)
- D9% (2)
- E4% (1)
Topics
#WHERE LIKE clause#ORDER BY#column aliases#SQL filtering
Community Discussion
No community discussion yet for this question.
