Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Delete & Load -30 Days Data

Hi,

I want to delete (TRX_DATE) >= TRUNC (SYSDATE - 30) data from my .QVD , then load (TRX_DATE) >= TRUNC (SYSDATE - 30) data back .

how can i achieve this using the below tables :

FACT:

SQL SELECT TRX_DATE , VALUE

FROM "FACT_TABLE";

STORE FACT INTO C:\Users\test\Documents\Qlik\MY_FACT.QVD;

Regards,

Adil

4 Replies
Gysbert_Wassenaar

MyTable:

LOAD *

FROM MY_FACT.QVD (qvd)

WHERE TRX_DATE < today()-30;

STORE MyTable IN MY_FACT.QVD;


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Gysbert,

thanks for the reply .

I wanted to update my QVD with 30 days data , delete sysdate-30 n then load it again .

simsondevadoss
Partner - Creator III
Partner - Creator III

Use incremental load. Insert , update and delete only the past 30 days data

jpitfield
Contributor II
Contributor II

Some thing like this:

FACT:

Load

TRX_DATE ,

VALUE;

SQL SELECT TRX_DATE , VALUE
FROM  FACT_TABLE
Where TRX_DATE >=TODAY-30;
Concatenate
LOAD *
FROM MY_FACT.QVD (qvd)
WHERE TRX_DATE < today()-30;

STORE FACT INTO C:\Users\test\Documents\Qlik\MY_FACT.QVD;