I have a table with two columns. I want to compare each row of the first column with all rows in the second column. If matched I need to insert yes in the 3rd column, if not I need to insert no.

```
First second
A      B
C      D
E      A
X      c

```

Output should be

```
First second  yesOrno
A      B         yes
C      D         yes
E      A         NO
X      c         NO

```