it is possible that you can join multiple tables on Different Databases on the Same server or different server in MS SQL Server.
If both databases are on the same server you can just join like this
SELECT
*
FROM [Database1].[Schema].[TableA] A
JOIN [Database2].[Schema].[TableB] B
ON A.Key = B.Key
If they are on different servers or different SQL instances on the same server machine, You can either use a Linked Server or a Bridge Query(OPENDATASOURCE).
To use Linked Server, first, you need to add a linked server connection
Refer this Article to know how to add the linked server.
Once you have configured Linked server you can Query the Tables like this
SELECT
*
FROM [ServerName1].[Database1].[Schema].[TableA] A
JOIN [ServerName2].[Database2].[Schema].[TableB] B
ON A.Key = B.Key
or you can use the opendatasource
SELECT
* FROM TableA A
JOIN OPENDATASOURCE (
'SQLNCLI', -- or SQLNCLI
'Data Source=OtherServer\InstanceName;Catalog=RemoteDB;User ID=SQLLogin;Password=Secret;').RemoteDB.dbo.SomeTable B
ON A.KEY = B.KEY