SELECT ID,Name,Age,Addr,Tel,COUNT(1) OVER() AS totalFROM dbo.Student WHERE Age>22 ORDER BY id DESCOFFSET 2 ROW FETCH NEXT 2 ROWS ONLY