Re: M$ Access "crosstab" query tab PostgreSQL equivalent

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: M$ Access "crosstab" query tab PostgreSQL equivalent
Date: 2007-02-24 18:27:22
Message-ID: 20070224182722.GA20788@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2007-02-24 18:38:37 Re: Installing PGSQL Client
Previous Message Seb 2007-02-24 18:12:00 M$ Access "crosstab" query tab PostgreSQL equivalent