|
|
От: | Lexid | |
| Дата: | 17.10.05 17:06 | ||
| Оценка: | |||
select
t1.NOMER, min(t2.NOMER), t1.BSO
from BLANC t1 join BLANC t2 on t1.NOMER <= t2.NOMER
where
not exists (select NOMER,BLANC.BSO from BLANC t3 where t1.NOMER - 1 = t3.NOMER)
and
not exists (select NOMER,BLANC.BSO from BLANC t4 where t2.NOMER + 1 = t4.NOMER)
group by t1.NOMER, t1.BSO