📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which data type is best for storing a salary such as 85450.75?

A. INT
B. BOOLEAN
C. DECIMAL(10,2) ✅
D. CHAR(10)

Correct Answer: C. DECIMAL(10,2)

Explanation

  • DECIMAL(10,2) stores exact decimal values with two places after the point.
  • INT cannot store fractions and CHAR stores text.