Re: M$ Access "crosstab" query tab PostgreSQL equivalent - Mailing list pgsql-general

From A. Kretschmer
Subject Re: M$ Access "crosstab" query tab PostgreSQL equivalent
Date
Msg-id 20070224182722.GA20788@a-kretschmer.de
Whole thread Raw
In response to M$ Access "crosstab" query tab PostgreSQL equivalent  (Seb <spluque@gmail.com>)
List pgsql-general
am  Sat, dem 24.02.2007, um 12:12:00 -0600 mailte Seb folgendes:
> Hi,
>
> I'm unable to find how to construct a query like the one mentioned in the
> Subject.  The Access query looks like this:

Take a look into contrib, there are a tablefunc.sql - file with
functions like crosstabN().


> I've also not found a PostgreSQL equivalent to function First() used in
> Access SQL to extract the first value for data in grouped queries, such as
> the one above.

'ORDER BY' and 'LIMIT 1'?


Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

pgsql-general by date:

Previous
From: Seb
Date:
Subject: M$ Access "crosstab" query tab PostgreSQL equivalent
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Installing PGSQL Client