Hello,
I am trying to clean first names but there is such complexity that I cannot do it in a single query.
j. b john
john
john j
j. John
john
j john,
john, peter
j, john
john
j,john
In all different examples, I want the output to give me "John". So, I need a query to remove commas, ignore initials, dots, remove spaces and leading spaces and make proper case.
All these examples are under the first name field (so, there is no any surname).
Any idea how?
I have applied various ways to fix them but I am stuck. Nothing can give me a proper cleaning and,also, I always need to do 3-4 extra queries to fix this (depending on the outcome of the previous query).
I am trying to clean first names but there is such complexity that I cannot do it in a single query.
j. b john
john
john j
j. John
john
j john,
john, peter
j, john
john
j,john
In all different examples, I want the output to give me "John". So, I need a query to remove commas, ignore initials, dots, remove spaces and leading spaces and make proper case.
All these examples are under the first name field (so, there is no any surname).
Any idea how?
I have applied various ways to fix them but I am stuck. Nothing can give me a proper cleaning and,also, I always need to do 3-4 extra queries to fix this (depending on the outcome of the previous query).
Last edited: