Re: [GENERAL] Converting Rows to Columns

2009-05-05 Thread Chris Spotts
It sounds like you want a crosstab query. There is probably (I don't know what version of postgres you're using) a contrib package called "tablefunc" that includes the crosstab functions you're looking for. _ From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgre

Re: [GENERAL] Converting Rows to Columns

2009-05-05 Thread Andreas Kretschmer
Joshua Berry wrote: > Greetings all, > > I know that this is an elementary question, so I'm just asking for a pointer > in > the right direction. > > I have a query like this that tries to link Retail shops (from the table > aliased as 'a') to sales reps (from the table aliased as 'e') that se

Re: [GENERAL] Converting Rows to Columns

2009-05-05 Thread Andreas Kretschmer
Joshua Berry wrote: > Greetings all, > > I know that this is an elementary question, so I'm just asking for a pointer > in > the right direction. > > I have a query like this that tries to link Retail shops (from the table > aliased as 'a') to sales reps (from the table aliased as 'e') that se

Re: [GENERAL] Converting Rows to Columns

2009-05-05 Thread Relyea, Mike
> -Original Message- > From: pgsql-general-ow...@postgresql.org > [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of Joshua Berry > Sent: Tuesday, May 05, 2009 10:39 AM > To: pgsql-general@postgresql.org > Subject: [GENERAL] Converting Rows to Columns > > Greetings all, > > I know

Re: [GENERAL] Converting Rows to Columns

2009-05-05 Thread Ian Barwick
2009/5/5 Joshua Berry : > Greetings all, > I know that this is an elementary question, so I'm just asking for a pointer > in the right direction. > I have a query like this that tries to link Retail shops (from the table > aliased as 'a') to sales reps (from the table aliased as 'e') that service >