Hi guys!
I am required to create a function similar to the listagg function with a different name. The function should take the "," as the separator by default and also need to be able to use the distinct clause just like the listagg. For an example,
The output of the statement
SELECT AGG_FUNC(DISTINCT COL1) FROM TABLE1
Should be in the form of "record1,record2,record3"
I tried user-defined aggregate functions and creating the function using the listagg function as the source but I am not able to get the required results so far.
Thanks!
------------------------------
Sahan Mendis
------------------------------