I have a table with 2 columns, both having names
I want a query that finds only unique names – names that only appear once max in the entire table.
For example, for the following table:
NAME1 | NAME2
--------------------
DAN MIKE
MIKE TONY
FOO DAN
It should only return FOO and TONY.
Thanks
I guess you could do it a few ways, but here’s one (assuming Name1 and Name2 are of the same, or implicitly convertible types):