We use ROW_NUMBER() in our request. It returns the correct results in almost all scenarios. But for 1 user, he behaves differently.
With
This query works fine for this user when the page size is set to 50. But when the page size is set to 100, we see that it does not return all the rows. It just returns only 10 rows. Despite the fact that there are more than 100 results that satisfy the condition. Please find the query below that does not work correctly.
With
When we tried to check the reason, we notice that the second query returns RN values ββin excess of 100. It does not start with 1.
Can someone explain the probable cause of this behavior. Is there anything that needs to be changed in the syntax, or is there any parameter that needs to be changed in SQL Server for the values ββof the ROW_NUMBER() function to start with 1?
source share