Multiple Part Identifier Cannot Be Associated

select (case when t.freeplayabandoned != f.freeplayabandoned then 'freeplayabandoned'
             when t.freeplaydownloaded != f.freeplaydownloaded then 'freeplaydownloaded'
    end) 
from testtable t where not exists (select * from freeplay.egmfreeplay f  where f.freeplaydownloaded  = t.freeplaydownloaded)

I tried to get testtable entry column names that do not match freeplay.egmfreeplay names

and I get an error on error

Msg 4104, Level 16, State 1, Line 1 Multiple identifier "f.freeplayabandoned" cannot be associated. Msg 4104, Level 16, State 1, Line 1 Multiple identifier "f.freeplaydownloaded" cannot be associated.

can anyone help?

+3
source share
1 answer

f is inside a subquery inside an existing call. You cannot use it outside of a subquery.

+6
source

Source: https://habr.com/ru/post/1710271/


All Articles