Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Purushothaman
Partner - Creator III
Partner - Creator III

To Load 25 Months of Data from DB

Hello Experts,

 

I need to load a table from DB Table "Product". The Product Table got 10 years worth of data.

I need to load only always 25 months of data at any time based on field “Received_date_time”  .

 

How should do it data load editor?

Example of DB Table:

PRODUCT:

Unique-Key

ProductName

Received_date_time

U001

AYZ

2013-09-15 09:19:45.000

U002

BYZ

2015-11-23 12:09:30.000

 

Please help!!

Thank you!

3 Replies
whiteymcaces
Partner - Creator
Partner - Creator

The concept for this answer is simple.

Table:

Load

Fields

From DataBase

Where [Date Field] > Today() - [25 Months Ago];

The complexity is based around when you reload data, how often you reload data, and your definition of '25 months ago'.

Purushothaman
Partner - Creator III
Partner - Creator III
Author

@whiteymcaces 

Thank you for your reply. At any given time, The “Received_date_time” to load last 25 months of data from today.

The data load will happen daily basis.

whiteymcaces
Partner - Creator
Partner - Creator

Assuming you reload today (17 Nov 2023), what date will the first row of data be?