假设我有一个名为EMPLOYEE
的表,其中包含以下属性
(EMPLOYEE_ID, LAST_NAME, FIRST_NAME, MIDDLE_NAME, JOB_ID, MANAGER_ID, Salary)
我是否可以按照last_name的升序排列员工详细信息,并按降序排列工资?
答案 0 :(得分:1)
是的,您可以按多列排序。刚用逗号分隔
select * from employee
order by last_name asc, salary desc
答案 1 :(得分:0)
SELECT * FROM EMPLOYEE
ORDER BY LAST_NAME ASC, Salary DESC
答案 2 :(得分:0)
Select * from employee order by salary desc,last_name asc