
CodePudding user response:
The top one, don't sinkCodePudding user response:
Dynamic statement joining togetherCodePudding user response:
Select * from table name for the order by the date the pivot (sum (number) for the city (in [Beijing], [Shanghai], [hangzhou]... )SQL server 2005 or more versions are available