Re: [SQL] how to do 'deep queries'?

2005-09-26 Thread jeff sacksteder
Nevermind. It's late here and I'm not thinking clearly. Problem solved.

[SQL] how to do 'deep queries'?

2005-09-26 Thread jeff sacksteder
Is there supported syntax to do 'deep' queries? That is where A relates to B relates to C, returning fields from each table? This doesn't seem to work. Is there a google-able term for this sort of query? select    foo.aaa,    bar.bbb,    baz.ccc from    foo,bar,baz where    foo.bar_id = bar.i

[SQL] alter sequence + subqueries

2005-09-16 Thread jeff sacksteder
The postgres-specific sql extension 'ALTER SEQUENCE' does not appear to support subqueries. I have inserted some data into a table, including values in the primary key. I want to reset the associated sequence so that any further records to be inserted into that table  resume numbering correctly. T