QuestionQ139

VerifiedRestricting and Sorting Data

You must generate a list of all customer last names and their credit limits from the customers table. Customers without a credit limit must appear at the end of the list. Which two queries achieve the required result?

Question Image

Choose two
Explanation

In Oracle Database, ascending ordering is the default, and NULLS LAST is the default null placement for ascending order. Thus, sorting by cust_credit_limit with no direction specified, or explicitly using NULLS LAST, places rows with null credit limits after all non-null credit-limit rows. Oracle Database SQL Language Reference: Analytic Functions

Learn more

Community Discussion

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