r/SQL • u/tvtacolb • Apr 02 '26
MySQL MYSQL Question Help
I'm having an issue understanding what the right answer is.
The question is
Which data type will store "287,33" as a numeric value without loss of information?
- BIT
- INT
- DECIMAL
- VARCHAR
The quotes and the comma are throwing me off, thinking it's VARCHAR
1
Upvotes
View all comments
Show parent comment
2
u/KracticusPotts Apr 02 '26
That was my question: is this test in the United States or in a country that uses the comma instead of a decimal. The collation type will give a clue as to what the answer should be for the question