Hello, here is my query. the actual query is a little more complicated but similar... It returns an error because it cannot find the first query variable - s1.ShopCity
any help is appreciated. thank you!!!
select
s1.ShopCity,
(select count(*) from (select ShopID > 1 from tblShops s2 where s2.ShopCity = s1.ShopCity) as totalcount) as tcount
from tblShops s1
group by s1.ShopCity
any help is appreciated. thank you!!!
select
s1.ShopCity,
(select count(*) from (select ShopID > 1 from tblShops s2 where s2.ShopCity = s1.ShopCity) as totalcount) as tcount
from tblShops s1
group by s1.ShopCity
Comment