Re: Dynamically created tables [WAS Re: "Relation x

From: Keary Suska <hierophant(at)pcisys(dot)net>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Dynamically created tables [WAS Re: "Relation x
Date: 2001-10-17 14:59:23
Message-ID: B7F2F8EB.4BFC%hierophant@pcisys.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I would bet this requirement is really that the SQL SELECT column order must
match the column order of the report, which is something else entirely. If
the number of 'months' columns (per your example) are fixed, and the
specific months are known ahead of time, you could (theoretically) do
self-join. This may have to be an outer join if it is possible that there
were no entries for any particular month.

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"

> From: Gaurav Priyolkar <pgaurav(at)goatelecom(dot)com>
> Date: Tue, 16 Oct 2001 23:32:49 +0530
> To: pgsql-general(at)postgresql(dot)org
> Subject: Dynamically created tables [WAS Re: [GENERAL] "Relation x does not
> exist" ...
>
> Apparently, when creating a Delphi report, it has to be fed with data
> from a database table with exactly the columns as they are to appear
> on the report. I am just meeting the specified requirement.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-10-17 15:07:14 Re: URGENT: Index problems - update - please help ....
Previous Message Tom Lane 2001-10-17 14:42:38 Re: Python interface memory leak?