SQL column
Summary of basic knowledge of SQL database
Summary of advanced knowledge of SQL database
What is an edit query
Edit query is to import the data we imported from the data source into Power BI, and further edit and organize it to meet our design requirements (of course, if the data source you import is what you want, then there is no need to organize it. Can be used directly).
Next, we will use the imported data for further editing and sorting to explain to you how to edit the data.
Sample data
We take the table Customers in SQL_Road as example data, as follows:
Edit query interface
We click on the start menu, edit query-edit query to enter the edit query interface.
The interface to enter the edit query is different from our data display interface, as follows:
Our next few chapters are all about how to edit data. We will talk about the specific functions of each block one by one later.
Select and delete columns
There are two function buttons in the start menu, select column and delete column
You can know what these buttons do at a glance. I’ll just talk about their functions.
Select Column: Clicking this button will pop up a dialog box for you to select the column to be displayed, as shown in the figure below:
Go to column: only go to a specified column, as shown in the figure below:
Quick operation method:
We can use the mouse to select the current column, remember to select the column heading, the selected data is invalid. Or hold down the Ctrl key to select the column you want to select, hold down the Shift key to select all the columns between the two columns, and we operate Excel is the same, it depends on personal habits.
Delete column: Select a certain column or certain columns, and click Delete column to delete the specified column.
Delete other columns: Select a few columns or a few columns, and click Delete other columns to delete the selected column.
Quick operation method:
After we select the column we want to delete, press the Delete key to delete the specified column. Or right-click and select Delete to delete the specified column.
Copy column
Select a certain column or certain columns, right-click to have a copy function, you can copy the selected column, as shown below:
In this way, we can get a column exactly the same.
Split column
Split column has two functions, one is to split by character length, and the other is to split by separator. It is similar to the sorting in Excel. It's just that the interface is slightly different.
By delimiter
More functions, which can meet our various personalized splitting needs
By number of characters
Same multiple options
For specific effects, you can try it manually. There is no special attention here, just to tell you that there is this feature.
The above is the introduction to the various editing functions of the column.
annotation
The editing of the columns allows us to sort out the data we need first, whether it is selection, copy, split or delete. This step can basically sort out the data we need. I hope you can master these functions proficiently.