Single Choice Easy

QWhat is the purpose of the ORDER BY clause in a MySQL query?

ID: #15415 Introduction to MySQL Databases 94 views
Question Info
#15415Q ID
EasyDifficulty
Introduction to MySQL DatabasesTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A To specify the columns to retrieve
  • B To sort the result set
  • C To filter the rows based on conditions
  • D To group the rows into subsets
Correct Answer

Explanation

The ORDER BY clause in a MySQL query is used to sort the result set based on one or more columns. It allows you to specify the sorting order (ascending or descending) for each column.

Share This Question

Challenge a friend or share with your study group.