Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello my dear community,
A question, I loaded the data of my qvw twice in my QVD, data of the date of 23/05/2016.
Coud you please advise on how to remove the data of that day?
Thanks a lot
Date:
LOAD * inline [
DateExclude
23/05/2016 ];
// Remove data for this date and store the data again in the same QVD
Data:
LOAD *
FROM Data.qvd(qvd)
WHERE not exists (DateExclude,Date);
Store Data into ..\Data.qvd;
Note: date format of DateExclude,Date should be the same
Date:
LOAD * inline [
DateExclude
23/05/2016 ];
// Remove data for this date and store the data again in the same QVD
Data:
LOAD *
FROM Data.qvd(qvd)
WHERE not exists (DateExclude,Date);
Store Data into ..\Data.qvd;
Note: date format of DateExclude,Date should be the same
Hi,
use distinct keyword in script.
Regards,
Hi, could you post some sample data? To fully understand your requirement.
Best regards,
Adnrés
AFAIK by not storing the data twice in your QVD in the first place.
Are those double rows exactly the same? Storing data twice (without a need for it) and then again trying to eliminate the excess rows is a double waste of time. Data sets will only grow, and in the end you may face problems with reload jobs taking too long to complete for no apparent reason.
Peter
the fiels date is the field date in my qvw?
Thanks
yes, they are exactly the same..
while loading it in qvd you can try with distinct keyword
like
select distinct * from tableName
Regards,
Yeah,It's Date field in your QVW
Thanks Andres for your reply. The pb was fixed.