Saturday, November 17, 2007

Working with Expressions

A transformation has the following ports: Port_1: String, Input port; Port_2: String, Input port; Port_3: String, Output port. Which of the expressions shown below would be valid? Assume that it is associated with Port_3 and that the string ENDSTRING is not a parameter or mapping variable.

Choose Answer

(A)
Port_1|| Port_2 || 'ENDSTRING'
(B)
Port_1 || Port_2 || "ENDSTRING"
(C)
Port_1 || Port_2 || ENDSTRING
(D)
CONCAT(Port_1, CONCAT(Port_2, "ENDSTRING"))