The Query Builder box is displayed when you right-click in the SQL Worksheet and select Query Builder. You can use this box to create a SELECT statement by dragging and dropping table and view names and by graphically specifying columns and other elements of the query. When you finish building the query, the resulting SELECT statement is inserted into the SQL Worksheet.
The Query Builder capabilities are grouped under the following tabs.
Select Columns
Use the Select Columns tab to select tables and views, then columns within them, to be used in the query. Use the connections tree on the left to find the desired tables and views under the appropriate schema or schemas, and double-click each desired table and view.
Within each selected table or view, click to select the desired columns (all or specific ones) to include in the query.
Create Where Clause
Use the Create Where Clause tab to select, for each column in the WHERE clause, the column name, operator, and value. For example, you might want to select only rows where AUTHOR_LAST_NAME contains Melville or where RATING > 5.
Show SQL
Use the Show SQL tab to see a read-only display of the query reflecting what you have specified so far.
View Results
Use the View tab to test the query in its current form. Click the Execute Statement icon to execute the query.
Refresh: Specifies the refresh interval: the number of seconds between each time the query is automatically re-executed and the results display is updated. A value of zero (0) means that the query is not automatically re-executed after the initial execution.
Related Topics