I have a query with few joins, on running it shows 11 records.
When I run its count query (removed fields from SELECT part and put COUNT(*) there) it returns different number, 16.
Why just converting to count query returns different count than its original query?
Either you have used
Select Distinctwhen you are getting the number of rows 11 in result.or
you are not using distinct in Count like
Count(Distinct fieldname), soCount(*)is giving all the record count.