nerdexam
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

1Z0-082 question #159 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)
  • A
    83% (19)
  • B
    4% (1)
  • D
    9% (2)
  • E
    4% (1)

Topics

#WHERE LIKE clause#ORDER BY#column aliases#SQL filtering

Community Discussion

No community discussion yet for this question.

Full 1Z0-082 Practice