I have the following table in Postgres:
Column | Type | Modifiers
-------------------------+-----------------------------+------------------------------------------------
id | uuid | not null
name | character varying(255) | not null
parent_organization_ids | uuid[] | not null default '{}'::uuid[]
The column parent_organization_ids
contains an array with all the parent hierarchy for that organization, having first the root, and in the last item the parent of the current row (if exists).
I need to do a query to show the current row information, and then do a left join to show the parent name of the current row.
How can I do that left join?
Is there an alternative to do this?