How can I send query that joining tables from two different databases with RMySQL:: dbSendQuery?
with SQL:
select * from mydb1.table as A left join mydb2.table as B on A.id=B.id
With R:
get_db1_data <- RMySQL::dbSendQuery(mydb1,"SELECT * FROM table")
get_db2_data <- RMySQL::dbSendQuery(mydb2,"SELECT * FROM table")
How can I combine these two lines of code to one with RMySQL::dbSendQuery?