Solution: Use NUMERIC Data Type

Let's solve the antipattern by using the NUMERIC data type.

We'll cover the following

Instead of FLOAT or its siblings, let’s use the NUMERIC or DECIMAL SQL data types for fixed-precision fractional numbers.

Get hands-on with 1200+ tech skills courses.