Pagination 'count' is not accurate if the SQL query result contains duplicate id's
The pagination count SQL query is using
If the result set returned by the sub query has duplicate
Is there any way to remove
DISTINCT like this:If the result set returned by the sub query has duplicate
ids then the count doesn't reflect the actual number of rows returned by the sub query because DISTINCT is removing them from the count.Is there any way to remove
DISTINCT from the pagination count query?