Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
Is it possible to restrict the loading of data till yesterday or till last week, or till particular date in load script.
Regards,
Pramod
Hi,
With a where-clause in your load script.
e.g. Where Date < Today() or Where Date > 01/02/2014
Yes, are you looking for this?
Let VlastDate=Date(Today()-7,'DD/MMM/YYYY')
Test:
Load
*,
Date(TrxnDate,'DD/MMM/YYYY')
From Table1
where TrxnDate > '$(VlastDate);
hi Pramod,
load data till yesterday write the condition on where like below:
Table :
load
StartDate, // date formate 'DD-MM-YYYY'
EndingDate //date formate 'DD-MM-YYYY'
from table where StartDate<today();
load data till last week write the condition on where like below:
Table :
load
StartDate, // date formate 'DD-MM-YYYY'
EndingDate // date formate 'DD-MM-YYYY'
from table where StartDate<date(num(today())-7,'DD-MM-YYYY');
load data till particular date write the condition on where like below:
"create variable for particular date"
set vPdate='11-12-2015' ;
Table :
load
StartDate, // date formate 'DD-MM-YYYY'
EndingDate // date formate 'DD-MM-YYYY'
from table where StartDate<'$(vPdate)';
hope this helpful for you
Regards
Ahmar
I need to restrict my data load to yesterday for all the table.
some table don't have dates column even that tables also...
If you dont have any transaction data, then you can't restrict.
This is like Header & Details tables where Header are like Master tables where you have to load them completely no other option