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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
sushantk19
Creator
Creator

looping for date

Hello Everyone,

I have a challenging issue with one of my SQL queries.

I have the sql query structure as below: I use amazon redshift database.

select a.*, a.date

from table a

where a.date < '2020-01-01'

Now i want to lookp the same query for dates between 2020-01-01 till max date in my table a.so intead of hardcoded date

'2020-01-01', i want to pass date as parameter to query and loop it till current date.

is there a component in talend to achieve this? how to implement this logic in Talend? do we need to write a SP ? please help

Labels (3)
1 Reply
Anonymous
Not applicable

@Sushant Kapoor​ , if you want to do a loop, you can use tLoop component, take a look at the component documentation and learn this component. Let me know if you still have any troubles.

 

Regards

Shong