A table containg 100 records B table containg 20 records we
have to join two tables in left outer it containg target 100
records but target containg 101 record at that time what is
the issue arise

Answers were Sorted based on User's Feedback



A table containg 100 records B table containg 20 records we have to join two tables in left outer i..

Answer / srinivas

Hi,qustion was not clear.

As per my understanding After join if we get 101 records in target, then we can say one duplicate was there in B table.
While joining the tables by using left outer total records from left table and matched records from both will be load into target.
so i will give small example

We have two tables A & B
A having

Id Name
1 sri
2 hari
3 prasad

B Having
LeavesId
1
1
2
3

If will do the left outer join u will get below

No name leavesid
1 sri 1
1 sri 1
2 hari 2
3 prasad 3.

As per above example may help u to demonstrate the your query.

Thanks
Sri

Is This Answer Correct ?    26 Yes 0 No

A table containg 100 records B table containg 20 records we have to join two tables in left outer i..

Answer / geetha

Extra 1 records  is populated in case of duplicate records in the reference tables. lets say we have emp_id A in left table and we have two emp_id A ,in this case we will have duplicate records in the output.

Is This Answer Correct ?    2 Yes 0 No

A table containg 100 records B table containg 20 records we have to join two tables in left outer i..

Answer / hirdesh srivastava

If you join two tables either equi join, left outer join or right outer join, result records can't be greater than max record of a big table. Until or unless you go for full outer join. e.g. if there are 100 records in one table and 20 records in other table then if you go for any join except full outer join result records won't be greater than 100 records. 

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More Data Stage Interview Questions

hi this is kiran i have one table i want divide the table with two different table like even rows and odd rows how can i do this one tell me plzz

4 Answers  


by using dsjob..we can run only one job at a time?how can u run multiple jobs at a time in unix?

1 Answers  


I have 3 jobs A,B and C , which are dependent each other. I want to run A & C jobs daily and B job run only on sunday. how can we do it?

1 Answers   CGI,


Have you have ever worked in unix environment and why it is useful in datastage?

0 Answers  


What is the use of Row generator stage?

2 Answers  






Differentiate between datastage and informatica?

0 Answers  


What is the purpose of pivot stage?

0 Answers  


how can we perform the 2nd time extraction of client database without accepting the data which is already loaded in first time extraction

1 Answers   Reliance,


Describe stream connector?

0 Answers  


how to achieve this output ? Two Input columns(ID & Name) - ID | Name 1 | Jack 1 | Kara In output there should be only 1 column which will be populated as - 1,Jack 1,Kara

0 Answers  


How a source file is populated?

0 Answers  


what is executable in DataStage?

2 Answers  


Categories