-
If an integer column is used for the values in range 1 to 99999, the best suitable datatype is ____________.
-
- SMALLINT UNSIGNED
- SMALLINT SIGNED
- MEDIUMINT SIGNED
- MEDIUMINT UNSIGNED
- None of these
Correct Option: D
Since the range starts from the positive value 1, it is best to keep the datatype as UNSIGNED. The maximum value is of the order of 10^5, so a MEDIUMINT datatype is well suited.