Store Money and Time
Talk it through out loud with your AI coach.
The problem
- easy
- Pro
A new payments table stores amounts as floating-point numbers and timestamps without a time zone. Explain what can go wrong with each and which column types you'd use instead.
What a strong answer covers
- Why the usual decimal-looking number type is risky for money.
- Safer ways to store amounts, and what else money needs.
- Why a timestamp with no zone information is ambiguous.
- A consistent approach to storing and displaying times.
Common mistake: Rounding money at display time to hide small errors instead of storing it exactly in the first place.
Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.
Practise it out loud