pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: query <search2006@rediffmail.com>
To: pgsql-sql@postgresql.org
Subject: list of all months
Date: 8 Mar 2010 12:25:23 -0000
Message-ID: <20100308122523.50565.qmail@f5mail-237-209.rediffmail.com> (raw)

Hi,

I want to display data for all days in a month even if no data exists for that month. Some of the days in a month might not have any data at all. With normal query, we can display days only if data exists.But I want to display rows for all days in a month with blank data for non-existing day in database.

How can this be achieved ?
 

view thread (6+ messages)  latest in thread

Message-ID: <20100308122523.50565.qmail@f5mail-237-209.rediffmail.com>
Permalink:  ../20100308122523.50565.qmail@f5mail-237-209.rediffmail.com/
Also on:    postgresql.org/message-id/20100308122523.50565.qmail@f5mail-237-209.rediffmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: search2006@rediffmail.com
  Subject: Re: list of all months
  In-Reply-To: <20100308122523.50565.qmail@f5mail-237-209.rediffmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox