Oops. That first subquery should use <= (p.IdNumber+99) 

> WHERE         NOT EXISTS 
>       ( 
>               SELECT  IdNumber 
>               FROM    TheTable
>               WHERE   IdNumber > p.IdNumber AND IdNumber <= (p.IdNumber+99) 
> AND
>                       ROUND(p.IdNumber, -2) = p.IdNumber
>       ) 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion

Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:2767
Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.6

Reply via email to