https://www.as400andsqltricks.com/2024/03/SQLExtractscalarfunctioninDB2foriSQL.html