How to copy data in Azure Data Factory depending on the values?

ⅰ亾dé卋堺 提交于 2019-12-24 06:07:51

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!