Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I Need to use data from a previous loaded data in the same script. Eg.
Table 1:
ID,
IF(SalesP_A='x','Y',
IF(SalesP_B='x','Y')) as SalesAggr
From
XYZ
Table 2:
ID,
IF (SalesAggr = 'Y','great') as SalesAggr_2
From
XYZ
But this doesn't work. Any idea? I heard something about resident table, but also this doesnt work really..
Table1:
ID,
IF(SalesP_A='x','Y',
IF(SalesP_B='x','Y')) as SalesAggr
From
XYZ
Table 2:
ID,
IF (SalesAggr = 'Y','great') as SalesAggr_2
RESIDENT
Table1;
You need to use th resident load for previously loaded data
Table1:
ID,
IF(SalesP_A='x','Y',
IF(SalesP_B='x','Y')) as SalesAggr
From
XYZ
Table 2:
ID,
IF (SalesAggr = 'Y','great') as SalesAggr_2
RESIDENT
Table1;
You need to use th resident load for previously loaded data