Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a load statement below:
[code]
TABA:
LOAD [Number] AS [ID Number],
[Type] AS [AType]
FROM
(qvd);
LEFT JOIN(TABA)
TABB:
[Type] AS [BType]
[\code]
Now this works fine, however i want to put in the load script
CASE WHEN [AType] IS NULL THEN [BType] ELSE NULL
However i can get it to work.
I have tried :
[Type] AS [BType],
if(IsNull(TABA.Type),TABB.Type,Null) AS [NewType]
Also Tried:
if(IsNull(AType),BType,Null) AS [NewType]
bump