Report question

Question: Sql query containing 2 databases