pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hassanuri Bin Shah <uhassan@pc.jaring.my>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: i am a fool
Date: Sun, 01 Oct 2000 21:56:04 +0800
Message-ID: <39D74274.BA0ACE98@pc.jaring.my> (raw)

hello
i don't know whether to ask here or the psql-sql but here goes...
how do i make a crosstab query from say:

job_no | year_month | input |
------------------
716        20004                100
717        20005                120
716        20006                130


to

job_no |  20004 | 20005 | 20006
-------------------
716        100                        130
717                          120


thank you.. in advance.

[x]

Attachments:

uhassan.vcf (text/x-vcard, 229B) download begin:vcard n:Shah Mohd Amin;Hassanuri x-mozilla-html:FALSE url:pwp.maxis.net.my/hassanuri org:;Accounts adr:;;;;;; version:2.1 email;internet:uhassan@pc.jaring.my title:MIS x-mozilla-cpt:;0 fn:Hassanuri Shah Mohd Amin end:vcard

Message-ID: <39D74274.BA0ACE98@pc.jaring.my>
Permalink:  ../39D74274.BA0ACE98@pc.jaring.my/
Also on:    postgresql.org/message-id/39D74274.BA0ACE98@pc.jaring.my

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: uhassan@pc.jaring.my
  Subject: Re: i am a fool
  In-Reply-To: <39D74274.BA0ACE98@pc.jaring.my>
  References: <39D74274.BA0ACE98@pc.jaring.my>

* 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