At 10:59 AM 6/6/03, Damien Dougan wrote:
>I was wondering if it is possible to create a table view based on a table
>which is effectively an "attribute list".
>
>For example, suppose I have two tables:
>
>CREATE TABLE user
>(
> userid integer,
> username character varying,
> userpassword character varying,
> startdate date
>);
>
>CREATE TABLE userdetail
>(
> userid integer,
> attributename character varying,
> attributevalue character varying
>);
>
>Now I want to make a public view of the user, which would have all of the
>defined fields in user, and all of the defined attributes across userdetail.
I'll think you'll find what you're looking for if you search the archives
of this mailing list for 'crosstab'.