我有以下字段的表格
id
client_id
monthly_date
page_counts
我正在尝试获取page_counts
缺少日期的客户列表 SELECT *
FROM (SELECT monthly_date as months from stats_entry group by monthly_date ) AS m
LEFT JOIN stats_entry ep
ON m.months = ep.monthly_date
group by client_id, monthly_date
但它仍然显示只有左连接的可用日期的客户? 我错过了什么?