题解 | #找出所有员工当前薪水salary情况#

找出所有员工当前薪水salary情况

http://www.nowcoder.com/practice/ae51e6d057c94f6d891735a48d1c2397

找出所有员工当前薪水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,可以看相关的总结博客:

mysql 学习 总结

全部评论
谁的博客,你的吗。
点赞 回复 分享
发布于 2022-09-22 11:08 上海

相关推荐

08-19 17:40
Java
吴offer选手:666 打老板了吗
点赞 评论 收藏
分享
阿武同学:基本信息保留前面三行,其他的可以全部删掉,邮箱最重要的你没写,主修课程精简到8个以内,实习里面2/3/4都是水内容的,非要写的话建议两到三句话,项目经历排版优化下,自我评价缩到三行
点赞 评论 收藏
分享
评论
4
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务