How to count or know the number of rows a table has without scaning all the table, maybe using ROW_NUMBER?
ROW_NUMBER
I dont believe you mean this but ill give it a try:
select count(*) from table