declare @pageNo int,@eachPageCount int
set @pageNo=2
set @eachPageCount=10
select * from (
select ROW_NUMBER() OVER(/*PARTITION BY COLUMN*/ ORDER BY sgd001) rowNo,* from yssgd
)a where rowNo between (@eachPageCount*(@pageNo-1)+1) and (@eachPageCount*@pageNo)