I have the following jsonb array column (tags)
|name | tags (jsonb) |
--------------------------------
|john | [ "foo", "bar" ]
|smith| [ "bar", "bat" ]
|adam | [ "foo", "dot" ]
How to get the distinct tags as follows ["foo", "bar", "bat", "dot"] ?
["foo", "bar", "bat", "dot"], you wrotebartwice here.