sql question

From: Steven Verhoeven <Steven2(at)dmbr(dot)ugent(dot)be>
To: pgsql-general(at)postgresql(dot)org
Subject: sql question
Date: 2005-03-11 12:26:07
Message-ID: 42318E5F.4080207@dmbr.ugent.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

My table definition :

id | fref | mref
------+-----------+----------
1 | 23 | 25
2 | 24 | 28
3 | 25 | 31
4 | 26 | 34

i need a query that results in this :

id | ref
------+----------
1 | 23
1 | 25
2 | 24
2 | 28
3 | 25
3 | 31
4 | 26
4 | 34

Do I need a crosstab-query ?
Who can help me ?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike Harding 2005-03-11 12:26:30 Data mining setup/hardware?
Previous Message ntinos 2005-03-11 12:17:04 Re: SRF, JDBC and result info