hardStudy question · answer published in Data Modelling interview questions, so no pointsdata-modellingdata-types
Storing money as integer fils
A payments table stores amounts as integers in minor units, assuming 100 minor units per currency. It works for AED and INR. What breaks when Kuwait goes live?
Discussion 0
Join free to post in the discussion.
Related questions
- Primary key for order linesData Engineer
- Modelling doctors and patientsData Engineer
- Several phones in one columnData Engineer
- Several unique columnsData Engineer
- Picking the natural keyData Engineer
- Reading crow's foot notationData Engineer
- The model with indexes and typesData Engineer
- Why denormalise a reporting tableData Engineer