Listing Numbers

From: Brian Avis <brian(dot)avis(at)searhc(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Listing Numbers
Date: 2002-03-04 22:07:04
Message-ID: 3C83F008.1070908@searhc.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

If I have a column with a list of numbers between 1 and 9999 is there a
way to select all the numbers in that range that have not been used?

For example lets say the list is 1 - 10 instead, and looked like this.

1
2
3
5
7
9
10

I want the database to return

4
6
8

Any hints or ideas?

--
Brian Avis
SEARHC Medical Clinic
Juneau, AK 99801
(907) 463-4049
cd /pub
more beer

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Bartley 2002-03-04 22:19:32 Re: postgre performance question
Previous Message Culley Harrelson 2002-03-04 21:50:38 Re: storing intermediate results in recursive