The Expression transformation has an input/output port for each source column. It passes column names to the SQL transformation based on the value of the PriceCode column.
The following figure shows the ports in the Expression transformation that return column names:
The SQL transformation has the following columns that contain the results of expressions:
UnitPrice_Query.
Returns the column name “MUnitprice,” “RUnitPrice,” or “WUnitprice” based on the whether the price code is “M,” “R,” or “W.”