I once received assistance converting the following T-SQL code to Azure Data Factory expression.
The T-SQL is:
SELECT
deltaTable.*
FROM dbo.deltaTable
LEFT OUTER JOIN dbo.targetTable
ON deltaTable.signature = targetTable.signature
WHERE targetTable.signature IS NULL
The pipeline expression is:
@concat('SELECT ',pipeline().parameters.DeltaTable,'.* FROM ',pipeline().parameters.tempdb,'.',pipeline().parameters.Domain,'.',pipeline().parameters.DeltaTable,' LEFT OUTER JOIN ',pipeline().parameters.tempdb,'.',pipeline().parameters.Domain,'.',pipeline().parameters.TableName,' ON ',pipeline().parameters.DeltaTable,'.signature = ',pipeline().parameters.TableName,'.signature WHERE ',pipeline().parameters.TableName,'.signature IS NULL')
Can someone help further the modify the Azure Data Factory expression for the following T-SQL code:
SELECT
DeltaTable.*
FROM dlt.DeltaTable
LEFT OUTER JOIN dbo.TableName AS tgt
ON dlt.DeltaTable.signature = tgt.signature
WHERE tgt.signature IS NULL;
Can someone help further the modify the Azure Data Factory expression for the following T-SQL code: SELECT DeltaTable. * FROM dlt.DeltaTable LEFT OUTER JOIN dbo.TableName AS tgt ON dlt.DeltaTable.signature = tgt.signature
WHERE tgt.signature IS NULL;
You will probably get the error when you directly add the expression. as below
To resolve this error, follow the below steps:
@concat('SELECT ',pipeline().parameters.DeltaTable,'.\* FROM ',pipeline().parameters.DeltaTable,' LEFT OUTER JOIN ',pipeline().parameters.TargetTable,' ON ',pipeline().parameters.DeltaTable,'.signature = ',pipeline().parameters.TargetTable,'.signature WHERE ',pipeline().parameters.TargetTable,'.signature IS NULL')
Output: