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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Initcap & Apostrophes

Status
Not open for further replies.

gkrenton

MIS
Jul 2, 2003
151
US
I have a statement that reads
select inv_id, initcap(short_description),
from ecat_items

Which give the short description the first letter capitalization which I want the problem I'm running into is descriptions with apostrophes within them.
children's boots gets displayed as Children'S Boots.

I don't want the 'S capitilized. Anyone know of a way to get both the first letter capitlization result but keep the grammer/apostrophed letters from becoming capitalized as a 'new' word?

Thanks

Gina
 
You may try this:
SELECT inv_id, REPLACE(INITCAP(short_description), [tt]"'S", "'s")[/tt]
FROM ecat_items

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
what about

initcap(substr(shortdescription,1,1))||substr(shortdescription,2)

?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top