Hello, I'm very dubious about datatype of my database, I need to use different unit of measurements because I have different elements and different scales, and I'm sure about the limits used, because I take them from standard elements, but I'm afraid about the variety.
Just consider I work with 100 grams of product and take from it all elements, so, I'm sure I can't go over 100 grams for proteins, but i can reach 3500 kilojoule or 3,27 milligrams of iron element.
So I need various datatypes I think, but I'm not sure about the right kind.
I'll show the max values to be more clear about the unit limits:
grams 99,99 g
milligrams 9999,99 mg
micrograms 99999 µg
kilojoule 9999 kj
So, what is the right way?
I'm sure the best way (the best performance) is to store the various elements with their standard values (for example, kilojoule for calories) but what are the datatype equivalents?