SELECT addr,
GROUP_CONCAT(username) AS userDetail,
COUNT(*) AS totalUsers,
SUM(age) AS sunAge,
MAX(age) AS maxAge,
MIN(age) AS minAge,
AVG(age) AS avgAge
FROM user1
WHERE id >= 2
GROUP by addr
ORDER BY avgAge
HAVING avgAge>17;
产品经理不是经理
相关分类