Re: [SQL] Crosstab question

2006-10-22 Thread Michael Fuhr
On Sun, Oct 22, 2006 at 01:57:09PM +0200, Leendert Paul Diterwich wrote: > The problem is that the data is being shifted when there is no > price for Supplier1 for product 3: > > Productnumber Supplier1 Supplier2 > 2 0.80.9 > 3

[SQL] Crosstab question

2006-10-22 Thread Leendert Paul Diterwich
Dear list,   I recently discovered the crosstab function in postgresql. What I’m trying to accomplish is turn this:   Suppliernumber Productnumber Price 0  2  0.8 0  3  1.2 1  2  

Re: [SQL] Crosstab question

2003-10-20 Thread Joe Conway
Adam Witney wrote: The missing values seemed to have been ignored and so the data is being shifted to the left and so put in the wrong columns. Am I using this function correctly? What is supposed to happen with missing values? Yeah, that's a limitation of the version of crosstab distributed with

[SQL] Crosstab question

2003-10-20 Thread Adam Witney
Hi, I am trying to figure out the use of crosstab(text sql, int N) The sql I have is cabbage=# select geneid, bioassay_id, sig_median from imagene order by 1,2; geneid | bioassay_id | sig_median -+-+ 16s rRNA (AP