select
sum(case
when placementh1_.house_state='PASS' then 1
else 0
end) as col_0_0_,
sum(case
when placementh1_.house_state='BACK' then 1
else 0
end) as col_1_0_,
projectmai0_.project_Name as col_2_0_
from
ZCM_PROJECT_MAIN projectmai0_,
ZCM_PLACEMENT_HOUSE placementh1_,
ZCM_PLACEMENT_HOUSEINS placementh2_
where
projectmai0_.project_Status='NOTARRIVE'
and projectmai0_.project_Id=placementh2_.project_id
and placementh2_.house_id=placementh1_.id
and projectmai0_.project_Unitid='4028d3f03b64dded013b64fc92450016'
group by
placementh2_.project_id
报错not a GROUP BY expression,
sum(case
when placementh1_.house_state='PASS' then 1
else 0
end) as col_0_0_,
sum(case
when placementh1_.house_state='BACK' then 1
else 0
end) as col_1_0_,
projectmai0_.project_Name as col_2_0_
from
ZCM_PROJECT_MAIN projectmai0_,
ZCM_PLACEMENT_HOUSE placementh1_,
ZCM_PLACEMENT_HOUSEINS placementh2_
where
projectmai0_.project_Status='NOTARRIVE'
and projectmai0_.project_Id=placementh2_.project_id
and placementh2_.house_id=placementh1_.id
and projectmai0_.project_Unitid='4028d3f03b64dded013b64fc92450016'
group by
placementh2_.project_id
报错not a GROUP BY expression,
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货