SELECT SUM(P.IN_CARD_VALUE-P.OUT_CARD_VALUE) AS DISH_TOTAL_SALES_MONEY , SUM(P.WEIGHT) AS DISH_TOTAL_SALES_WEIGHT, COUNT(DISTINCT P.SALARY_NO) AS RECEPTION_NUMBER FROM T_PM_PAY P LEFT JOIN T_DM_DISH D ON P.DISH_NO = D.DISH_NO having COUNT(DISTINCT P.SALARY_NO)>100 之类的