It may be worth running the query: ``` select typeof(amount), typeof(rate) from ... ``` to see if any of the values are, for example, being stored as text.
It may be worth running the query: ``` select typeof(amount), typeof(rate) from ... ``` to see if any of the values are, for example, being stored as text.