当前位置:网站首页>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
边栏推荐
- PAT 乙等 1017 C语言
- PAT 乙等 1013 C语言
- [opencv450] inter frame difference method
- MySQL面试真题(二十七)——RFM分析法对用户进行分类
- 低成本5W无线充电器方案FS68001B简便充电芯片
- Management system of borrowed books based on SSM framework
- Fs2119a Synchronous Boost IC output 3.3V and fs2119b Synchronous Boost IC output 5V
- 云原生数据库是未来
- 数字藏品到底有什么魔力?目前有哪些靠谱的团队在开发
- [OWT] OWT client native P2P E2E test vs2017 build 6: modify script automatic generation vs Project
猜你喜欢

Redis cache penetration solution - bloom filter

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

雷达图canvas

【斯坦福计网CS144项目】Lab2: TCPReceiver

MySQL面试真题(二十七)——RFM分析法对用户进行分类

Wechat applet: elderly blessing short video

The digital collection market has just begun

Raspberry pie assert preliminary exercise

ArcTime 制作中英文字幕视频

MySQL面试真题(二十三)——拼多多-球赛分析
随机推荐
mysql字符集
runc 符号链接挂载与容器逃逸漏洞预警(CVE-2021-30465)
jvm: 方法重载时,具体调用哪个方法,是由传入参数的静态类型来决定的,而不是由参数的实际类型来决定
PAT 乙等 1013 C语言
IP6809三线圈15W无线充电发射端方案ic英集芯
The digital collection market has just begun
Lottery DDD code
PAT 乙等 1012 C语言
MySQL面试真题(二十六)——滴滴2020年笔试题
数字藏品市场才刚刚开始
Wechat applet: an artifact for calculating the full amount of orders
Export PDF with watermark
MySQL面试真题(二十一)——金融-贷款逾期
Behind the hot digital collections, a strong technical team is needed to support the northern technical team
华为软硬件生态圈成型,从根子上改变美国对软硬件体系的领导地位
Wechat applet: wechat can also send flash photos to create wechat applet source code download and customize flash time
基于SSM框架的借阅图书管理系统
Wechat applet: Puzzle toolbox
Alibaba cloud object storage oss+picgo+typera implements the construction map
ssm项目搭建