in Technology by

Write the Unconnected lookup syntax and how to return more than one column.

1 Answer

0 votes
by

We can only return one port from the Unconnected Lookup transformation. As the Unconnected lookup is called from another transformation, we cannot return multiple columns using Unconnected Lookup transformation.

However, there is a trick. We can use the SQL override and concatenate the multiple columns, those we need to return. When we can the lookup from another transformation, we need to separate the columns again using substring.

As a scenario, we are taking one source, containing the Customer_id and Order_id columns.

Source:

Source1-informatica-interview-questions

We need to look up the Customer_master table, which holds the Customer information, like Name, Phone etc.

The target should look like this:

Target-informatica-interview-questions

Let’s have a look at the Unconnected Lookup.

Unconnected-lookup-informatica-interview-questions

The SQL Override, with concatenated port/column:

SQL-override2-informatica-interview-questions

Entire mapping will look like this.

Syntax-informatica-interview-questions

We are calling the unconnected lookup from one expression transformation.

Below is the screen shot of the expression transformation.

Expression-transformation-3-informatica-interview-questionsExpression-transformation-4-informatica-interview-questionsExpression-transformation-5-informatica-interview-questions

After execution of the above mapping, below is the target, that is populated.

Mapping-execution-informatica-interview-questions

Related questions

0 votes
    How many input parameters can exist in an unconnected lookup?...
asked Mar 25, 2021 in Technology by JackTerrance
0 votes
    What are the differences between connected lookup and unconnected lookup?...
asked Mar 25, 2021 in Technology by JackTerrance
0 votes
    Is it possible that a function have more than one return statements? ,1.true,2.false Select the correct answer from above options...
asked Dec 25, 2021 in Education by JackTerrance
0 votes
    Does independence of the judiciary mean that the judiciary is not accountable to any one? Write your answer in not more than 100 words. Please answer the above question....
asked Aug 4, 2022 in Education by JackTerrance
0 votes
    How do you load more than 1 Max Sal in each Department through Informatica or write sql query in oracle?...
asked Mar 28, 2021 in Technology by JackTerrance
0 votes
    In C, how can i pass more than one argument to a thread? Normally, I do it in a way like, ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    In prestressing work, if more than one wire or strand is included in the same duct, why should all wires/strands be stressed at the same time?...
asked Jan 1, 2021 in Technology by JackTerrance
0 votes
    This question is corresponding to this link VBA Excel : Extract data in specific format from CSV files but ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    my tens digit is one more than my hundreds digit. my hundreds digit is an even number between 5 and 7. my ones ... triangle. Who am l? Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
0 votes
    Consider the employee work-team example, and assume that certain employees participate in more than one ... Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    I'm considering the following: I have some data stream which I'd like to protect as secure as ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 17, 2022 in Education by JackTerrance
0 votes
    I'm considering the following: I have some data stream which I'd like to protect as secure as ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 15, 2022 in Education by JackTerrance
...