Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear all,
I have excel file containing lacs of records I have stored this into qvd and then now I am reloading from QVD.
Now I want to apply incremental load for this excel sheet I have date field as PK.
Please share demo or give idea how to do this .
Thanks
Vikas
This presents the basic idea:
QVDFile
LOAD *
FROM QVD.qvd;
MaxDate:
LOAD Max(Date) as MaxDate
Resident QVDFile;
LET vMaxDate = Peek('MaxDate');
DROP Table MaxDate;
Concatenate(QVDFile)
LOAD *
FROM Excel
Where Num(Date) > $(vMaxDate);
STORE QVDFile into QVD.qvd (qvd);
HTH
Best,
Sunny
This presents the basic idea:
QVDFile
LOAD *
FROM QVD.qvd;
MaxDate:
LOAD Max(Date) as MaxDate
Resident QVDFile;
LET vMaxDate = Peek('MaxDate');
DROP Table MaxDate;
Concatenate(QVDFile)
LOAD *
FROM Excel
Where Num(Date) > $(vMaxDate);
STORE QVDFile into QVD.qvd (qvd);
HTH
Best,
Sunny
Hi Vikas,
If you have date field as PK, take the latest date from QVD and load the data after that max date.
Thanks
Vikas
No problem Vikas,
Best,
Sunny