pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Don Soledad <avsoledadjr@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: columnar format
Date: Wed, 02 Jul 2003 10:42:58 +0800
Message-ID: <Law10-F105aqngjCSml00005bb8@hotmail.com> (raw)

good day!

i would like to ask for the sql statement to the output:

ITEM DESC   Jan   Feb   Mar  Apr  ...  Sep  Total
xxxxxxxxxx   999  999  999  999  ...  999  9,999

where "Jan" column is sum of all "x" items purchased on Jan, "Feb" column as 
sum of Feb purchases, and so on up to "Sep", and "Total" as the total from 
"Jan" to "Sep" (as in the case here). the numbers may/may not be formatted, 
and the period varies, depending on the range.

your help will be much appreciated.

thanks!Ü

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus




view thread (2+ messages)  latest in thread

Message-ID: <Law10-F105aqngjCSml00005bb8@hotmail.com>
Permalink:  ../Law10-F105aqngjCSml00005bb8@hotmail.com/
Also on:    postgresql.org/message-id/Law10-F105aqngjCSml00005bb8@hotmail.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: avsoledadjr@hotmail.com
  Subject: Re: columnar format
  In-Reply-To: <Law10-F105aqngjCSml00005bb8@hotmail.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