Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
My requirement is to keep only 6 months of data in qvd file. once in a month the qvd generator will run to append the new file and delete the last file i.e. if the data is from july to dec , then when jan data comes .. jan data will get added and july will get deleted and qvd will have data from Aug to jan.
Sample script will be beneficial .
Thanks,
Yogendra
T:
load * from QVD ;
concatenate
Load * from Source where Month = 'Jan'
store T into Temp_qvd;
noconcatenate
F:
load * from Temp_qvd where Month > 'July';( Month-7)
store F in to QVD;
drop table Temp_qvd;