Query to find a missing number
- From: "Mahesh BS" <mahesh.bs@xxxxxxxxxxxx>
- Date: Thu, 13 Jul 2006 21:43:21 +0530
Hello,
I need to write a query to find out a set of missing number in a given
sequence.
Eg : a Column in some table has the following data
Col1
1
2
3
4
5
6
8
9
10
Here I need to write a query to find out that number 7 is missing in the
given sequence.
One possible solution is by using any loop. But I am looking out if the same
can be achieved using any query.
Thanks in advance.
Regards,
Mahesh
.
- Follow-Ups:
- Re: Query to find a missing number
- From: --CELKO--
- Re: Query to find a missing number
- From: Hugo Kornelis
- Re: Query to find a missing number
- From: Ferrarista XXL
- Re: Query to find a missing number
- Prev by Date: SQL 2000 Error: 1203, Severity: 20, State: 1 Error
- Next by Date: Re: De-normalizing query
- Previous by thread: SQL 2000 Error: 1203, Severity: 20, State: 1 Error
- Next by thread: Re: Query to find a missing number
- Index(es):
Relevant Pages
|