infomatica rank 组件问题
RANK 组件分组排序,取TOP or bottom;
理论上讲当分组排序后RANK都为1的时候应该都会被取出来(假设我是需要RANK=1)的数据,
而且infomatica文档也是这么写的,但是事实上结果并非如此,我只是想和高手确认一下我的想法是对的,
举个例子来说明:
SOURCE :
select 1,201201,7
union all
select 2,201201,8
union all
select 2,201201,9
union all
select 3,201203,10
union all
select 4,201203,10
target table:
create table dbo.test_paul(
a int,
b int,
c int
);
需求:根据日期分组根据第一个字段排序取第一个字段最小值
我需要的通过组件实现的 结果是
a b c
2 201201 8
3 201203 10
2 201201 9
但是事实上结果是
a b c
2 201201 8
3 201203 10
因此证明infomatica 的组件只能返回分组排序后的第一条,用sql来讲相当于实现了rownumber() over (partition by order by)
的功能;而不是rank() over (partition by order by)
还是说我做错了呢?望infomatica高手指教
谢谢!