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!

Chaning Case from Caps to Title case

Status
Not open for further replies.
Joined
Dec 5, 2001
Messages
44
Location
US

I have got a large SQL Server DB containing applicant names. These names were imported from another DB and they are all in Caps (Capital Letters) but I need to convert them into Title Case (first letter capital rest small) so that I can use them in mail merge.

Any ideas??

Thanks
 
If the names are stored in separate columns for first, middle, and last name -

Code:
SELECT STUFF( LOWER(last_name), 1, 1, UPPER(SUBSTRING(last_name, 1, 1)))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top