|
This problem intrigued me and BOTH are nice suggestions, but ( and I could
be wrong on this) if the ones that are missing are
15
16
17
21
this sql would NOT report 16 & 17 as missing
Alan Shore
NBTY, Inc
(631) 244-2000 ext. 5019
AShore@xxxxxxxx
"If you're going through Hell, keep going" - Winston Churchill
midrange-l-bounces@xxxxxxxxxxxx wrote on 09/27/2007 10:59:18 AM:
Joe,list
great tip! but an easier way to get the holes, change this:
SELECT A.SEQ FROM MYFILE A
WHERE NOT EXISTS
(SELECT 1 FROM MYFILE B WHERE B.SEQ = (A.SEQ+1))
to:
SELECT (A.SEQ+1) as holes FROM MYFILE A
WHERE NOT EXISTS
(SELECT 1 FROM MYFILE B WHERE B.SEQ = (A.SEQ+1))
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.