[Logo] MyDWBI---致力于打造最专业的中文数据仓库,商务智能社区
  [Groups]首页  [Blog] 博客   [Search] 搜索   [Recent Topics] 最新主题   [Hottest Topics] 热门主题   [Hottest Download] 热门下载   [Members]  会员列表  
[Register] 会员注册 / 
[Login] 登入 
求助,informatica该sql语句怎么实现  XML
论坛首页 » Informatica
前往:   
发表人 内容
漂白的可乐

初级会员

注册时间: 2008-05-06 19:11:34
文章: 14
离线

(case when a.EnterAccDate is not null then a.EnterAccDate
when a.EnterAccDate is null and a.ConfDate is not null then a.ConfDate
else a.MakeDate end)
这条sql语句怎么实现 谢谢各位
zdcku
嘉颖


高级会员
[Avatar]

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

DECODE(TRUE,
NOT ISNULL(EnterAccDate), EnterAccDate,
ISNULL(EnterAccDate) AND NOT ISNULL(ConfDate), ConfDate,
MakeDate
)

学习
[MSN]
漂白的可乐

初级会员

注册时间: 2008-05-06 19:11:34
文章: 14
离线

太感谢了
Ken

中级会员

注册时间: 2008-04-27 22:20:20
文章: 49
离线

漂白的可乐 wrote:(case when a.EnterAccDate is not null then a.EnterAccDate
when a.EnterAccDate is null and a.ConfDate is not null then a.ConfDate
else a.MakeDate end)
这条sql语句怎么实现 谢谢各位


這個是sql server上的sql嗎?如果是oracle的話,應該可以直接用decode函數吧
 
论坛首页 » Informatica
前往:   

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