I was trying to do column values concatenation in Netezza and found following for sql-server
Concatenating Column Values into a Comma-Separated List
It doesn't work for Netezza though.
Is there any solution?
What I have tried was
SELECT LEFT(COLUMN_NAME, LENGTH(COLUMN_NAME) - 1)
FROM (
SELECT COLUMN_NAME + ', '
FROM information_schema.columns
WHERE table_name IN ('Employee')
FOR XML PATH ('')
) c (COLUMN_NAME)
Thanks