当前位置:网站首页>3. Sort statement
3. Sort statement
2022-04-23 07:40:00 【Ah Dai cloth clothes cool】
3. Sort
1. Check all employee information , Sort by salary from low to high
select * from emp
order by sal;
2. Inquiry Department 10 Of employees , Sort by salary from high to low , If the wages are the same , Sort by employment time from early to late
select * from emp
where deptno=10
order by sal desc,hiredate;
3. Check employee number 、 full name 、 Annual salary , Sort by annual salary from high to low
select empno,ename,(sal+ifnull(comm,0)*12 income)
from emp
order by income desc;
版权声明
本文为[Ah Dai cloth clothes cool]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230622239491.html
边栏推荐
猜你喜欢

Javscript gets the real suffix of the file

Nacos / sentinel gateway current limiting and grouping (code)

Background management system framework, there is always what you want

Solutions to common problems in visualization (VII) solutions to drawing scale setting

H5 case development

Reflection on the systematic design of Android audio and video caching mechanism

‘npm‘不是内部或外部命令,也不是可运行的程序 或批处理文件

数据分析入门 | kaggle泰坦尼克任务(四)—>数据清洗及特征处理

keytool: command not found
![[COCI]Lampice (二分+树分治+字符串哈希)](/img/7b/fe2a45d960a6d3eb7dc25200304adc.png)
[COCI]Lampice (二分+树分治+字符串哈希)
随机推荐
[hdu6868]Absolute Math(推式子+莫比乌斯反演)
常用的DOS命令
ogldev-读书笔记
后台管理系统框架,总有你想要的
Date对象(js内置对象)
2022.3.14 阿里笔试
技术小白的第一篇(表达自己)
快速下载vscode的方法
1. View databases and tables
图论入门——建图
数论分块(整除分块)
安装配置淘宝镜像npm(cnpm)
SAP PI/PO Soap2Proxy 消费外部ws示例
1D/1D动态规划学习总结
manjaro安装与配置(vscode,微信,美化,输入法)
Visualization Road (IX) detailed explanation of arrow class
【自我激励系列】到底是什么真正阻碍了你?
王者荣耀-unity学习之旅
页面实时显示当前时间
基于可视化结构的身份证号码校验系统-树莓派实现