DW れ姶 覈語 fact 蟲螳 覈 螳蟇一 磯 . 糾 覿覿蟾讌 れ願覃 願姥襦 . ろ蠏碁 蠏碁る慨螻, 蠏覿襯 襷り鍵 襦蠏碁 煙 伎 . 譴 蟆 覩語蟆 襯企 蟆企. 蠏碁 覿襯 覲 覈企朱 蟲螳 蟆 襯 蟆 螳讌螻 螻 れ願 覦覯(願 覿企!) 覃 . 企 襭朱 願屋 螳ロ.
;with samples
as
(
select 0 rowno
union all
select rowno + 1 from samples
where rowno + 1 <= 10000
)
select
convert(varchar(50), (rowno-1) / 1000 * 1000 + 1) + ' ~ ' + convert(varchar(50), (rowno-1) / 1000 * 1000 + 1000) width
, convert(varchar(50), (rowno-1) / 500 * 500 + 1) + ' ~ ' + convert(varchar(50), (rowno-1) / 500 * 500 + 500) width
, convert(varchar(50), (rowno-1) / 100 * 100 + 1) + ' ~ ' + convert(varchar(50), (rowno-1) / 100 * 100 + 100) width
, convert(varchar(50), (rowno-1) / 50 * 50 + 1) + ' ~ ' + convert(varchar(50), (rowno-1) / 50 * 50 + 50) width
, convert(varchar(50), (rowno-1) / 10 * 10 + 1) + ' ~ ' + convert(varchar(50), (rowno-1) / 10 * 10 + 10) width
, convert(varchar(50), (rowno-1) / 5 * 5 + 1) + ' ~ ' + convert(varchar(50), (rowno-1) / 5 * 5 + 5) width
, rowno
from samples
option (maxrecursion 0)