select count(DISTINCT ORGANIZATION_ID), count(DISTINCT ORGANIZATION_ID, if (customerType=1 ,true,null)),count(if (customerType=1 and squareFootageGroup=1,true,null)) from exhibition_exhibitor_rel
MYSQL count
心再坚强也不要独自飞翔
select count(DISTINCT ORGANIZATION_ID), count(DISTINCT ORGANIZATION_ID, if (customerType=1 ,true,null)),count(if (customerType=1 and squareFootageGroup=1,true,null)) from exhibition_exhibitor_rel