Re: [SQL] Generating a range of integers in a query

2005-07-13 Thread Scott Marlowe
On Wed, 2005-07-13 at 04:13, Aaron Bingham wrote: > Hello, > > I've got an interesting problem: I need to select all possible values > of an attribute that do /not/ occur in the database. > > This would be easy (in my case at least) if there were a way to > generate a table containing all integer

Re: [SQL] Generating a range of integers in a query

2005-07-13 Thread Jim Buttafuoco
age --- From: Aaron Bingham <[EMAIL PROTECTED]> To: pgsql-sql@postgresql.org Sent: Wed, 13 Jul 2005 11:13:06 +0200 Subject: [SQL] Generating a range of integers in a query > Hello, > > I've got an interesting problem: I need to select all possible values > of an a

Re: [SQL] Generating a range of integers in a query

2005-07-13 Thread Michael Glaesemann
On Jul 13, 2005, at 6:13 PM, Aaron Bingham wrote: This would be easy (in my case at least) if there were a way to generate a table containing all integers between 1 and n, where n is the result of a subquery. In my case, n will be at most a few hundred. I would like to be able to generate thi

[SQL] Generating a range of integers in a query

2005-07-13 Thread Aaron Bingham
Hello, I've got an interesting problem: I need to select all possible values of an attribute that do /not/ occur in the database. This would be easy (in my case at least) if there were a way to generate a table containing all integers between 1 and n, where n is the result of a subquery. In my c