createtable countries ( country_name varchar2 (100));insertinto countries values('Albania');insertinto countries values('Andorra');insertinto countries values('Antigua');SELECT SUBSTR (SYS_CONNECT_BY_PATH (country_name ,','),2) csv FROM(SELECT country_name , ROW_NUMBER ()OVER(ORDERBY country_name ) rn, COUNT (*)OVER() cnt FROM countries)WHERE rn = cnt STARTWITH rn =1CONNECTBY rn = PRIOR rn +1; CSV -------------------------- Albania,Andorra,Antigua 1row selected.