Following query returns two rows. I'd like to combine these two rows. Is this possible? This logic will later become one of the columns for another query:
select SUM(case
when FreeRentMonth = 'Y'
then 1
else 0
end) as months
from LARBICRMFact
where rlm_spaceID in (
select RefCRMSpaceID
from #OneAE_Multiple_CRM_deals fs
where fs.RefLeaseAssumptionID = '58500-TSPECTENB-LSPECTENB-0210'
)
group by rlm_spaceID
Desired result:
6|7 (instead of 6 and 7 being in two separate rows).
NOTE*: The subquery can return 1 or many values.