Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,697 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How to use join(inner full left right) in synapse
Hi @Andrew Huang (Beyondsoft Corporation)
Azure Synapse uses the same JOIN
syntax as the other SQL servers / applications (see the green checkmark before Azure Synapse Analytics where it says 'Applies to' under the header of this page).
Example with OPENROWSET
:
SELECT
*
FROM OPENROWSET(
BULK 'https://datalake.dfs.core.windows.net/data/Cleansed/Category/*.parquet',
FORMAT='PARQUET'
) AS [Category]
INNER JOIN (
SELECT
*
FROM OPENROWSET(
BULK 'https://datalake.dfs.core.windows.net/data/Cleansed/SubCategory/*.parquet',
FORMAT='PARQUET'
) AS [SubCategory]
) SubCategory ON SubCategory.CategoryId= Category.Id
But, in my opinion, it is better to first create a VIEW
or TABLE
for every OPENROWSET
and then perform the JOIN
on the created VIEW
s or TABLE
s.