Create a custom query when you want to use a database source that you can't configure with a single object and lookup source. You might create a custom query to join multiple source tables.
To use a custom query as a source, select
Query
as the source type and then click
Select
. When you define the query, use SQL that is valid for the source database. You can use database-specific functions in the query.
When you create a custom query, enter an SQL SELECT statement to select the source columns you want to use.
Data Integration
uses the SQL statement to retrieve source column information.
Data Integration
ensures that custom query column names are unique. If an SQL statement returns a duplicate column name,
Data Integration
adds a number to the duplicate column name as follows:
<column_name><number>
Test the SQL statement you want to use on the source database before you create a custom query.
Data Integration
doesn't display specific error messages for invalid SQL statements.