Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Comment faire pour créer un qvd que si une des données de ma table stocks répond à certaines conditions comme par exemple > 10
et si ce n'est pas le cas, le qvd ne se créer pas et donc on garde la version precedente.
dans mon script de chargement, je doit ou non faire un STORE <TABLE> into STOCKS.QVD
merci d'avance si quelqu'un a une idée
Laurent,
Store will create a qvd with the entire table. So you will have first to create a table with the data you want to store, and then store it and drop it. Like:
finaltable: noconcatenate load * from initialtable where condition...;
store finaltable into finaltable.qvd (qvd);
drop table finaltable;
Hope it helps.
Marc.
hi,
try below:
if a > 10 then
store <Table> into Stocks.qvd(qvd);
end if;
HTH
sushil
This is an example:
Check:
LOAD Sum(Qty) AS TotalQty
RESIDENT STOCK
WHERE ProductCode = 'a';
LET vCurrentProductAQty = peek('TotalQty');
IF vCurrentProductAQty > 10 THEN
STORE STOCK INTO STOCK.QVD(qvd);
END IF