on ‎2022 May 17 9:02 AM
Hi
CASE WHEN (inTab."/BIC/C55CONTID" is NOT null)
THEN
CASE WHEN (inTab."/BIC/CRCBECFVN" >1 ) THEN
(SELECT "/BIC/K5SCDCEC" FROM "/BIC/AZD_TVOG2" WHERE "/BIC/AZD_TVOG2"."/BIC/CRCBECFVN" = 1) AS "/BIC/K5SCDCEC",
ELSE
"/BIC/K5SCDCEC" AS "/BIC/K5SCDCEC"
END
END
after writing this logic gives me an error on the AS, can you tell me the reason?

Request clarification before answering.
If I got it right, you should use AS in a different place of the code. But I have not checked it on my instance.
CASE WHEN (inTab."/BIC/C55CONTID" is NOT null)
THEN
CASE WHEN (inTab."/BIC/CRCBECFVN" >1 ) THEN
(SELECT "/BIC/K5SCDCEC" AS "/BIC/K5SCDCEC" FROM "/BIC/AZD_TVOG2" WHERE "/BIC/AZD_TVOG2"."/BIC/CRCBECFVN" = 1) ,
ELSE
"/BIC/K5SCDCEC" AS "/BIC/K5SCDCEC"
END
END
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.