I have a table with a field that acts like an array for some front-end processing and that is the result of concatenating 9 columns from a different flat table. The field was populated as such
Field1 + ',' + Field2 + ',' + Field3 + ',' + Field4 + ',' + Field5 + ',' + Field6 + ',' + Field7 + ',' + Field8 + ',' + Field9
If Field4 from the flat table has a value, then Fields 1, 2 and 3 also have a value. But, most of the time Fields 5 – 9 do not have values. The result is that most values in the array field (after the concatenation) look like this:
Bob,Joe,Mary,Sam,,,,,
I am looking for a simple way to update this concatenated field to instead look like this:
Bob,Joe,Mary,Sam
This is the Oracle equivalent to Trim(Trailing',' From FieldValue)