it is possible to load two tables data into one sequential
file?if possible how?plz share with me?

Answers were Sorted based on User's Feedback



it is possible to load two tables data into one sequential file?if possible how?plz share with me?..

Answer / subhash

Lets discuss diff cases:
1. If the two tables having same key column,
then based on that key column we can able join the two
tables. It's horizantal joining.
Ex: Table1 has 10 columns +1Key col
Table2 has 5 columns +1Key col
in target SeqFile we get 10+5+1 columns

2. If the two tables having same metadata,
Then using funnel stage we can perform vertical joining.
whether it may continuous or sequence funnel.
In this case we can add extra columns 'INDICATOR'(1 for
Table1 and 2 for Table2 records in the select query) to
identify records

3. If the two tables not having same metadata & Key column,
We can generate 1 common Key column from Column Generator
Stage- 'DUMMY'(values: 1,2,3,4,...) for 2 tables
Then, we can join based on DUMMY column to get all the
columns from the both tables and load those columns to
SeqFile.

Is This Answer Correct ?    8 Yes 0 No

it is possible to load two tables data into one sequential file?if possible how?plz share with me?..

Answer / venugopal

Yes you can join two tables and load the data into
sequential file...
Take two tables use join stage and join the data based on
the key and then load the data into sequential file...

Is This Answer Correct ?    8 Yes 1 No

it is possible to load two tables data into one sequential file?if possible how?plz share with me?..

Answer / amit

Two tables means, there is a possibility of mismatching metadata. In this case also, we can load data into a sequential file without maintaining the metadata of two tables.

If we want to keep track of these records, then we can, add one record identifier field, to later identify the records while extracting data from file.

Is This Answer Correct ?    1 Yes 0 No

it is possible to load two tables data into one sequential file?if possible how?plz share with me?..

Answer / raja sekhar

yes,possible first jest give the path name of the one of the
table in stage tab then go to the output tab then u can find
out the load option jest load the one table data.through the
load option u can load the second table also.

Is This Answer Correct ?    0 Yes 0 No

it is possible to load two tables data into one sequential file?if possible how?plz share with me?..

Answer / srikanth reddy m

If the two tables having same key column, then based on that key column we can able join the two tables. This is nothing but horizantal joining.
or
If the the two tables having same metadata, then using funnel stage we can perform vertical joining. whether it may continuous or sequence funnel.

Is This Answer Correct ?    0 Yes 0 No

it is possible to load two tables data into one sequential file?if possible how?plz share with me?..

Answer / ramesh

sequential file has no storage memory limit. so that
possible.but hashed file is not possible.

Is This Answer Correct ?    0 Yes 9 No

Post New Answer

More Data Stage Interview Questions

i have a scenario like two columns(Empno, Ename) in that duplicate records are there, so my question is how to get second duplicate record in datastage.

4 Answers   Wipro,


What are the types of containers and how to create them?

0 Answers  


SOURCE CITY NAME1 NAME2 NAME3 NAME4 BGLR HCL CSC IBM TCS TARGET CITY COMPANY BGLR HCL BGLR CSC BGLR IBM BGLR TCS

1 Answers  


How many Key we can define in remove duplicate stage?

0 Answers   CTS,


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,


Is the value of staging variable stored temporarily or permanently?

0 Answers  


1.How to read multiple file from sequential stage. 2.If a file doesn't arrive or doesn't exists in sequential stage how do u handle this. 3.What do you do before taking data from source to staging area. 4. I have a remove duplicate stage and transformer stage.what will u do for optimizeing the performance of the job.

4 Answers   Syntel,


How many types of hash files are there?

0 Answers  


data stores in which location while using data set stage as the target?

1 Answers   IBM, TCS,


How to convert RGB Value to Hexadecimal values in datastage?

0 Answers  


How did you reconcile source with target?

2 Answers   HP,


What is difference between server jobs & parallel jobs?

0 Answers  


Categories