I am trying to get the number of pages per day using the following query.
SELECT day.days, COUNT(*) as opens FROM day LEFT OUTER JOIN tracking ON day.days = DAY(FROM_UNIXTIME(open_date)) WHERE tracking.open_id = 10 GROUP BY day.days
The output I get is this:
days opens 1 9 9 2
The thing is, in my daily table, I have one column that contains a number from 1 to 30 to represent days per month. I made a left outer join, and I expect to show all the days in the days column!
But my request does this, why can it be?
Thanks to everyone for any help.
Abs
source share