Is there any query/code that can find common values?