Comments on: How to find missing values in a sequence with SQL http://www.xaprb.com/blog/2005/12/06/find-missing-numbers-in-a-sequence-with-sql/ Stay curious! Thu, 02 May 2013 12:36:53 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: Mo' Kassab http://www.xaprb.com/blog/2005/12/06/find-missing-numbers-in-a-sequence-with-sql/#comment-38861 Mo' Kassab Thu, 02 May 2013 12:36:53 +0000 http://www.xaprb.com/blog/?p=57#comment-38861 i can see from your post that number ’1′ already exists so how could it be missing?
kindly advise.

thnx

Mo’ Kassab

]]>
By: NIbedita http://www.xaprb.com/blog/2005/12/06/find-missing-numbers-in-a-sequence-with-sql/#comment-38713 NIbedita Tue, 30 Apr 2013 07:06:07 +0000 http://www.xaprb.com/blog/?p=57#comment-38713 i have a seq 1,2,3,4,5,6,7

my missing num is 1

how to get this??

thanks

]]>
By: Mo' Kassab http://www.xaprb.com/blog/2005/12/06/find-missing-numbers-in-a-sequence-with-sql/#comment-20060 Mo' Kassab Tue, 22 May 2012 14:29:44 +0000 http://www.xaprb.com/blog/?p=57#comment-20060 Dear Mani,
I assume you’re only searching for missing sequences, so it would be more simpler if you just pin piont them out by using the query from the earlier posts. Unless I understood otherwise then please do explain more.
Thanks.
Mo’ Kassab

]]>
By: Mani http://www.xaprb.com/blog/2005/12/06/find-missing-numbers-in-a-sequence-with-sql/#comment-20053 Mani Wed, 16 May 2012 16:30:39 +0000 http://www.xaprb.com/blog/?p=57#comment-20053 0,2,4,5,6,7,10,11

I need a query which will return result as
From To
0 0
2 2
4 7
10 11

]]>
By: Michael W http://www.xaprb.com/blog/2005/12/06/find-missing-numbers-in-a-sequence-with-sql/#comment-20035 Michael W Mon, 30 Apr 2012 18:04:51 +0000 http://www.xaprb.com/blog/?p=57#comment-20035 Mo’Kassab:

I attempted to use this but I believe it is in Oracle SQL. Any suggestions for T-SQL?

Thanks,
Michael W.

]]>