engineering computer science MCQ #732

What is the purpose of the SQL ORDER BY clause?

engineering computer science MCQ #732

  1. Question 1

    Q1. What is the purpose of the SQL ORDER BY clause?

    • A) To filter data based on conditions
    • B) To sort data in ascending or descending order
    • C) To group data based on one or more columns
    • D) To join two or more tables

    Answer: To sort data in ascending or descending order

    Explanation: The ORDER BY clause is used to sort data in ascending or descending order, allowing you to control the order of the result set.