Skip to content
Advertisement

Compare two arrays and count number of the same strings

I would like to compare two arrays in two columns and in the third column return the number of the same strings within those two arrays.

Advertisement

Answer

You can use unnest(). Assuming that the individual arrays have no duplicates:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement