Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
i am writing this code
Load
orderdate, A, B,C from table1
if(IsNull(EndDate),max(orderdate),EndDate) as EndDate,
StartDate,
TerritoryID From
Table2
the above code gives error?? how to solve it?
thanksLavi
Lukasarn,
i have done by creating Temporary table
Temp:
LOAD
num(max(OrderDate)) as MaxDate
Resident Table1;
LET vMaxDate = peek('MaxDate', 0, 'TEMP');
Drop Table Temp;
Now i can use this variable VMaxDate any where.
thanks for your kind help
RegardsLavi