I need to convert a query from Oracle SQL to Postgres. The query returns in a single row elements from a cursor. I'll write a simplified form of this query in Oracle:
select CONCAT_LIST( cursor( select first_name || '-' || last_name from sys_users) ,',') as users_list from dual
If the table "sys_users" has 2 elements:
1. first name - "John", last name - "Smith"
2. first name - "George", last name - "Doe" ,
the result is:
John-Smith,George-Doe
I need to get the same result in Postgres, if the elements in this table are the same.