This operation allows the user to query and retrieve the desired information from the database table. Now the requirement is to view the names of the plant in alphabetical order. Here, the name of the database say “Medicinal_Plants_Uses” and let us keep the name of the table as “Plant_info” and let us assume that the column name to retrieve is “Plant_name”. The query is given below:
Select Plant_name
from Plant_info
orderby Plant_name asc
Here orderby stands for arranging the selected value in alphabetical order and “asc” clause is to arrange from a to z and “desc” clause is to arrange data from z to a.