I want to know how I would compare two pieces of information such as say I have two columns in my query: surname
and forename
. How could I check to see whether the forename
exists in the surname
column and visa versa?
So far I've created two temporary tables, one which selects just the surname
, and one which selects all the other information. I was going to compare them by doing a join but im having no luck.