So, coming up with a title for this is difficult
SELECT Date(p.born_at), SUM(p.value) as 'total_value_for_day'
FROM puppies as p
WHERE p.status = 2
GROUP BY DATE(p.born_at);
So, this gives a 2 column result.
What I want is this:
columns:
date | status = 1 | status = 2 | status = 3
DATA!!!
is there a way to do that?