当前位置:网站首页>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
边栏推荐
猜你喜欢
Take you to travel in space, and American photography technology provides comprehensive technical support for aerospace creative applet
[COCI]Lampice (二分+树分治+字符串哈希)
Django使用mysql数据库报错解决
redis连接出错 ERR AUTH <password> called without any password configured for the default user.
vim+ctags+cscpope开发环境搭建指南
Educational Codeforces Round 81 (Rated for Div. 2)
Discussion on arrow function of ES6
Nacos / sentinel gateway current limiting and grouping (code)
SAP PI/PO Soap2Proxy 消费外部ws示例
Solutions to common problems in visualization (VII) solutions to drawing scale setting
随机推荐
typescript字典的使用
Solutions to common problems in visualization (VII) solutions to drawing scale setting
快速下载vscode的方法
王者荣耀-unity学习之旅
Applet Wx Previewmedia related problem solving - Daily stepping on the pit
Nacos/sentinel网关限流和分组 (代码)
常用的DOS命令
Lead the industry trend with intelligent production! American camera intelligent video production platform unveiled at 2021 world Ultra HD Video Industry Development Conference
[牛客挑战赛47]C.条件 (bitset加速floyd)
5.SQL99标准:内连接和外连接
Machine vision series (02) -- tensorflow2 3 + win10 + GPU installation
SAP PI/PO Soap2Proxy 消费外部ws示例
FSM有限状态机
C语言的指针符号到底靠近变量类型还是变量名?
积性函数前缀和——杜教筛
简易随机点名抽奖(js下编写)
CSDN很火的汤小洋老师全部课程总共有哪些(问号问号问号)
莫比乌斯反演
anaconda3安装
MVCC(多版本并发控制)