Hello everyone, I have the following query below which contains a sub query:
SELECT g.id, g.name, data.permissions, gp.has_permission FROM groups g RIGHT JOI