Running queries over multiple database tables with R

1 · John MacKintosh · April 28, 2022, 11:26 p.m.
You want to run a query over multiple tables in your database / warehouse and then process and visualise the combined results of those queries. You need to be able to switch between servers, databases, schemas and tables, selecting different columns and applying different conditions in the WHERE clause. You don’t have permsissions to write complex / dynamic SQL (for example you can’t create stored procedures or query system tables). Are you stumped? Not if you know R! Here’s one way to do it.....