I have the following type of query:
SELECT * FROM TABLE
GROUP BY Table.Table_ID
LIMIT 10
I want to know how many rows would be selected if that LIMIT 10 weren’t there. I can’t simply select COUNT(Table_ID) because I group by that, so it will give 1 in every row for that.
Clearly described in the manual:
If you follow the link to Section 11.13, there’s then an example:
Please, use the documentation as your first port of call.