问题
my problem is this: For example, I have a table with three columns in SQL Server table1(id, number1, number2) and other table2(id,finalNumber). How can I do a conditional copy? I want to copy the bigger number of each row in the table2(finalNumber). I thought a LookUp->IfConditionally but it doesn't work.
回答1:
From the example in the IfCondition activity document,it could be used to quote the output data from look up activities.Like @{activity('MyLookupActivity').output.firstRow.count}. You could refer to my previous case:Referencing JSON payload value in Azure Data Factory for If condition
In addition,one more idea is using stored procedure.You could this link to configure sql server stored procedure in your sql server sink.
Then you could copy the data from source table to the temporary table.And do the number contrast business and insert operations in the stored procedure.There are very detailed steps i did in my previous case: Azure Data Factory mapping 2 columns in one column refer to it.
Any concern,let me know.
来源:https://stackoverflow.com/questions/55539415/how-to-copy-data-in-azure-data-factory-depending-on-the-values