Я хочу изменить данные, выбрав их во внутреннем запросе и посчитайте одно из них измененным .. Выдает ошибку ..
select count(cvs) from
(
select
cvs,
(case Citycode when 123 then 'test' else 'other' end) as CityName ,
(case ProductCode when '000' then 'test3' when 'ss' then 'xtr' else 'ddd' end) as CardName
from Applications
)