There are two types of data that requires column-to-row conversion: Primary keys and primary keys.
Convert previous content
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/38/F6/wKioL1O1BCii1tTQAAB1oP7gAEA646.jpg "Title =" a.png "alt =" wkiol1o1bcii1ttqaab1op7gaea646.jpg "/>
Content after transfer
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/38/F6/wKiom1O1BGigsmI4AABdqF-P6BY429.jpg "Title =" B .png "alt =" wKiom1O1BGigsmI4AABdqF-P6BY429.jpg "/>
I saw it. I turned it around. Let's take a look at the overall flowchart.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/38/F6/wKiom1O1BKvQCyZdAABiJZ92XIY112.jpg "Title =" c.png "alt =" wkiom1o1bkvqcyzdaabijz92xiy112.jpg "/>
Start analysis:
The first icon is
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/38/F6/wKioL1O1BOehkwuZAAFMWEzeCC0178.jpg "Title =" d.png "alt =" wkiol1o1boehkwuzaafmwezecc0178.jpg "/>
This is the main step in step 1. After configuration, you can proceed to step 2.
Because there is no primary key, you need to add the same primary key to the column of the city, so that the data can be transferred to the same row when it is converted into a row. If the primary key is different, after it is converted into a row, each primary key is a row, which is not what we want.
The interface for opening column-to-Row Operations is
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/38/F7/wKiom1O1BjXSvMZ5AAF1B9VVmis798.jpg "Title =" e.png "alt =" wkiom1o1bjxsvmz5aaf1b9vvmis798.jpg "/>
The dummy in the figure is the constant we added in the previous step. Select a city for the keyword segment. The value of the keyword segment is the value of the city, and the data field is the key of the number of people, the target field is the name you want to see after it is converted into a row.
Open the result output icon.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/38/F6/wKioL1O1BtHwS6w-AACx07ESEic244.jpg "Title =" f.png "alt =" wKioL1O1BtHwS6w-AACx07ESEic244.jpg "/>
Now, the configuration is complete. Click the execute button and you will see the results starting with the text.
If you have a primary key, you can leave a comment. It is simpler than if you do not have a primary key, because data with a primary key can be directly transferred.
This article is from "Qiao Lei's blog learning progress", please be sure to keep this source http://sucre.blog.51cto.com/1084905/1434015