-------------------------------------------------------- -- users ãã¼ãã«ã«ã¤ãã¦ãé¨ç½²ã»å½¹è·ã»ä½ææ¥ãã¨ã«ä»¶æ°ãéè¨ãã -- (MySQLç¨) -------------------------------------------------------- SELECT u.department_code `é¨ç½²ã³ã¼ã`, u.role_code `å½¹è·ã³ã¼ã`, DATE_FORMAT(u.created_at, '%Y-%m-%d') `ä½ææ¥`, COUNT(*) `人æ°` FROM users u GROUP BY u.department_code, u.role_code, DATE_FORMAT(u.created_at, '%Y-%m-%d') ORDER BY u.department_code ASC
{{#tags}}- {{label}}
{{/tags}}