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

From: Date: Tue, 04 Aug 2009 01:19:42 +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 8 9  Groups: php.db 
Request: Send a blank email to php-db+get-46397@lists.php.net to get a copy of this message
I should have given an example .. select count(*) as record_count, date(column_name) as date_field, 'my_table' as table_name union all select count(*) as record_count, date(column_name) as date_field, 'my_table_2' as table_name and end up with:
count | date       | table_name
-------------------------------
5     | 2009-01-01 | table 1
10    | 2009-01-01 | table 2
I will try this. I got lost on your post before Ben offered the start of this version. But now I'll try this one. Probably tomorrow. I just want to say now - thank you guys for your attention to help me through these initial fires! (I ordered some SQL books.) -G

« previous php.db (#46397) next »