Re: newbie: how to return one iteration *per unique date (DAY!)* in a timestamp column?

From: Date: Wed, 05 Aug 2009 00:40:59 +0000
Subject: Re: newbie: how to return one iteration *per unique date (DAY!)* in a timestamp column?
References: 1 2 3 4 5 6 7  Groups: php.db 
Request: Send a blank email to php-db+get-46411@lists.php.net to get a copy of this message
Taking this: SELECT count(*) AS CountUniqueDatesInMyTbl, date(solarAWDateTime) AS uniqueDate, 'aweber_7solar_aw' AS tableAlias FROM aweber_7solar_aw GROUP BY DATE(solarAWDateTime) Your query says: get the date() from the solarAWDateTime field then group by that date and give me the date and number of results ie - you asked for the number of results per date - which is what you got. You didn't ask for the number of unique dates.
yes. And in fact that was what I wanted. I better quit for the day while I am ahead, and not spread around any more brain-fry now. Thank you Chris, and all. ------------ John Butler (Govinda) govinda.webdnatalk@gmail.com

« previous php.db (#46411) next »