文字ベースの数学演算を行っていない場合、これは少し簡単になります。この表のすべての値は、1 つの英字とそれに続く数字で構成されていると想定しています。
/* Create sample data */
declare @table Table (ValueField varchar(40))
insert into @table (ValueField)
select 'V100819493'
UNION SELECT 'V100819492'
UNION SELECT 'V100819491'
UNION SELECT 'V100819232'
/* Join table against itself, using a 'staggered' join to join each record to the previous one. */
select * from
(
select
ValueField as High_Value,
CONVERT(BIGINT,SUBSTRING(valuefield, 2, 800)) as Numeric_Value,
ROW_NUMBER() over (order by Valuefield) as line
from @table
) t1
left outer join
(
select
ValueField as Low_Value,
CONVERT(BIGINT,SUBSTRING(valuefield, 2, 800)) as Numeric_Value,
ROW_NUMBER() over (order by Valuefield) as line
from @table
)t2 on t1.line -1 = t2.line
where t1.Numeric_Value - t2.Numeric_Value <> 1