Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Names to Title Case

Status
Not open for further replies.

Rozza

Technical User
Jul 25, 2002
67
GB
Hi I have a table which stores forenames and surnames in seperate columns.

I need to change the font case to Title Case e.g. Paul Rowling as many of the names are stored in upper or lowercase.

How can I do this using an sql statement??

Cheers

Paul
 
Is that what your looking for?

select upper(left(fName, 1)) + lower(substring(fName, 2, len(fName)-1)) + ' ' +
upper(left(lName, 1)) + lower(substring(lName, 2, len(lName)-1))
from yourTable

Matt
 
Thanks for your reply. I'll give it a try!!

Cheers

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top