10 - Arranging or Sorting the table in Ascending or Descending order(Order by)

 

ORIGINAL TABLE GENERATED




Arrange or Sort the table in Ascending  order

select*from employees  order by  salary asc;





Arrange or Sort the table in  Descending order

select*from employees  order by  salary desc;



Comments

Popular posts from this blog

12 - Combining Two Tables- JOIN ( Inner , Left and Right)

5 - DML commands used in MySQL WorkBench

8 - Filtering Max or Minimum Salary from each Department(Group By)