1.

Which data type is best suited to store currency values?(a) INT(b) FLOAT(c) DOUBLE(d) DECIMALI have been asked this question in homework.Question is taken from Checking and Repairing Database Tables topic in chapter Database Maintenance, Backups and Replication of MySQL

Answer»

Correct answer is (d) DECIMAL

Explanation: Currency is a numeric information. For MONETARY calculations, FLOAT and DOUBLE are subject to rounding error and MAY not be suitable. A DECIMAL(M, 2) TYPE is best suited for it.



Discussion

No Comment Found

Related InterviewSolutions