Good afternoon, guys. I have a difficulty to do a select in a postgres DB here.
For some reason, the programmer invented creating a field where, if the user enters two notes at the same time, the system writes in the bank only one line for that release but separating the two notes by a comma in the field recn_numerodcto .So, if I run the select below in the database,
select recn_data, recn_unid, recn_numerodcto from recnota
The result will be:
recn_data | recn_unid | recn_numerodcto
25-09-2018 | 001 | 123, 321
Is there a way I can break this result to generate a row for each note? Ex:
recn_data | recn_unid | recn_numerodcto
25-09-2018 | 001 | 123
25-09-2018 | 001 | 321