[英]How to join two tables in informatica without using JOINER transformation?
If we use Joiner , then it is taking to much time. 如果我们使用Joiner,那么这将花费很多时间。 We have table A and Flat file B. A table has following fields Name , DEPT, SALARY. 我们有表A和平面文件B。一个表具有以下字段Name,DEPT和SALARY。 File B has following fields NAME and DEPT. 文件B具有以下字段NAME和DEPT。 We have to match the NAME in between table and file B and update DEPT field in File B on the basis of Value of DEPT present in Table A. 我们必须在表和文件B之间匹配名称,并根据表A中存在的DEPT值更新文件B中的DEPT字段。
Table A
NAME DEPT SALARY
John WSS 10000
Micheal LSS 50000
Flat File B
NAME DEPT
JOHN
JOHN
Micheal
Micheal
Output(After Updation) Table B
NAME DEPT
JOHN WSS
JOHN WSS
Micheal LSS
Micheal LSS
There is some ways to improve the performance in your case: 有一些方法可以提高您的案例的性能:
In case both of your tables are located in same data base, you have to implement your join inside Source Qualifier. 如果两个表都位于同一数据库中,则必须在Source Qualifier中实现联接。 It's a most effective way. 这是最有效的方法。
In case you want to use joiner transformation, you have verify, that the smallest input (smallest table) is marked as Master. 如果要使用联接器转换,请确保已将最小输入(最小表)标记为Master。 It's also worth to sort the input and check "Sorted Input" option in your joiner transformation. 还值得对输入进行排序,并在细木工转换中选中“排序的输入”选项。
first import ur flat file b as a source 首先导入ur平面文件b作为源
Flat File B
NAME DEPT
JOHN
JOHN
Micheal
Micheal
then You need to use Lookup transformation on table A 那么您需要在表A上使用Lookup转换
Table A
NAME DEPT SALARY
John WSS 10000
Micheal LSS 50000
drag the name column source to look up transformation and check the look up condition table A name and flat file name name=name
then drag name and dept in expression transformation then target 拖动名称列源以查找转换并检查查找条件表A名称和平面文件名name=name
然后在表达式转换中拖动名称和部门然后目标
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.