pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Fabiani <johnf@jfcomputer.com>
To: PostgreSQL (SQL) <pgsql-sql@postgresql.org>
Subject: crosstab
Date: Mon, 12 Mar 2012 09:58:03 -0700
Message-ID: <1374902.j7hCdyTH7B@linux-12> (raw)

Hi,
I don't know if it because I'm as sick as dog or I'm just a plain idiot - most 
likely a little of both.

Here is my table 

week_of date, 
item_number text,
planned_demand integer.

I have 
week_of        item_number      planned
2012-02-12    00005                200
2012-02-19    00005                -30
2012-02-26    00005                -16

I want to see

item_number   2012-02-12    2012-02-19   2012-02-26
00005                   200                 -30                 -16

I actually have added fields but that should get me started.

Thanks for help from an old man with a very bad cold.

Johnf



view thread (6+ messages)  latest in thread

Message-ID: <1374902.j7hCdyTH7B@linux-12>
Permalink:  ../1374902.j7hCdyTH7B@linux-12/
Also on:    postgresql.org/message-id/1374902.j7hCdyTH7B@linux-12

 · 

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: johnf@jfcomputer.com
  Subject: Re: crosstab
  In-Reply-To: <1374902.j7hCdyTH7B@linux-12>

* 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