подобный запрос работать не может, нужно или так:
SELECT [_Code]
FROM [Table1].[dbo].[_Reference865]
where [_Code] NOT IN (SELECT [_Fld9288] as [_Code]
FROM [Table2].[dbo].[_Reference31])
или так:
SELECT [_Code]
FROM [Table1].[dbo].[_Reference865] as t1
where not exists (SELECT [_Fld9288] as [_Code]
FROM [Table2].[dbo].[_Reference31] as t2
where t2.[_Fld9288]=t1.[_Code])
|