Joining multiple junction tables and grouping results in a JSON-formatted array
Say I have a table of people: +----+------+ | id | name | +----+------+ | 1 | John | | 2 | Mary | | 3 | Jane | +----+------+ And various tables for clothing of various types, e.g. a…