Scenario: A developer needs to retrieve only specific records from a database table in a particular order. Which SQL clause should they use?

  • WHERE
  • ORDER BY
  • GROUP BY
  • HAVING
The correct option is 'ORDER BY'. This clause is used to sort the result set returned by the SELECT statement in either ascending or descending order based on one or more columns. It helps the developer to retrieve records in a specific order as required. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *