count(EMPLOYMENT_STATUS= '0' or null) as employment,
count(EMPLOYMENT_STATUS= '1' or null) as unemployment,
(select count(ID) from epdc_population_information where DEL_FLAG = 0 ) as populationNum,
(select
(select count(1) as houseHeadNum from epdc_population_information where DEL_FLAG=0 and RESIDENTS_IDENTITY_NO is not null and RESIDENTS_IDENTITY_NO !='')
+
(select count(1) as residentNum from epdc_house_resident t
left join epdc_population_information t1 on t.RESIDENT_ID = t1.ID
left join epdc_population_information t2 on t.HOUSE_HEAD_ID = t2.ID
where t.DEL_FLAG ='0' and t1.DEL_FLAG = '0' and t2.DEL_FLAG ='0'
order by t.CREATED_TIME desc)) as populationNum,
sum(MOTOR_VEHICLE_NUM) as motorVehicleNum,
count(POLITICS_STATUS= '1' or null) as partyMemberNum
from epdc_population_information where DEL_FLAG = 0 and RESIDENTS_IDENTITY_NO is not null and RESIDENTS_IDENTITY_NO != '')a on 1=1