--先按deptno倒序排序,在此基础上按empno的倒序排序
select * from emp order by deptno desc,empno desc
--下边写法错误:
select * from emp order by deptno,empno desc
--先按deptno倒序排序,在此基础上按empno的正序排序
select * from emp order by deptno desc,empno asc
--先按deptno倒序排序,在此基础上按empno的倒序排序
select * from emp order by deptno desc,empno desc
--下边写法错误:
select * from emp order by deptno,empno desc
--先按deptno倒序排序,在此基础上按empno的正序排序
select * from emp order by deptno desc,empno asc