QuestionQ84Verified/Using Subqueries to Solve QueriesCopy linkReport a problemAsk AstroTutorSave questionExamine the following statement: Which two statements are correct?Choose twoAThe names of employees earning the maximum salary will appear first in an unspecified order.BAll remaining employee names will appear in descending order.CAll remaining employee names will appear in an unspecified order.DAll remaining employee names will appear in ascending order.EThe names of employees earning the maximum salary will appear first in ascending order.FThe names of employees earning the maximum salary will appear first in descending order.Show AnswerAnswerExplanationEmployees whose salary equals the maximum receive the same primary sort value, 'A', so their relative order is determined by the secondary key last_name DESC; their names therefore appear first in descending order. For all other employees, the primary sort value is last_name and defaults to ascending order, so their names appear in ascending order.Learn moreOracle Database SQL Language Reference — SELECTShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion