Home > Data Nodes > Create Table or View Node > Working with the Create Tab... > Data Source Node > Working with the Data Sourc... > Explore Data Node > Graph Node > Working with Graph Nodes > New Graph > SQL Query Node > Working with SQL Query Node > SQL Query Node Editor
The SQL Query node Editor enables you to define and validate a SQL query.
The editor provides specifications that can be dragged and dropped or double-clicked into the query build text area.
The tabs on the left of the window provide help in writing a query:
Source is a list of input nodes that includes both Data Provider nodes and Model Provider nodes. When you select an item in the Source list, information appears in the Message box.
Snippets are standard SQL Developer Snippets (SQL code fragments) arranged by the type of calculation.
The snippet category Predictive Query helps write queries using the DBMS_PREDICTIVE_ANALYTICS PL/SQL package.
For information about snippets, see ”Using Snippets to Insert Code Fragments” in SQL Developer Concepts and Usage.
For a brief description of snippet functionality, move the cursor over the name. The information is displayed in a tool tip.
PL/SQL Functions is a list of PL/SQL functions by user schema.
R Scripts is a list of registered R Scripts; this tab is displayed if Oracle R Enterprise is installed.
Write SQL in the text area.
Below the text area are:
Columns—List the columns and data types.
Preview—Displays a small number of the rows returned by the query.
When you click OK or Validate, the following are verified:
The query generates at least one column of output.
All data types are data types that Oracle Data Miner supports. Most scalar data types are supported. The most common data types that are not supported are user custom object types.
If unsupported data types are found, then a table is created and an error message is displayed above the column panel. All unacceptable data types in the column list are marked with an invalid icon next to the column name.
If no validation errors occur during the parsing of the query, then the Columns tab shows data types of the columns and the Data tab shows a small sample of results.
If a validation error occurs, then the validation panel is displayed for the Column and Data tabs.