Okay so I’ve got 2 table’s
First one is called msg and the other one is msg_t
msg (id, send_type, ..)
msg_t (id, msg_id, send_time)
What I am trying to do is to get all of the msg rows where send_type = 1
and to count the msg_t entries for each msg and group it by month
how can I do that?
by using
LEFT JOIN, a value of zero will be displayed formsg.IDthat have no records on tablemsg_t