engineering computer science MCQ #735

What is the purpose of the ORDER BY clause in SQL?

engineering computer science MCQ #735

  1. Question 1

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

    • A) To filter data
    • B) To sort data
    • C) To group data
    • D) To join tables

    Answer: To sort data

    Explanation: The ORDER BY clause sorts data in ascending or descending order, based on one or more columns, allowing data to be presented in a specific order.