i have table groupLocal:
| id | nameGroup | group |
|---|---|---|
| 1 | group A | [1,2] |
| 2 | group B | [2,3] |
and table customer:
| id | nameCustomer | local |
|---|---|---|
| 1 | Jerry | 1 |
| 2 | Tom | 2 |
| 3 | Nan | 2 |
| 4 | Bie | 3 |
i want result count customer.local with condition customer.local in groupLocal.group
| id | nameGroup | count(customer.local) |
|---|---|---|
| 1 | group A | 3 |
| 2 | group B | 3 |
Thank U
groupcolumn avarcharorjsoncolumn? if its ajsoncolumn, its been answered before