mysql 行转列 (case when的使用)

现有

table1 如下

table2 如下

 

需要统计:各个部门每个月的绩效总和

实现如下:

 

posted @ 2018-04-18 18:05  Tiac  阅读(4639)  评论(0)    收藏  举报