Finding common values in two tables or two rows

Hi,
I am using elasticsearch datasource. I have a table with two metrics in it. Is there a way to find the common timestamps for the two metrics? I want to apply to same principle to getting the common values out of two tables.

Thanks,
Sandhya