sql - Using a Right Outer Join to Match Records from Two Different Databases -


SQL 2005:

I'm trying to insert an external one that has two separate databases Can pull records from My purpose is to determine which records in database B are not recorded in database A. When I tried to run the query, then it is below the error that I can not believe how this error can be found:

'Tables or Function' Asset Comp Type-ApprovalProperty_LinkTable 'and' TA -Reporting debob.asset comp typeEqualementProperty_LinkTable 'The only highlighted names are I. Use to isolate correlation names. AssetCompType_EquipmentProperty_LinkTable includes the right external from [Database A]. Dbo.AssetCompType_EquipmentProperty_LinkTable [Database A] on. Dbo.AssetCompType_EquipmentProperty_LinkTable.AssetCompTypeID = [Select from AssetCompType_EquipmentProperty_LinkTable] [

Database B] .dbo.AssetCompType_EquipmentProperty_LinkTable.AssetCompTypeID

It seems that you should distinguish between tables. Try it with:

  Select from AssetCompType_EquipmentProperty_LinkTable T1 [Database A]. T1.AssetCompTypeID = T2.AssetCompTypeID  
on Dbo.AssetCompType_EquipmentProperty_LinkTable T2

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -