icCube join table with ETL

好久不见. 提交于 2019-12-13 01:12:46

问题


I have a Customers table which contains the salesRepEmployeeNumber which is in the Employees table.

How do I do something like

SELECT * 
FROM   Customers 
JOIN   Employees 
  ON   Customers.salesRepEmployeeNumber = Employees.employeeNumber

with icCube ETL ?


回答1:


As pointed in another answer, you can add a table based in an SQL statement that would do the job. In case your original datasource is not able to do a join :

We've not yet an join transformation, added this in our todo list. On the meantime, what you can do is.

Create an Union Table with your two tables. This will create a new table with the columns of both tables. Put the small one, first as we're going to cache it later on.

Create a Javascript view, you might need to activate Javascript in your icCube.xml configuration. In this one you can cache the first table and use a bit of js to do the join. You can trigger the table change on a field being empty. Don't forget to put 'Table Row Ordering' to Keep Table Order.

hope it helps




回答2:


No need to use the ETL.

With the designer, add a table with the + sign in the menu above DataSource. The next panel gives you the choice between reading data from an existing table or an sql query.



来源:https://stackoverflow.com/questions/35782295/iccube-join-table-with-etl

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