Re: How to join function with a table?

From: Yudie Pg <yudiepg(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to join function with a table?
Date: 2005-08-05 22:06:24
Message-ID: e460d0c050805150677426e0d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
> what about something like
>
> select id,datelist
> from payment as p,
> (select * from datelist('8/1/2005, 8/5/2005')) as list
> where datelist between p.date_start and p.date_end;

That's works but have to put the whole date range into the parameters before
it can be joined.
This would need 2 queries where the first query only to find minumum &
maximum date that possibly recorded on payment table.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message snacktime 2005-08-05 22:55:51 changing default lockfile location
Previous Message Alvaro Herrera 2005-08-05 21:53:24 Re: Clog/Transaction problems