SUM, AVG, and arithmetic overflow
You Shoulda Brought A Bigger Int Sometimes you run a query, and everything goes fine. For a while. For example, if I run this query in the 2010 copy of Stack Overflow, it finishes pretty quickly, and without error. [crayon-6ab5d7ef31b10053908905/] If I run this query in the full version, it runs for a minute and…