Yes.
For MSSQL, you can add the database name in front of your table. Usually you have 4 namespaces that you can use
<server name>. [database name]. [owner]. [table_name]So, if you want to compare two values in one of the statements, you will only need to join through the tables, placing the database name in front of the table name.
, , SQL, sql. SQL, - sp_addlinkedserver