¡@

Home 

python Programming Glossary: date_trunc

Postgres - how to return rows with 0 count for missing data?

http://stackoverflow.com/questions/346132/postgres-how-to-return-rows-with-0-count-for-missing-data

over the required period as this one select to_char date_trunc 'month' date 'YYYY MM DD' count distinct post_id from some_table.. 115 and date '2008 12 06' and date '2007 12 01' group by date_trunc 'month' date order by date_trunc 'month' date to_char count.. '2007 12 01' group by date_trunc 'month' date order by date_trunc 'month' date to_char count 2007 12 01 64 2008 01 01 31 2008..