- Posts: 6
- Thank you received: 0
Extract data from multiple source
12 years 6 months ago #1909
by navin
Extract data from multiple source was created by navin
Hi,
How can i extract data from multiple data sources(ex: one database table and one flat file) in a single mapping/job in Advanced ETL Processor?
Thanks in advance,
Navin.
How can i extract data from multiple data sources(ex: one database table and one flat file) in a single mapping/job in Advanced ETL Processor?
Thanks in advance,
Navin.
Please Log in or Create an account to join the conversation.
12 years 6 months ago #1910
by admin
Mike
ETL Architect
Replied by admin on topic Re: Extract data from multiple source
Can you be more specific please
www.dbsoftlab.com/forum/how-to-get-help-today.html
www.dbsoftlab.com/advanced-etl-processor...set-comparisons.html
Mike
www.dbsoftlab.com/forum/how-to-get-help-today.html
www.dbsoftlab.com/advanced-etl-processor...set-comparisons.html
Mike
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
12 years 6 months ago - 12 years 6 months ago #1913
by navin
Replied by navin on topic Re: Extract data from multiple source
Hi Mike,
Thanks for the quick reply
Using reader i am able to extract data only from one source either database table or text file at one time. i want to read the data from heterogenous sources like database, text file, excel sheet and join them and load in one target table (oracle) in a single mapping.
Thanks,
Navin
Thanks for the quick reply
Using reader i am able to extract data only from one source either database table or text file at one time. i want to read the data from heterogenous sources like database, text file, excel sheet and join them and load in one target table (oracle) in a single mapping.
Thanks,
Navin
Last edit: 12 years 6 months ago by navin.
Please Log in or Create an account to join the conversation.
12 years 6 months ago #1919
by admin
Mike
ETL Architect
Replied by admin on topic Re: Extract data from multiple source
So you you have table and file and want to do something like this
source table1 and file1
output file
row1 table.field1,table.field2,table.field3,file1.field1,file1.field2,file1.field3
row2 table.field1,table.field2,table.field3,file1.field1,file1.field2,file1.field3
etc
use lookup function
here is online tutorial
www.dbsoftlab.com/online-tutorials/advan...g-lookup-object.html
Mike
source table1 and file1
output file
row1 table.field1,table.field2,table.field3,file1.field1,file1.field2,file1.field3
row2 table.field1,table.field2,table.field3,file1.field1,file1.field2,file1.field3
etc
use lookup function
here is online tutorial
www.dbsoftlab.com/online-tutorials/advan...g-lookup-object.html
Mike
Mike
ETL Architect
Please Log in or Create an account to join the conversation.
12 years 6 months ago #1925
by navin
Replied by navin on topic Re: Extract data from multiple source
Thanks mike. it is working.
my requirement was:
source1: cust table
cust_id, cust_name, loc
100,aa,la
200,bb,ny
source2: text file - tdetails.txt
cust_id, no_transac, total_amount
100,10,10000
200,15,15000
Output:
cust_id, cust_name, no_tansac, total_amount, loc
100,aa,10,10000,la
200,bb,15,15000,ny
I got the desired output using lookup thanks alot.
Thanks,
Navin.
my requirement was:
source1: cust table
cust_id, cust_name, loc
100,aa,la
200,bb,ny
source2: text file - tdetails.txt
cust_id, no_transac, total_amount
100,10,10000
200,15,15000
Output:
cust_id, cust_name, no_tansac, total_amount, loc
100,aa,10,10000,la
200,bb,15,15000,ny
I got the desired output using lookup thanks alot.
Thanks,
Navin.
Please Log in or Create an account to join the conversation.