I have the following t-sql query:
Select
sum(s.numRecords) as numTotalRecords ,
sum(s.numHomePri) as numHomePri ,
sum(s.numHomeSec) as numHomeSec
from tblHousingIDA c,
(Select
1 as numRecords ,
case when numHomeID = 2 then 1 else 0 end numHomePri ,
case when numHomeID = 3 then 1 else 0 end numHomeSec
from tblHousingIDA )s
Is there a way to convert this to access?
I get an error by the case statement?
Thanks,
-Bell
Select
sum(s.numRecords) as numTotalRecords ,
sum(s.numHomePri) as numHomePri ,
sum(s.numHomeSec) as numHomeSec
from tblHousingIDA c,
(Select
1 as numRecords ,
case when numHomeID = 2 then 1 else 0 end numHomePri ,
case when numHomeID = 3 then 1 else 0 end numHomeSec
from tblHousingIDA )s
Is there a way to convert this to access?
I get an error by the case statement?
Thanks,
-Bell