I have a Postgresql JSON 2D array column containing string terms, e.g.:
Input
[["edwards", "block", "row"], ["edwards"], ["block"]]
Is it possible to compute the occurrence of each term purely in Postgresql? e.g.:
Output
Terms, Occur
["edwards", "block", "row"] [2,2,1]
(Or in some similar format). Or would I have to compute the occurrences using a programming language?