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

How to read multiple files at different directories using a single Sequential File stage in DS Enterprise Edition

6 Answers   TCS,


What are the different layers in the information server architecture?

0 Answers  


which memory is used by lookup and join

5 Answers   IBM,


souce file having the columns like name company krish IBM pooja TCS nandini WIPRO krish IBM pooja TCS if first row will be repeat i want the result like this name company count krish IBM 1 pooja TCS 1 nandini WIPRO 1 krish IBM 2 pooja TCS 2

9 Answers  


HOW WILL YOU IMPLEMENT SURROGATE KEY IN SCD BY USING SURR_KEY GENERATOR,THE VALUE OF S_KEY SHOULD NOT REPEAT EVEN IF THE JOB IS COMPILED REPEATEDELY?

4 Answers   L&T,






How to RD using transformer?

0 Answers   CTS,


I am defining one varaible parameter date in job parameters.I want use this variable date in where clause in source query.

2 Answers   TCS,


How to initialize environment variables?

4 Answers   Infosys,


You enter values in a schema file for RCP and you also entered values in sequential file? which one will it take?

1 Answers   TIAA CREF,


In my project source data comes from MAINFRAME in files.so,This time data is coming as a binary file...I know for binary data we use Complex flat file stage..I have used it also..but on 'view data' data is not coming correctly..as it in MAINFRAME.give me some ideas..

2 Answers  


What is RCP?

2 Answers   TCS,


I have a source table with column name CITY having 100 records, I want target table with column name start with 'A' and 'B',remaining columns as reject outputs. how can achieve this by data stage?please help me?????

5 Answers  


Categories