try:

group by substring(timeofclick,1,10) 


-----Original Message-----
From: Randy Paries [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 03, 2006 11:25 AM
To: mysql@lists.mysql.com
Subject: Help with this query. How to do a group by on a datetime just
the month/day/year

Hello,

Not sure if i can do this.

I have a table with a datetime column

I would like to do group by a day of the month.

if i do something like

select count(*) from MTracking where mallarea=1001 group by timeofclick

every one is listed because time.

So is this possible?

Thanks
Randy

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to