当前位置:网站首页>Sqlserver row to column pivot
Sqlserver row to column pivot
2022-07-03 02:43:00 【Clanging woods】
Existing raw data sheet :SELECT * FROM FIX_0528_ADD
Need to put FMONTH Field row to column , Summary FADD Number :
SELECT FNAME,[2022-01],[2022-02],[2022-03],[2022-04]
FROM FIX_0528_ADD
PIVOT(SUM(FADD) FOR FMONTH IN ([2022-01],[2022-02],[2022-03],[2022-04])) T
Results after execution :
边栏推荐
- 2022-2028 global splicing display industry research and trend analysis report
- [C语言]给账号密码进行MD5加密
- [hcia]no.15 communication between VLANs
- GBase 8c 函数/存储过程参数(一)
- The difference between left value and right value in C language
- Today, it's time to copy the bottom!
- [fluent] futurebuilder asynchronous programming (futurebuilder construction method | asyncsnapshot asynchronous calculation)
- GBase 8c 函数/存储过程参数(二)
- Xiaodi notes
- Choose it when you decide
猜你喜欢
SqlServer行转列PIVOT
SQL statement
Check log4j problems using stain analysis
Principle and application of database
Add automatic model generation function to hade
Pytest (6) -fixture (Firmware)
Kubernetes family container housekeeper pod online Q & A?
[hcia]no.15 communication between VLANs
[fluent] JSON model conversion (JSON serialization tool | JSON manual serialization | writing dart model classes according to JSON | online automatic conversion of dart classes according to JSON)
[translation] modern application load balancing with centralized control plane
随机推荐
tensor中的append应该如何实现
Global and Chinese ammonium dimolybdate market in-depth analysis and prospect risk prediction report 2022 Edition
Two dimensional format array format index subscript continuity problem leads to return JSON format problem
A2L file parsing based on CAN bus (2)
[advanced ROS] Lesson 6 recording and playback in ROS (rosbag)
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]
Deep Reinforcement Learning for Intelligent Transportation Systems: A Survey 论文阅读笔记
[hcia]no.15 communication between VLANs
GBase 8c系统表-pg_aggregate
Kubernetes cluster log and efk architecture log scheme
面试项目技术栈总结
Xiaodi notes
oauth2.0鉴权,登录访问 “/oauth/token”,请求头Authorization(basicToken)如何取值???
GBase 8c系统表-pg_authid
疫情当头,作为Leader如何进行代码版本和需求开发管控?| 社区征文
Pytest (6) -fixture (Firmware)
The solution of "the required function is not supported" in win10 remote desktop connection is to modify the Registry [easy to understand]
Add automatic model generation function to hade
Compréhension simple de SVG
Error when installing MySQL in Linux: starting mysql The server quit without updating PID file ([FAILED]al/mysql/data/l.pid