Load Data
This task reads data on the source connection and loads it into the loading table. This command is always executed.
Command on Source
This select statement will cause the correct transformation (mappings, joins, filters, etc.) to be executed by the source engine.
select <%=snpRef.getPop("DISTINCT_ROWS")%> <%=snpRef.getColList("", "[EXPRESSION]\t[ALIAS_SEP] [CX_COL_NAME]", ",\n\t", "", "")%>from <%=snpRef.getFrom()%>where (1=1)<%=snpRef.getFilter()%><%=snpRef.getJrnFilter()%><%=snpRef.getJoin()%><%=snpRef.getGrpBy()%><%=snpRef.getHaving()%>
Command on Target
Note here the use of the biding using :[CX_COL_NAME]
. The CX_COL_NAME binded value will match the alias on the source column.insert into <%=snpRef.getTable("L", "COLL_NAME", "A")%>( <%=snpRef.getColList("", "[CX_COL_NAME]", ",\n\t", "","")%>)values( <%=snpRef.getColList("", ":[CX_COL_NAME]", ",\n\t", "","")%>)
No comments:
Post a Comment