/ Published in: SQL
This trick is useful in scenarios where you already have a count in the SELECT along with a GROUP BY that is preventing you from getting a total count of the rows returned. Great for use in the $countquery parameter of pagerquery() function calls in Drupal.
Expand |
Embed | Plain Text
SELECT count(1) FROM ( -- YOUR QUERY HERE ) AS countable
You need to login to post a comment.
