0
我在mysql中有两个表sendmail和活动表。 Sendmail表代表统计字段中的成功发送和失败状态。广告系列提交了广告系列表ID作为参考。我正在尝试显示每个广告系列已成功发送多少封邮件并失败。 我的两个表的结构是, sendmail的表Mysql加入两个表与countet不同类型的记录
活动表结构,是 和我预期的结果:
campaigname totalsent totalunsend
aaaa 0 1
Supply Chain 6 0
Development 6 0
Design&development 8 3
你会想把示例添加到http://sqlfiddle.com? – reporter