KnowledgeBoat Logo
|

Informatics Practices

Ravisha has stored the records of all students of her class in a MYSQL table. Suggest a suitable SQL clause that she should use to display the names of students in alphabetical order.

  1. SORT BY
  2. ALIGN BY
  3. GROUP BY
  4. ORDER BY

SQL Queries

1 Like

Answer

ORDER BY

Reason — The suitable SQL clause that Ravisha should use to display the names of students in alphabetical order is ORDER BY. The ORDER BY clause in SQL is used to sort the result set of a query, and by default, it sorts the results in ascending order.

Answered By

1 Like


Related Questions