If SELECT SUM(amount) FROM transactions ORDER BY order LIMIT 0, 50 sums the amount field for the first 50 records in a table, how do a sum all records after the first 50? In other words, I’d like to do something like SELECT SUM(amount) from transactions ORDER BY order LIMIT 50, *, but that doesn’t work.
If SELECT SUM(amount) FROM transactions ORDER BY order LIMIT 0, 50 sums the amount
Share
The documentation advices to use an incredible large number as second parameter to
LIMIT: