Re: [SQL] recursive sql (using the sort_key method)

2003-09-06 Thread Mark Stosberg
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: > > can anyone recommend a good reference source for doing recursive sql on > postgresql? i want to do something similar to a BOM expansion. (i.e. i need > to traverse a self-referencing table that stores a tree structure and answer > a qu

Re: [SQL] SQL subqueries newbie help

2003-09-06 Thread Rod Taylor
> I'd like to write a query which returns following information regarding > each item: item, date of very first event, very last event. > Is this possible? I think I can write several SELECT queries and > procces them by an application or possibly write some procedure, but > what is better soluti

Re: [SQL] SQL subqueries newbie help

2003-09-06 Thread Bruno Wolff III
On Sat, Sep 06, 2003 at 14:07:09 +0300, Alexei Chetroi <[EMAIL PROTECTED]> wrote: > Hi All, > > I need a little help regarding writing some subqueries. For example I > have a table "items" which contains columns: itemid, description; and > another table "events" with columns: itemid, date, eve

[SQL] SQL subqueries newbie help

2003-09-06 Thread Alexei Chetroi
Hi All, I need a little help regarding writing some subqueries. For example I have a table "items" which contains columns: itemid, description; and another table "events" with columns: itemid, date, event. events.itemid references items.itemid. Table events contains events regarding some itemid'