我在这里使用两个表projections_report p
和access_rights a
. 我无法找出我收到错误的原因:
子查询返回多于一行
(case when paramChannel='AllC' then p.gl_sal_chan in
(case when dc_lob=0 then (select distinct pr.gl_sal_chan from
projections_report pr) else (select distinct pr1.gl_sal_chan
from projections_report pr1 where pr1.gl_sal_chan
in (select distinct a.gl_sal_chan from access_rights
a where a.userid= paramUserId)) end)
else p.gl_sal_chan = paramChannel end)
我尝试使用所有和任何关键字。请帮忙。
提前致谢。