You have two options:
1) Create a database view in the one database that joins table A to the table B in the other database and import that view as part of your external database datasource
2) Create a RIA domain service datasource that internally does the join in the same way as 1 above. There are lots of articles on the internet about creating RIA services for LightSwitch.
Options 1 is probably the quickest.