projections_report p
ここではとの 2 つのテーブルを使用しています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)
すべてのキーワードと任意のキーワードを使用してみました。助けてください。
前もって感謝します。