A field reference carrying SQL quoting. $\total amount`` names a field that does not exist, so an aggregate over it returns 0 rather than failing. Reported only when the unquoted form is a catalog field, which makes the mistake provable.
$\
A field reference carrying SQL quoting.
$\total amount`` names a field that does not exist, so an aggregate over it returns 0 rather than failing. Reported only when the unquoted form is a catalog field, which makes the mistake provable.