--SELECT * FROM [DataBase Name].dbo.TableName
SELECT * FROM [tt].dbo.Customers A,[Northwind].dbo.Customers B WHERE A.CustomerID = B.CustomerID