Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

DB input/ tDBRow components to run queries - Best practices

Hi all,

 

If I have to do an ETL job wih a few transformations(filters, joins, aggregates ...), is it a good practice to do everything using SQL script in the query of the DB input?

 

I mean, have a job with only DBInput -> DBOutput and in the query of the input include a big query with all the transformations needed. for example:

 

"select a.a1,a.a2, b.1,sum(b.b2) as b2 from a, b where a.a1 = b.a1 and a.a3 = 'xx' group by 1,2,3;"

 

Other similar approach would be using directly a tDBrow inc ase both input and output are part of same database:

 

"insert into c (select a.a1,a.a2, b.1,sum(b.b2) as b2 from a, b where a.a1 = b.a1 and a.a3 = 'xx' group by 1,2,30683p000009MA9p.png"

 

I think none of this options are good practice but I have not seen it in any Talend paper or documentation.This is not flexible and all the good things of using an ETL tool are not used. Otherwise, why would you use Talend Studio? You can directly run the SQL query in your database using an external scheduler. 

 

Can you share any Talend documention where these type of best practices are included?

 

Thanks,

Aldi

Labels (7)
2 Replies
manodwhb
Champion II
Champion II

We don't have any documents for this leer me try to get if we have.
Anonymous
Not applicable
Author

Thanks for taking a look to my comment.

 

At least, is correct my assumption that this is not a good practice?