I have in DB2 a table with a VARCHAR column containing a probability distribution, such as "0.3, 0.1, 0.3, 0.2, 0.1".
I'm wondering if I could create a check constraint for this column in order to check that the sum of the probabilities is indeed 1.
I've been through DB2 documentation and several tutorials, but I couldn't find anything related to this issue.