Order by listagg is not ascending according the list data
问题 i have problem how to ascending the data according the list. For example, i have a table field names mhn.kod_urusan. i want to show the result according the list that i type.The problem is the data not follow what i type in the list. "and mhn.kod_urusan in ('PBPTG','PBMT')" This is my query:- select LISTAGG (upper(aa.kod_urusan), ', ') within Group (order by aa.kod_urusan asc) as daerah from (select distinct mhn.kod_urusan,kc.nama nm from mohon mhn, kod_urusan ku, kod_caw kc where mhn.kod