当前位置:网站首页>True MySQL interview question (24) -- row column exchange
True MySQL interview question (24) -- row column exchange
2022-06-23 05:48:00 【Socialphobia_ FOGO】
Exchange of ranks
Table name :cook
The query results are as follows :
SELECT year ,
MAX(CASE WHEN month =1 THEN value END) AS m1,
MAX(CASE WHEN month =2 THEN value END) AS m2,
MAX(CASE WHEN month =3 THEN value END) AS m3,
MAX(CASE WHEN month =4 THEN value END) AS m4
FROM cook
GROUP BY year
边栏推荐
- MySQL面试真题(二十四)——行列互换
- Skill self check | do you know these 6 skills if you want to be a test leader?
- Alibaba cloud object storage oss+picgo+typera implements the construction map
- How can digital collections empower economic entities?
- mysql字符集
- Lihongyi, machine learning 5 Tips for neural network design
- 知识点滴 - 折叠锻打和大马士革钢
- GDB data reading in GDAL (III) of GIS
- Advanced Mathematics (Seventh Edition) Tongji University exercises 1-7 personal solutions
- Jvm: when a method is overloaded, the specific method to call is determined by the static type of the incoming parameter rather than the actual type of the parameter
猜你喜欢

Shifu, the open source development platform of the Internet of things, is open for internal testing! Release of the first version of technical documents

Use of visdom

Is there a real part-time job online? How do college students find part-time jobs in summer?

Leetcode 797: all possible paths

基于SSM框架的借阅图书管理系统

Alibaba cloud object storage oss+picgo+typera implements the construction map

Adnroid activity截屏 保存显示到相册 View显示图片 动画消失

Jvm: when a method is overloaded, the specific method to call is determined by the static type of the incoming parameter rather than the actual type of the parameter

Differences between fs4059a and fs5080e charging chips

runc 符号链接挂载与容器逃逸漏洞预警(CVE-2021-30465)
随机推荐
The digital collection market has just begun
runc 符号链接挂载与容器逃逸漏洞预警(CVE-2021-30465)
PAT 乙等 1015 C语言
PAT 乙等 1009 C语言
Wechat applet: unfashionable love talk
云原生数据库是未来
高等数学(第七版)同济大学 习题1-7 个人解答
C prime plus notes d'apprentissage - 2, constantes et formatage io (I / o)
PAT 乙等 1022 D进制的A+B
What does the English letter PC mean? What does the Internet PC mean
Build a gocd environment
制造业数字化转型存在问题及原因分析
使用链表实现两个多项式相加和相乘
What benefits have digital collections enabled the real industry to release?
C primer plus learning notes - 2. Constant and formatted IO (input / output)
PAT 乙等 1018 C语言
Is there a real part-time job online? How do college students find part-time jobs in summer?
Common wireless charging and transmitting IC chips
@jsonfield annotation in fastjson
jvm: 方法重载时,具体调用哪个方法,是由传入参数的静态类型来决定的,而不是由参数的实际类型来决定