0

I have some tables. picture

people_ids type is TEXT. No foreign keys used. main_id - is like main parent, one from PEOPLE table;

picture

I need SQL request to get result. SELECT * from families ...

[
  'main' => [
    'name' => 'John',
    'surname' => 'Brown'
   ],
  'people' => [
     [
      'name' => 'John',
      'surname' => 'Brown'
     ],
     [
      'name' => 'Merry',
      'surname' => 'Brown'
     ],
     [
      'name' => 'Lizy',
      'surname' => 'Brown'
     ]
   ]
]
  • 1
    [is storing a delimited list in a database column really that bad?](https://stackoverflow.com/questions/3653462/is-storing-a-delimited-list-in-a-database-column-really-that-bad) – Barmar Dec 11 '21 at 02:09

0 Answers0