QuestionQ110

VerifiedUsing Subqueries to Solve Queries

Refer to the exhibit and review the structure of the products table.

Question Image

Assess the following query:

Question Image

What is the result of running the preceding SQL statement?

Explanation

The nested subqueries find the highest prod_list_price, then find the greatest price that is lower than it. This produces the second-highest distinct list price, and the outer query returns the names of products with that price.

Community Discussion

No comments yet. Be the first to start the discussion!