Create a table with the range of numbers that you wish to check against
called CheckID
And then do something like
Select Devices
Where DeviceID NOT in (select CheckID from CheckID_Table)
I hope that you get the idea
Regards
Ben
-----Original Message-----
From: Dr John Tankard [mailto:john@xxxxxxx]
Sent: 04 October 2002 13:52
To: ukha_d@xxxxxxx
Subject: [ukha_d] OT another SQL question
Sorry for the OT post
Is it possible in SQL to do this :-
I have a table:-
Devices
--------
DeviceID
..
And in the table there are some missing device numbers ie
1000
1001
1003
1004
In SQL is it possible to list missing numbers ie 1002 ?
Comments to the Webmaster are always welcomed, please use
this contact form
. Note that as this site is a mailing list archive, the Webmaster has no control
over the contents of the messages. Comments about message content should be directed
to the relevant mailing list.