标签: mysql sql
我尝试为每个id(由时间戳定义)获取最新的company_id,我尝试了下面但是每行{{1 } ...
id
company_id
我无法SELECT id, MAX(created_timestamp), company_id FROM company_status WHERE active = 1 GROUP BY company_id, id 语句,因为我收到此错误:GROUB BY
SELECT id, MAX(created_timestamp), company_id FROM company_status WHERE active = 1 GROUP BY company_id, id
GROUB BY