When I was concat-ing two fields together, fname and sname, the following code gave the title case (First letter of fname and sname capped). But now the csv files I download have a single field wherein fname and sname are together.
How can the code be adapted, please, to give title case for the two names in the field? Sometimes there are 3 names in the field, but I don't suppose that can be catered for, too.(?)
I think this is what I used to do -
CONCAT(UPPER(SUBSTRING(Manager, 1,1)),
LOWER(SUBSTRING(Manager,2)) ' ',
UPPER(SUBSTRING(Manager, 1,1)),
LOWER(SUBSTRING(Manager,2)))
I am trying –
CONCAT(UPPER(SUBSTRING(Manager,1,1)),
LOWER(SUBSTRING(Manager,2)))
AS n,
… but it fails to upper-case the first letter of the second word.
How can the code be adapted, please, to give title case for the two names in the field? Sometimes there are 3 names in the field, but I don't suppose that can be catered for, too.(?)
I think this is what I used to do -
CONCAT(UPPER(SUBSTRING(Manager, 1,1)),
LOWER(SUBSTRING(Manager,2)) ' ',
UPPER(SUBSTRING(Manager, 1,1)),
LOWER(SUBSTRING(Manager,2)))
I am trying –
CONCAT(UPPER(SUBSTRING(Manager,1,1)),
LOWER(SUBSTRING(Manager,2)))
AS n,
… but it fails to upper-case the first letter of the second word.