MC's solution will make the whole column upper case. Because you need to change the letter of the 2nd name, which can appear anywhere in the string, I don't think it can be done in SQL. You will need to do this programatically outside of SQL. Call the routine as a UDF as Sathyaram suggests.
Visit the excellent IBM DB2 DeveloperDomain site, there is link to porting to DB2 with migration info.
Among these, you'll find a UDFMigration package which includes the code to recreate some 30 or so Oracle functions, the InitCap is one of these.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.