[Logo] MyDWBI---致力于打造最专业的中文数据仓库,商务智能社区
  [Groups]首页  [Blog] 博客   [Search] 搜索   [Recent Topics] 最新主题   [Hottest Topics] 热门主题   [Hottest Download] 热门下载   [Members]  会员列表  
[Register] 会员注册 / 
[Login] 登入 
请教关于多个表join的问题  XML
论坛首页 » Informatica
前往:   
发表人 内容
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.

谢谢。
zdcku
嘉颖


高级会员
[Avatar]

注册时间: 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 还真不知道 等待高人解答

学习
[MSN]
killandylove

论坛CTO
[Avatar]

注册时间: 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

本人中科院高级潜水院院士,诺贝尔长期掉线奖,奥斯卡终身隐身奖!!!
[Email] [WWW] [MSN]
zdcku
嘉颖


高级会员
[Avatar]

注册时间: 2008-05-06 22:32:12
文章: 152
来自: 江苏南京
离线

killandylove wrote:
2. 如果只实现distinct 1个字段,用sort transformer里面属性distinct


SORTER对流进该组件的所有字段都一起distinct的啊
怎么只distinct 1个字段

学习
[MSN]
killandylove

论坛CTO
[Avatar]

注册时间: 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
只有一个字段

本人中科院高级潜水院院士,诺贝尔长期掉线奖,奥斯卡终身隐身奖!!!
[Email] [WWW] [MSN]
 
论坛首页 » Informatica
前往:   

网站地图 |  联系我们 |   |  招聘版主 |  免责声明 |  意见建议 |  系统帮助 | 
Copyright © 2008, mydwbi.com, All Rights Reserved | Powered by JForum 2.1.8 © JForum Team