To convert your data into a pivot table, you can drag data source fields into four areas in the Pivot Grid view of the SQL document. They are the following:
Row area - displays a data source field as a Row field.
Column area - displays a data source field as a Column field.