Next badge 0/1
~2k people reached
- 0 posts edited
- 0 helpful flags
- 1 vote cast
Improve performance with the WHERE NOT IN sub-select clause
I have to exclude from the result set entirely, customers that have a transaction older than one year.
According to the SQL92 spec, can I store the value 1 in a field where the precision = scale?
That is what we were thinking. We were confused when we were able to store the value 1 in a column like this in Firebird version 1.2 and version 2.5. This SQL returns 1 => SELECT CAST(1 AS DECIMAL(3,3)) FROM RDB$DATABASE