Note: The Insert, Update and Delete statements (performed by the DB query) may cause an auto-commit to the DB (based on the DB driver’s definition).
Expand or collapse the DB objects tree. The below image shows how it looks like when opened via the DB Interface Explorer, where similar tree appear at Query Builder popup (when opened at Schema Editor, Graphit and Broadway)
Select the DB object (Table, View or Synonym) from the DB Tree and do either:
Either click the DB object and press Delete on your keyboard or right-click the DB object > Remove. Note: The removal of a DB object automatically updates the SQL query in the Query Builder window.
To select columns from a DB object, do either:
Select * from [Table Name];
To remove columns from a DB object, do either:
Uncheck the selected columns.
Right-click on the DB object > Uncheck All to remove all the table’s columns from the SELECT statement. Note that when this option is selected for all DB objects in the Main window, the Query Builder generates the following SQL syntax: select * from …
To add a JOIN to the SQL query, do the following:
Each SQL statement that is combined by the UNION operator has a Q icon in the Main Window. Clicking the Q icon of each SQL statement opens its Main window, where you can add DB objects and link them to each other to edit the SQL statement in the Union query.
This table is displayed on the bottom right of the main window and enables editing the SQL query. Its selected columns hold the same information as the graphic map in a tabular format.
The Enable Pre-Execution Commands checkbox enables running commands on the selected DB before running the SQL query. When this checkbox is checked, the Pre-Execution Commands window opens. Note that when running the Query Builder on a Fabric interface, you should run the [Get Instance] command in the Pre-Execution Commands window as the SQL query must run on an LU Instance level.
The Max rows setting is used to set the maximum number of rows returned by the SQL query. The default value is 10,000 rows. You can set a different number of rows to be returned by the SQL query
To use the Query Builder:
The Results window shows up to 1000 entries.
The Results window's top bar is divided to information part (on the right side) and actions (on the left side):
The Results table enables some manipulations that let you adjust the display according to your needs, in addition to the Columns to show option:
Sort Order - click on the column's header sort icon to reorder the table (Ascending/Descending).
Filter - click on the column's header filter icon to filter table's display accordingly.
Group - click on the column's header left arrow to group the table rows by this column.
Grouping by a column will show it as the left most column, change its color to gray and flip the arrow direction.
Click on a table row arrow to expand and collapse its grouped rows.
You can group by several columns
To ungroup click again on the column header arrow.
Note: The Insert, Update and Delete statements (performed by the DB query) may cause an auto-commit to the DB (based on the DB driver’s definition).
Expand or collapse the DB objects tree. The below image shows how it looks like when opened via the DB Interface Explorer, where similar tree appear at Query Builder popup (when opened at Schema Editor, Graphit and Broadway)
Select the DB object (Table, View or Synonym) from the DB Tree and do either:
Either click the DB object and press Delete on your keyboard or right-click the DB object > Remove. Note: The removal of a DB object automatically updates the SQL query in the Query Builder window.
To select columns from a DB object, do either:
Select * from [Table Name];
To remove columns from a DB object, do either:
Uncheck the selected columns.
Right-click on the DB object > Uncheck All to remove all the table’s columns from the SELECT statement. Note that when this option is selected for all DB objects in the Main window, the Query Builder generates the following SQL syntax: select * from …
To add a JOIN to the SQL query, do the following:
Each SQL statement that is combined by the UNION operator has a Q icon in the Main Window. Clicking the Q icon of each SQL statement opens its Main window, where you can add DB objects and link them to each other to edit the SQL statement in the Union query.
This table is displayed on the bottom right of the main window and enables editing the SQL query. Its selected columns hold the same information as the graphic map in a tabular format.
The Enable Pre-Execution Commands checkbox enables running commands on the selected DB before running the SQL query. When this checkbox is checked, the Pre-Execution Commands window opens. Note that when running the Query Builder on a Fabric interface, you should run the [Get Instance] command in the Pre-Execution Commands window as the SQL query must run on an LU Instance level.
The Max rows setting is used to set the maximum number of rows returned by the SQL query. The default value is 10,000 rows. You can set a different number of rows to be returned by the SQL query
To use the Query Builder:
The Results window shows up to 1000 entries.
The Results window's top bar is divided to information part (on the right side) and actions (on the left side):
The Results table enables some manipulations that let you adjust the display according to your needs, in addition to the Columns to show option:
Sort Order - click on the column's header sort icon to reorder the table (Ascending/Descending).
Filter - click on the column's header filter icon to filter table's display accordingly.
Group - click on the column's header left arrow to group the table rows by this column.
Grouping by a column will show it as the left most column, change its color to gray and flip the arrow direction.
Click on a table row arrow to expand and collapse its grouped rows.
You can group by several columns
To ungroup click again on the column header arrow.