当前位置:网站首页>MySQL面试真题(二十四)——行列互换
MySQL面试真题(二十四)——行列互换
2022-06-23 03:58:00 【Socialphobia_FOGO】
行列互换
表名:cook
要求查询结果如下:
SELECT 年,
MAX(CASE WHEN 月=1 THEN 值 END) AS m1,
MAX(CASE WHEN 月=2 THEN 值 END) AS m2,
MAX(CASE WHEN 月=3 THEN 值 END) AS m3,
MAX(CASE WHEN 月=4 THEN 值 END) AS m4
FROM cook
GROUP BY 年
边栏推荐
- IP6809三线圈15W无线充电发射端方案ic英集芯
- Qimen dunjia assistant decision software
- 英集芯IP5566带TYPE-C口3A充放快充移动电源5w无线充二合一方案SOC
- Introduction to MySQL (II) sub query + Association
- 低成本5W无线充电器方案FS68001B简便充电芯片
- fastjson中的@JSONField注解
- The road of architects starts from "storage selection"
- STC 32比特8051單片機開發實例教程 一 開發環境搭建
- hash---------history
- Heimdall Database Proxy横向扩展提高20倍
猜你喜欢

GDB data reading in GDAL (III) of GIS

Build a gocd environment

Win软件 - (Net-Framework)已处理证书链,但是在不受信任提供程序信任的根证书中终止

Wechat applet: future wife query generator
![[opencv450] image subtraction, binarization, threshold segmentation](/img/2c/60d64f3cdcc4ad8f95369d30ad2cdd.png)
[opencv450] image subtraction, binarization, threshold segmentation

人脸识别 确定阈值

Qimen dunjia assistant decision software

Cloud native database is the world of future databases

H5 适配全面屏

Win11如何开启移动热点?Win11开启移动热点的方法
随机推荐
Win11不能录制音频怎么办?Win11无法录入声音的解决方法
Wechat applet: wechat can also send flash photos to create wechat applet source code download and customize flash time
Go grouping & sorting
云原生架构(04)-CNCF
ES6的Array.from方法创建长度为N的undefined数组
知识点滴 - 折叠锻打和大马士革钢
51万奖池邀你参战——第二届阿里云ECS CloudBuild开发者大赛来袭
基于SSM框架的借阅图书管理系统
MCS: discrete random variable - uniform distribution
H5 adaptive full screen
英文字母pc是什么意思,互联网的pc指的是什么
hash---------history
hash---------history
Current situation and development of containerization technology under the cloud native trend
高等数学(第七版)同济大学 习题1-9 个人解答
GO语言-自定义error
常用的无线充发射IC芯片
英集芯ip6806无线充电方案5W过Qi认证外围精简14颗器件
Mobile phone wireless charging dual coil 15W scheme SOC IC ip6809
Is there a real part-time job online? How do college students find part-time jobs in summer?