Use the Query Builder to create SQL queries as shown below:
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).
Select the DB object (Table, View or Synonym) from the DB Tree and proceed with one of the following actions:
To remove a DB object from the Main window, you can either click the DB object and press Delete on your keyboard or right-click the DB object > Remove.
Note: Such removal automatically updates the SQL query in the Query Builder window.
To select columns from a DB object, perform either one of the following actions:
Select * from [Table Name];
To remove columns from a DB object, perform either one of the following actions:
To add a JOIN to the SQL query, perform the following:
Each SQL statement, which is combined by the UNION operator, has a Q icon in the Main window. Clicking the Q icon of each SQL statement opens it in the 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 displays underneath the Query Builder's Main window, and it enables editing the SQL query. Its selected columns hold the same information as the graphical map yet 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 defines the maximum number of rows that the SQL query can return, with a default of 10,000. This limit can be adjusted as needed.
You can create and edit an SQL statement by selecting the desired action from the Interface Explorer menu tree, typing it manually, or seeking guidance from the built-in AI Assistant. The latter two are used for more complex queries.
Adding a query to the Query Editor panel using the Interface Explorer Tree, is depended on its occurrence - at DB Interface Explorer, or when opened as a pop-up at Schema Editor, Graphit and Broadway.
At DB Interface Explorer, choose the required SQL statement by using the context menu (right-click) on the relevant tree entry. The available statements are: select, insert, update and delete.
You can choose either a table or specific table fields in a way that the query would include only those fields.
In the Query Builder pop-up window, you can hover over a table in the tree and click on the arrow that appears on its right. Once clicked, a "select *" statement from that table is added to the Query Builder Editor's editing board.
While writing your SQL statement in the editor, you can be guided by 2 assistants:
You can use the built-in AI Assistant for creating SQL statements, by entering your desired statement in natural language for the AI Assistant. To use the AI Assistant:
Click on the AI icon () at the upper-right corner of the Query Builder Editor panel.
The Editor screen is then split into two side-by-side editors: On the left - the SQL Editor, whereas on the right - the native language statements Editor.
Write your desired statement on the right-side editor.
Choose the relevant schemas that you wish the AI will look at, via the Schema Filter select list. This aimed to avoid overwhelming the process. In case of a single schema DB, it is automatically selected.
You can see which schemas were selected, even without opening the select list again, by mouse hoover
![]()
Click on the Text → SQL button.
The query will then be generated and will appear in the SQL Editor.
You can see the AI explanations, of how SQL command was created, by clicking on the question mark icon, which will appear above the SQL Editor, once Text to SQL generations process is ended.
You can also activate the AI Assistant in the opposite direction - to explain you an existing SQL in a native language. To do that, click on the SQL → Text button.
When the AI Assistant is activated inside a DB select function, like in BW DB Query actors or in Graphit node, the native language statement is saved as a comment alongside the SQL.
Note: To activate the AI Assistant, install one of the AI connectors and create an interface upon.
While manually editing the SQL statements, you can be assisted by the Editor Assistant, which provide code completion suggestions. The completion suggestion is for schemas, tables, column names of the current interface, as well as set of base SQL clauses.
The Assistant code completion is done while typing and on hitting CTRL+SPACE, as used while code programming.
A select list then opens, allowing you to choose the relevant statement.
An icon appears to the left of each item in the select list, where:
The Code Completion Assistant can also help you when looking for the standard SQL commands, such as Select
, AND
, WHERE
. The icon that represents them is: .
Notes and Tips
- Clearing the whole Query Editor window can be done by clicking on the Clear button.
- The Query Editor window can hold and execute several queries. When clicking on the Execute button, all queries will be executed, one by one, where the Results window will show the results of the last query.
- If the Query Editor window contains several queries, and you wish to run some of them, there is no need to delete the others. To execute specific commands, select them and then click on Execute.
- You can add Fabric commands to the Query Editor and they will also be executed.
- When Fabric is the selected data source interface, set the top bar fields prior to executing the query.
Use the Query Builder to create SQL queries as shown below:
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).
Select the DB object (Table, View or Synonym) from the DB Tree and proceed with one of the following actions:
To remove a DB object from the Main window, you can either click the DB object and press Delete on your keyboard or right-click the DB object > Remove.
Note: Such removal automatically updates the SQL query in the Query Builder window.
To select columns from a DB object, perform either one of the following actions:
Select * from [Table Name];
To remove columns from a DB object, perform either one of the following actions:
To add a JOIN to the SQL query, perform the following:
Each SQL statement, which is combined by the UNION operator, has a Q icon in the Main window. Clicking the Q icon of each SQL statement opens it in the 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 displays underneath the Query Builder's Main window, and it enables editing the SQL query. Its selected columns hold the same information as the graphical map yet 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 defines the maximum number of rows that the SQL query can return, with a default of 10,000. This limit can be adjusted as needed.
You can create and edit an SQL statement by selecting the desired action from the Interface Explorer menu tree, typing it manually, or seeking guidance from the built-in AI Assistant. The latter two are used for more complex queries.
Adding a query to the Query Editor panel using the Interface Explorer Tree, is depended on its occurrence - at DB Interface Explorer, or when opened as a pop-up at Schema Editor, Graphit and Broadway.
At DB Interface Explorer, choose the required SQL statement by using the context menu (right-click) on the relevant tree entry. The available statements are: select, insert, update and delete.
You can choose either a table or specific table fields in a way that the query would include only those fields.
In the Query Builder pop-up window, you can hover over a table in the tree and click on the arrow that appears on its right. Once clicked, a "select *" statement from that table is added to the Query Builder Editor's editing board.
While writing your SQL statement in the editor, you can be guided by 2 assistants:
You can use the built-in AI Assistant for creating SQL statements, by entering your desired statement in natural language for the AI Assistant. To use the AI Assistant:
Click on the AI icon () at the upper-right corner of the Query Builder Editor panel.
The Editor screen is then split into two side-by-side editors: On the left - the SQL Editor, whereas on the right - the native language statements Editor.
Write your desired statement on the right-side editor.
Choose the relevant schemas that you wish the AI will look at, via the Schema Filter select list. This aimed to avoid overwhelming the process. In case of a single schema DB, it is automatically selected.
You can see which schemas were selected, even without opening the select list again, by mouse hoover
![]()
Click on the Text → SQL button.
The query will then be generated and will appear in the SQL Editor.
You can see the AI explanations, of how SQL command was created, by clicking on the question mark icon, which will appear above the SQL Editor, once Text to SQL generations process is ended.
You can also activate the AI Assistant in the opposite direction - to explain you an existing SQL in a native language. To do that, click on the SQL → Text button.
When the AI Assistant is activated inside a DB select function, like in BW DB Query actors or in Graphit node, the native language statement is saved as a comment alongside the SQL.
Note: To activate the AI Assistant, install one of the AI connectors and create an interface upon.
While manually editing the SQL statements, you can be assisted by the Editor Assistant, which provide code completion suggestions. The completion suggestion is for schemas, tables, column names of the current interface, as well as set of base SQL clauses.
The Assistant code completion is done while typing and on hitting CTRL+SPACE, as used while code programming.
A select list then opens, allowing you to choose the relevant statement.
An icon appears to the left of each item in the select list, where:
The Code Completion Assistant can also help you when looking for the standard SQL commands, such as Select
, AND
, WHERE
. The icon that represents them is: .
Notes and Tips
- Clearing the whole Query Editor window can be done by clicking on the Clear button.
- The Query Editor window can hold and execute several queries. When clicking on the Execute button, all queries will be executed, one by one, where the Results window will show the results of the last query.
- If the Query Editor window contains several queries, and you wish to run some of them, there is no need to delete the others. To execute specific commands, select them and then click on Execute.
- You can add Fabric commands to the Query Editor and they will also be executed.
- When Fabric is the selected data source interface, set the top bar fields prior to executing the query.