I have several tables with different client names. I am trying to figure out how many times the same name in the table. The challenge here is that someone could enter the name "John Smith" or "Smith, John."
Each table contains 40,000 rows and more than 40 different tables. I am trying to somehow query without knowing the names, but still return the names.
Basically I need to group the names without using an instruction like:
WHERE cust_name LIKE '%john%'
How can you query multiple table columns using the contents of other table columns when the data inside cannot be in the same format? What is the best way to clear data to remove commas, spaces, etc.
source
share