how to check the total number of records returned by answering query conditions in query pagination:
select top 10 *
from (select row_number()
over(order by id asc) as rownumber,*
from com_system_menu) temp_row
where rownumber>((2-1)*10);
the number of records I want is all the records before Where rownumber > ((2-1) * 10) above?