SQL: Showing year as column name and data in rows

后端 未结 0 498
情书的邮戳
情书的邮戳 2020-12-13 23:18

I would like to sum a table for the past 5 years. I have written the query that shows the following results:

SELECT Year(OPENED) [year], 
SUM(CASE WHEN OPENED         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题