Split comma separated values of a column in row, through Oracle SQL query
Try using below query: WITH T AS (SELECT ‘A,B,C,D,E,F’ STR FROM DUAL) SELECT REGEXP_SUBSTR (STR, ‘[^,]+’, 1, LEVEL) SPLIT_VALUES FROM T CONNECT BY LEVEL <= (SELECT LENGTH (REPLACE (STR, ‘,’, NULL)) FROM T) Below Query with ID: WITH TAB AS (SELECT ‘1001’ ID, ‘A,B,C,D,E,F’ STR FROM DUAL ) SELECT ID, REGEXP_SUBSTR (STR, ‘[^,]+’, 1, LEVEL) … Read more