Scenario: An application requires precise monetary values to be stored in the database. Which data type is most appropriate for this purpose in DB2?

  • CHAR
  • DECIMAL
  • FLOAT
  • INTEGER
DECIMAL data type is the most suitable for storing precise monetary values in a DB2 database. DECIMAL provides exact numeric representation without any rounding or approximation issues, making it ideal for financial calculations where precision is crucial. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *