Today, when I tried to do a

view plain print about
1select count(*) from sometable cross join someothertable cross join athirdtable
I got the following error:

view plain print about
1Arithmetic overflow error converting expression to data type int.

Turns out you need to use the COUNT_BIG(*) function instead.

view plain print about
1select count_big(*) from sometable cross join someothertable cross join athirdtable