In the part 1 we added one server as linked server to another instance of the mssql server now we will right a sample query which will retrun the result from both the server tables and will give single output
select * from master.sys.objects union select * from [inventory].master.sys.objects
it will return the result after combining the result of both the databases of different instance. So you will get the list of objects which are there in both the instances. Now we will take another sample in which we will have the product database in one instance and customer database in another instance we will join them on one field and will get the result after joining them
select productname, productid, customername, customerid from products.dbo.productlist as prolist inner join [inventory].customers.dbo.customerlist as cuslist on (cuslist.productid = prolist.productid)
here result from the one instance and customer data is coming from the inventory server