SELECT OMCOMP,OMCUST, AccountFrom =
CASE
when OMCOMP = 'SG1' and OMDIM1 = 1000 or OMCUST IN(SELECT Account FROM Finance_APAC.dbo.testAccount WHERE Country = SG1) THEN '1'
when OMCOMP = 'SG1' and OMDIM1 = 1234 or OMCUST IN(SELECT Account FROM Finance_APAC.dbo.testAccount WHERE Country = SG1) THEN '2'
ELSE 'OTHERS'
END
FROM Finance_APAC.dbo.testFMOSAL
Try this. I have just removed '=' from
..OMCUST = IN ( SELEC... and some unnecessary semicolons.
Let me know further if it results in any error.