| 发表人 |
内容 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 2008-08-04 03:40:04
|
honker_888
中级会员
注册时间: 2008-05-24 07:57:39
文章: 30
离线
|
在Informatica 中如何实现下面sql 的功能:
select distinct a.name from tableA a,tableB b,tableC c where a.id=b.id and b.name=c.name and c.name='test'
在mapping 中做了两个joiner :即,a,b join 的结果和c join ,但是最不到distinct 的效果,请问那位有好的实现方法。
另,我在用了多个join 后,在debug 的时候,从数据源那的不到数据,错误如下:
Response from the Integration Service: Session completed with failure. Last chance to look at target data. Debugger will shut down when we continue.
Integration Service is Ready.
还有如何打开debugger 事的session log.
谢谢。
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 2008-08-04 19:51:36
|
zdcku 嘉颖
高级会员
![[Avatar]](/images/avatar/e2ef524fbf3d9fe611d5a8e90fefdc9c.jpg)
注册时间: 2008-05-06 22:32:12
文章: 152
来自: 江苏南京
离线
|
一、
直接吧这段SQL放在SQ组件里
select distinct a.name from tableA a,tableB b,tableC c where a.id=b.id and b.name=c.name and c.name='test'
二、a,b join 的结果和c join 之后使用SORTer组件实现DISTINCT
debugger的log 还真不知道 等待高人解答
|
学习 |
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 2008-08-07 03:51:17
|
killandylove
论坛CTO
![[Avatar]](/images/avatar/e4da3b7fbbce2345d7772b0674a318d5.jpg)
注册时间: 2008-04-23 08:51:09
文章: 58
来自: 不透露
离线
|
honker_888 wrote:在Informatica 中如何实现下面sql 的功能:
select distinct a.name from tableA a,tableB b,tableC c where a.id=b.id and b.name=c.name and c.name='test'
在mapping 中做了两个joiner :即,a,b join 的结果和c join ,但是最不到distinct 的效果,请问那位有好的实现方法。
另,我在用了多个join 后,在debug 的时候,从数据源那的不到数据,错误如下:
Response from the Integration Service: Session completed with failure. Last chance to look at target data. Debugger will shut down when we continue.
Integration Service is Ready.
还有如何打开debugger 事的session log.
谢谢。
1. Debugger的session log是会在你debug之后自动删掉,如果你想在debug的时候,查看session log, 那么和你平常查看普通session log的方法一样,debugger也是启动了一个workflow调用了一个session.
2. 如果只实现distinct 1个字段,用sort transformer里面属性distinct
|
本人中科院高级潜水院院士,诺贝尔长期掉线奖,奥斯卡终身隐身奖!!! |
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 2008-08-07 06:23:23
|
zdcku 嘉颖
高级会员
![[Avatar]](/images/avatar/e2ef524fbf3d9fe611d5a8e90fefdc9c.jpg)
注册时间: 2008-05-06 22:32:12
文章: 152
来自: 江苏南京
离线
|
killandylove wrote:
2. 如果只实现distinct 1个字段,用sort transformer里面属性distinct
SORTER对流进该组件的所有字段都一起distinct的啊
怎么只distinct 1个字段
|
学习 |
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 2008-08-08 03:46:32
|
killandylove
论坛CTO
![[Avatar]](/images/avatar/e4da3b7fbbce2345d7772b0674a318d5.jpg)
注册时间: 2008-04-23 08:51:09
文章: 58
来自: 不透露
离线
|
zdcku wrote:
killandylove wrote:
2. 如果只实现distinct 1个字段,用sort transformer里面属性distinct
SORTER对流进该组件的所有字段都一起distinct的啊
怎么只distinct 1个字段
因为select distinct A from xxx
只有一个字段
|
本人中科院高级潜水院院士,诺贝尔长期掉线奖,奥斯卡终身隐身奖!!! |
|
|
 |
|
|