select case
when p.property_type ='APARTMENT_COMMUNITY'
then (select fp.bedroom_count
from floor_plans fp
where fp.removed = false
and fp.property_id=p.id)
else (select pu.bedroom_count
from property_units pu
where pu.removed = false
and pu.property_id=p.id)
end
from properties p
where p.id =550
나는 이 bedroom_count 이 아닌 하나의 행,그래서 그것이 오류를 제공합니다
오류가:하나 이상의 행 반환에 의해 하위 표현으로 사용됩
필요한 결과를 얻는 경우 다른 솔루션을 위한 이?