DECIMAL
DECIMAL(10,2) is exact: 10 digits, 2 after the point — money, percentages you must not round wrongly. FLOAT/DOUBLE are approximate binary. Banks and fees: DECIMAL.
10,2 means 8 digits before the point + 2 after (total 10). Don’t guess — say ‘precision and scale’.
Trap — FLOAT for salary.
On the example next to this theory: DECIMAL: create two demo rows, then SELECT qty >= 2 ordered. Say which labels come back.
Exam tip
fee DECIMAL(10,2) NOT NULL