This one explains how to do a single sub select. You would just return your calculated string_agg field, and do the joins on the sub query criteria.
3 Likes
This one explains how to do a single sub select. You would just return your calculated string_agg field, and do the joins on the sub query criteria.