매개 변수 (: PRODUCT_ID)를 두 번 전달했습니다. 내가 전달할 수있는 방법 : 나는 그런 식으로이 문제를 해결하려고 할 쿼리 아래아래의 SQL 쿼리에 단일 매개 변수를 전달하는 방법
select count(1)
from (
select count(1) album_fa_counter
from actual_configs ac
where ac.config_id = :PRODUCT_ID
and exists (
select 1
from config_participants cp
where CONTRIBUTOR_CATEGORY = 'Featured Artist'
and cp.gpid = ac.gpid
)
) a,
(
select count(1) matching_track_fa_counter
from actual_tracks at1,
actual_configs ac1
where at1.gpid = ac1.gpid
and ac1.config_id = :PRODUCT_ID
and exists (
select 1
from recording_participants rp,
config_participants cp
where cp.CONTRIBUTOR_CATEGORY = 'Featured Artist'
and cp.gpid = at1.gpid
and cp.participant_name = rp.participant_name
and rp.CONTRIBUTOR_CATEGORY = 'Featured Artist'
and rp.isrc = at1.isrc
)
) b
where a.album_fa_counter = 0
or b.matching_track_fa_counter > 0;
이 쿼리는 나를 위해 작동합니다 .. 감사합니다. – Madhava