Quick question, I have the following table
+-------------+---------------------+ | total | o_date | +-------------+---------------------+
Try Group BY, like this:
Group BY
select count(A_id) As Tid,Day(CrDate) from Ap Group By Day(CrDate)