Postgresql – string_agg () is not working for Postgres sql when joining on multiple tables
I have to join user_name from user table where as first_name and last_names from user_profile table. Until here everything is fine, but when I try to fetch respective roles assigned from user_role tables it gives multiple rows for single user…