DQL错误:DM_QUERY2_E_REPEAT_TYPE_JOIN

时间:2017-06-13 07:26:15

标签: sql dql documentum

这是我的dql查询

select 
a.object_name, 
a.r_object_id, 
COUNT(b.r_object_id) as leaf, 
a.r_folder_path 
from dm_folder a left join dm_folder b 
on any b.i_folder_id = a.r_object_id 
where any a.r_folder_path is not null 
AND any a.i_folder_id = '0b01e0f38000e703' 
group by a.object_name, a.r_object_id, a.r_folder_path

但是我收到了错误

  

[DM_QUERY2_E_REPEAT_TYPE_JOIN]错误:“您的查询正在选择   重复属性和加入类型。“

我试过这个

select 
a.object_name, 
a.r_object_id, 
COUNT(b.r_object_id) as leaf, 
a.r_folder_path 
from dm_folder a left join dm_folder b 
on b.i_folder_id = a.r_object_id 
where any a.r_folder_path is not null 
AND a.i_folder_id = '0b01e0f38000e703' 
group by a.object_name, a.r_object_id, a.r_folder_path enable (row_based)

但是当我使用enable(row_based)时,它没有显示COUNT(b.r_object_id)等于0的行......

我能做什么?

tnx很多

0 个答案:

没有答案