P
prodeji
Hi all
Here's my challenge:
I'm processing a customer info file with your standard demographics -
first name, last name, age, address etc.
The last name appears in all of the 'last name' fields; no problem.
However, in some of the 'first name' fields the last name appears
again, like so:
F_Name L_Name Title
Kris Doft Doft Manager
Johan Smith Accountant
Maria Katson Katson Director
Anne Charles Charles Supervisor
Is there a query that can get rid of the duplicate last name in the
'first name' fields?
Obviously it can't be a standardised 'delete last 4 characters in
F_Name field' type of deal as both the first and last names will have
differing lengths in any given record.
I think I basically have to tell the database to 'delete any character
that comes after a space ' ' in the F_Name field, but I don't know how
to do that...
Um... help?
Thanks
Here's my challenge:
I'm processing a customer info file with your standard demographics -
first name, last name, age, address etc.
The last name appears in all of the 'last name' fields; no problem.
However, in some of the 'first name' fields the last name appears
again, like so:
F_Name L_Name Title
Kris Doft Doft Manager
Johan Smith Accountant
Maria Katson Katson Director
Anne Charles Charles Supervisor
Is there a query that can get rid of the duplicate last name in the
'first name' fields?
Obviously it can't be a standardised 'delete last 4 characters in
F_Name field' type of deal as both the first and last names will have
differing lengths in any given record.
I think I basically have to tell the database to 'delete any character
that comes after a space ' ' in the F_Name field, but I don't know how
to do that...
Um... help?
Thanks