How do i remove the brackets {} from an Array_AGG query output?
ARRAY_AGG(DISTINCT(SGL.short_name))
from this {01,02}
to this 01|02|
thanks!
How do i remove the brackets {} from an Array_AGG query output?
ARRAY_AGG(DISTINCT(SGL.short_name))
from this {01,02}
to this 01|02|
thanks!
Use array_to_string()
:
ARRAY_TO_STRING(ARRAY_AGG(DISTINCT(SGL.short_name)), '|')