What I am trying to do is use an aggregate SQL function
to determine what days had the most entries to a contest.
Since the db column is a 'datetime' field, the aggregate
function is looking at the date and the time as one unique
value. I want it to COUNT only the DATE values.
My results therefore are this:
CREATIONDATE COUNT
-----------------------------
2002-01-02 18:00:05 2
2002-01-02 14:01:37 1
2002-01-02 14:00:28 1
2002-01-02 13:59:44 1
2002-01-03 13:58:05 1
When I want:
CREATIONDATE COUNT
-------------------
2002-01-02 256
2002-01-03 118
2002-01-02 34
any ideas/help?
tia
to determine what days had the most entries to a contest.
Since the db column is a 'datetime' field, the aggregate
function is looking at the date and the time as one unique
value. I want it to COUNT only the DATE values.
My results therefore are this:
CREATIONDATE COUNT
-----------------------------
2002-01-02 18:00:05 2
2002-01-02 14:01:37 1
2002-01-02 14:00:28 1
2002-01-02 13:59:44 1
2002-01-03 13:58:05 1
When I want:
CREATIONDATE COUNT
-------------------
2002-01-02 256
2002-01-03 118
2002-01-02 34
any ideas/help?
tia