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 नहीं है एक एकल पंक्ति है,तो यह इस त्रुटि देता है
त्रुटि: एक से अधिक पंक्ति एक से लौटा सबक्वेरी के रूप में इस्तेमाल एक अभिव्यक्ति
मैं पाने के लिए की जरूरत है कि में परिणाम है कि मामला है, वहाँ है किसी भी अन्य समाधान के लिए यह?