I am having two tables,say table1 having cols
Empid,firstname,lastname,middlename and table2 having
Empid,firstname,lastname can i union them using Union t/f?

Answers were Sorted based on User's Feedback



I am having two tables,say table1 having cols Empid,firstname,lastname,middlename and table2 havin..

Answer / sreenu

It is not possible to put both in Union directly,
The group coming to Union must have same number of columns
and its data type must be compatible.
In this case first table has 4 columns and the second table
has 3 only.

alternatively you can follow the below logic to pass to
union transformation

Because the 2nd table has only 3 columns, create dummy
column for the 2nd flow and pass null in that port, so that
you can connect them to Union

Is This Answer Correct ?    30 Yes 4 No

I am having two tables,say table1 having cols Empid,firstname,lastname,middlename and table2 havin..

Answer / ganithi anil

for union t/f tables structures should be same, i mean
columns and data types should besame then only you use
union t/f

Is This Answer Correct ?    4 Yes 0 No

I am having two tables,say table1 having cols Empid,firstname,lastname,middlename and table2 havin..

Answer / pavana

Yes , we can created 2 input groups with 4 columns . For 1st
input group pass all columns from table 1 ,for 2nd input
group pass all 3 columns from table 2, 4th column from in
2nd group remain unconnected.
Session executes successfully. output will be the union of 2
tables. The 4th column from 2nd table will be populated as
null in output.

Is This Answer Correct ?    4 Yes 0 No

I am having two tables,say table1 having cols Empid,firstname,lastname,middlename and table2 havin..

Answer / ravikumar2614

Yes we can.
create one more colomn in table-2 with same data type and assaign null values to that colom, then we can union two tables.
please correct if am wrong.

Is This Answer Correct ?    0 Yes 0 No

I am having two tables,say table1 having cols Empid,firstname,lastname,middlename and table2 havin..

Answer / sudheer

No need to create any dummy column(table-2) and make it as null...
Just create 2 groups as u have 2 tables and create 4 group ports like below Empid,firstname,lastname,middlename.
-Drag respective columns from src to union.
-Don't make any link for middle name from table as we don't have any column but drag all columns from table 2 and save the mapping and run the session.....This will work as i have tested.Thanks......

Is This Answer Correct ?    0 Yes 0 No

I am having two tables,say table1 having cols Empid,firstname,lastname,middlename and table2 havin..

Answer / maheedhar

I said yes,correct me if am wrong

Is This Answer Correct ?    9 Yes 10 No

Post New Answer

More Informatica Interview Questions

what is flat file override?

1 Answers   Cap Gemini, HP,


Hi, I am planning to take Infa Certification exam but am unable to find its dumps anywhere on web. If anybody has it, plz share them with me. jkinfo22@gmail.com Thanks in advance

0 Answers  


what r the transformations that r not involved in mapplet?

8 Answers   Wipro,


what is scd?

6 Answers  


What do mean by local and global repository?

0 Answers  






what is the difference between mapplet & stored procedure?

1 Answers  


I HAVE A SOURCE FILE CONTAINING 1|A,1|B,1|C,1|D,2|A,2|B,3|A,3|B AND IN TARGET I SHOULD GET LIKE 1|A+B+C+D 2|A+B 3|A+B WHICH TRANSFORMATION I SHOULD USE

5 Answers   Informatica,


we have 6 records in source , i need 2nd record in one target and 5th record in one target or 2nd & 5th record in same target.

8 Answers  


What is rank index in rank transformation?

0 Answers  


Define Pmrep command?

0 Answers  


source : col1 101 101 101 102 102 102 103 103 103 col2 1000 1500 2000 1200 2300 3000 2400 1300 2000 i need target as col1 101 102 103 col2 1000,1500,2000 1200,2300,3000 2400 1300 2000

6 Answers   CTS, Wipro,


Hi, There is a session in my workflow which is running for a long time, atlast we found the cause is the missing index. My session is running via a stored procedure. Can I create an Index on the table which the stored procedure is using while my session is running? Please suggest. My Informatica version is PC 8.0.6 My Oracle APPS is 11.5.3. Thanks,

0 Answers   HCL,


Categories