找出所有员工当前薪水salary情况
两种处理方法:
1、distinct 与 order by 的 结合使用
select distinct salary from salaries order by salary desc;
2、group by 与 order by 的 结合使用
select salary from salaries group by salary order by salary desc;
学习mysql,可以看相关的总结博客:
两种处理方法:
1、distinct 与 order by 的 结合使用
select distinct salary from salaries order by salary desc;
2、group by 与 order by 的 结合使用
select salary from salaries group by salary order by salary desc;
学习mysql,可以看相关的总结博客: