I have one table from the Oracle database and the other one from the SQL database. Since these are 2 different databases, in "GET DATA" I need to choose 2 different connections like MYSQL & ODBC. I did that and got both the tables in Query editor as 2 separate tables as shown below.
Now I need to run an SQL code that should take these 2 tables as a reference and give me an output. Doing this in Power BI with so many joins, merges, and custom columns will slow down the auto-refresh. Hence looking out for a solution.
I am not sure, whether it is possible to reference 2 tables within 1 Power BI file and use them as a reference to write an SQL query and get desired output. Kindly help with your valued opinion on the possibility.
You may want to create a linked server (see article below). An example is creating a linked server in a SQL Server database that points to an Oracle database. Then you can write SQL that will query tables in each database. You can use the OPENQUERY function in SQL Server to send PL/SQL to an Oracle database.