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. When opened via the DB Interface Explorer, the DB objects tree looks as shown in the below image. A similar tree appears inside the Query Builder pop-up window, when the Query Builder is opened via 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:
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 in order to edit the SQL statement in the Union query.
This table is displayed at the bottom-right of the Main window and it 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 for setting the maximum number of rows returned by the SQL query. The default value is 10,000 rows. It is possible to 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 into 2 parts: information (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. When opened via the DB Interface Explorer, the DB objects tree looks as shown in the below image. A similar tree appears inside the Query Builder pop-up window, when the Query Builder is opened via 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:
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 in order to edit the SQL statement in the Union query.
This table is displayed at the bottom-right of the Main window and it 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 for setting the maximum number of rows returned by the SQL query. The default value is 10,000 rows. It is possible to 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 into 2 parts: information (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.