I have a target where I have this DUPLICATE checker with COUNT for multiple arrays. As we can see. Any suggestions on how I make this work? Thank you and have a nice day.
DATA:
| id | value |
|---|---|
| 1 | [5,6,8,4,2] |
| 2 | [2,3,4,1,8] |
| 3 | [9,3,2,1,10] |
Normal result:
| number | count |
|---|---|
| 1 | 2 |
| 2 | 3 |
| 3 | 2 |
| 4 | 2 |
| 5 | 1 |
| 6 | 1 |
| 7 | 0 |
| 8 | 2 |
| 9 | 1 |
| 10 | 1 |
This is my target result with sorting (Highest count):
| number | count |
|---|---|
| 2 | 3 |
| 1 | 2 |
| 3 | 2 |
| 4 | 2 |
| 8 | 2 |
| 5 | 1 |
| 6 | 1 |
| 10 | 1 |
| 9 | 1 |