Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217069

How to give 2 or more data sources in blank query

$
0
0

I have a requirement where I have to join two tables from two different data sources. I have selected the blank query option and I am writing the query in the advanced editor option available in the query editor. This advanced editor allows me to enter only one data source. Is there a way where I can give two or more data sources.

 

The below works.

 

let
 Source=Sql.Database("servername", "datasource1",
   [Query="SELECTBusinessEntityID,FirstName,MiddleName,LastName,
     JobTitle,City,StateProvinceName,CountryRegionName,TerritoryName,
     TerritoryGroup,SalesYTD,SalesLastYear
     FROMSales.vSalesPerson;"])
in
 Source
 
"datasource1" is one data source.
My question is how to add another datasource.
 
Thanks.

Viewing all articles
Browse latest Browse all 217069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>