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 > Input for SQL Query Node
A SQL Query node requires the following input:
Zero to many data provider nodes, such as Data Source nodes and Transform nodes.
Zero to many input model provider nodes, such as Model Build nodes and Model nodes.
Data provider nodes are used as follows:
If there are no data provider nodes, then you define an originating Data Source node using an SQL SELECT statement that is not constrained by any input sources that must be defined within Oracle Data Miner. The statement can contain its own internal table references, such as:
Select * from a, b where a.id = b.id
When there are no data provider nodes, the source tables or views are hidden from Data Miner. Code generation cannot parameterize such tables in the generated SQL script.
If there are one or more data provider nodes, then you can reference each data flow within the expression builder interface. You can continue to expose all data sources within the Oracle Data Miner workflow.
When a model provider node is connected as input, it enables you to see the list of model names contained in the node. This is useful in creating SQL that requires a model name.
Oracle Data Miner includes snippets that help you write SQL queries.