<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Finding Gaps of numbers within an Oracle Table</title><link>/other/old_site_member_blogs/bentley_employees/b/keithbertrams_blog/posts/finding-gaps-of-numbers-within-an-oracle-table</link><description>Today I needed to find a gap within a series of numbers located in a table. So for instance I have a table with a series of mslink values:
 
 
MSLINK
 
 
1
 
 
2
 
 
3 
 
 
5 
 
 
 
 
 
In the above table, I want to find the number</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Finding Gaps of numbers within an Oracle Table</title><link>https://communities.bentley.com/other/old_site_member_blogs/bentley_employees/b/keithbertrams_blog/posts/finding-gaps-of-numbers-within-an-oracle-table</link><pubDate>Tue, 25 Aug 2009 23:13:43 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c0f08de2-16c9-4754-8daf-6b502075c1e9</guid><dc:creator>mccalla</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;What happens if the first record is missing MSLINK = 1; &amp;nbsp;I don't think your query will pick it up since it is starting with mslink(2) + 1?&lt;/p&gt;
&lt;p&gt;Also I don't think it will work if the gap is more than 1??&lt;/p&gt;
&lt;img src="https://communities.bentley.com/aggbug?PostID=29683&amp;AppID=29879&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>