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

How can we select pr retrieve the particular row in dataset by using orchadmin command?

1 Answers   IBM,


How one source columns or rows to be loaded in to two different tables?

0 Answers  


in oracle target stage when we use load option and when we use upsert option?

0 Answers  


i have one table with one column in this column i have three rows like 1,1,2 then that rows populate to target as first tow rows as one row and remaing row as one row how it posible? COLUMN_NAME SHIVA RAMU MADHU THEN I WANT TO LIKE SHIVA AND RAMU IN ONE ROW AND MADHU IS ONE ROW IF ANY ONE KNOW PLZ TELL ME

3 Answers   Cap Gemini,


A signal has a wavelength of 1 micro min in air.how far can the front of the wave travel during 1000periods?

0 Answers  






What are the types of views in datastage director?

0 Answers  


What's the Main Function of the Staging area in DWH

3 Answers   Oracle,


how to call routines in stages?

3 Answers   ME,


Which warehouse using in your datawarehouse

0 Answers   IBM,


if i have two tables table1 table2 1a 1a,b,c,d 1b 2a,b,c,d,e 1c 1d 2a 2b 2c 2d 2e how can i get data as same as in tables?chandu how can i implement scd typ1 and type2 in both server and in parallel?chandu field1 field2 field3 suresh , 10,324 , 355 , 1234 ram , 23,456 , 450 , 456 balu ,40,346,23 , 275, 5678 how to remove the ,inthe fields?

2 Answers  


HOW U CAN ABORT THE JOB IF THE DATA IS DUPLICATE?

1 Answers   IBM,


How to remove duplicates in transformer stage? in parallel mode

6 Answers   Syntel, TCS,


Categories