How to create Relationships between tables from different databases

it’s just hint.
DB1=
table-> User(id, name, address,phone,email…),

DB2=
table->book(id,user_id,name,price,…),

want to fetch data of user and book. how to write query to perform this.

You want to do this?

please hire a back end developer