QuestionQ77Verified/Restricting and sorting dataCopy linkReport a problemAsk AstroTutorSave questionWhich three of the following statements are true about an ORDER BY clause?Choose threeABy default an ORDER BY clause sorts rows in descending orderBAn ORDER BY clause will always precede a HAVING clause if both are used in the same top-level query.CAn ORDER BY clause always sorts NULL values last.DBy default an ORDER BY clause sorts rows in ascending order.EAn ORDER BY clause can perform a binary sort.FAn ORDER BY clause can perform a linguistic sort.Show AnswerAnswerExplanationASC is the default ordering direction for an ORDER BY clause. Oracle can sort character values using either binary collation or linguistic collation. ORDER BY is placed after HAVING in a top-level SELECT statement, and NULL values are not always last: descending order defaults to NULLS FIRST.Learn moreOracle Database SQL Language Reference: SELECTOracle Database SQL Language Reference: Sorting Query ResultsShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion