﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Analytical Applications / Teradata   / Convert Text to Proper Case is huge problme / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Wed, 03 Dec 2008 15:34:55 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Convert Text to Proper Case is huge problme</title><link>http://www.teradata.com/teradataforum/Topic10829-5-1.aspx</link><description>Thank you, we are using Teradata and does not have Oracle package to be install. do you have another way to simplify the process?thanks,</description><pubDate>Tue, 11 Mar 2008 18:07:45 GMT</pubDate><dc:creator>nguyent02</dc:creator></item><item><title>RE: Convert Text to Proper Case is huge problme</title><link>http://www.teradata.com/teradataforum/Topic10829-5-1.aspx</link><description>Less dirty:install the availabe Oracle UDF library and simply run.select    initcap(cityname)from tabDieter</description><pubDate>Fri, 07 Mar 2008 07:19:52 GMT</pubDate><dc:creator>dnoeth</dc:creator></item><item><title>RE: Convert Text to Proper Case is huge problme</title><link>http://www.teradata.com/teradataforum/Topic10829-5-1.aspx</link><description>Less dirty:install the availabe Oracle UDF library and simply run.select    initcap(cityname)from tab</description><pubDate>Fri, 07 Mar 2008 07:19:30 GMT</pubDate><dc:creator>dnoeth</dc:creator></item><item><title>RE: Convert Text to Proper Case is huge problme</title><link>http://www.teradata.com/teradataforum/Topic10829-5-1.aspx</link><description>One sample dirty tick is this one ....CREATE TABLE DATA004(CITYNAME VARCHAR(30));INSERT INTO DATA004 VALUES('WEST MINISTER');INSERT INTO DATA004 VALUES('COSTA MESA CITY');INSERT INTO DATA004 VALUES('');INSERT INTO DATA004 VALUES('A');INSERT INTO DATA004 VALUES('BC');INSERT INTO DATA004 VALUES('D E');INSERT INTO DATA004 VALUES(NULL);WITH RECURSIVE GETCITYNME(ORIG_NAME, CITY_NAME, CURPOS, LVL)AS(SELECT     CITYNAME  , CASE WHEN CHARACTER_LENGTH(CITYNAME) &amp;gt; 0 THEN  SUBSTRING(CITYNAME FROM 1 FOR 1) || SUBSTRING( LOWER(CITYNAME) FROM 2)  ELSE CITYNAME END  , POSITION(' ' IN CITYNAME)  CPOS  , 0FROM DATA004UNION ALLSELECT ORIG_NAME , SUBSTRING(CITY_NAME FROM 1 FOR CURPOS) || UPPER(SUBSTRING(CITY_NAME FROM CURPOS+1 FOR 1))  ||  SUBSTRING(CITY_NAME FROM CURPOS+2) NEW_NME , NULLIF(POSITION(' ' IN SUBSTRING(CITY_NAME FROM CURPOS+1))-1, 0  )+1+CURPOS  CPOS , LVL + 1  FROM GETCITYNMEWHERE NEW_NME(CS) &amp;lt;&amp;gt; CITY_NAME(CS))SELECT CITY_NAMEFROM GETCITYNMEQUALIFY RANK() OVER (PARTITION BY CITY_NAME ORDER BY LVL DESC) = 1;	CITY_NAME	?		A	Bc	Costa Mesa City	D E	West Minister</description><pubDate>Thu, 06 Mar 2008 23:08:53 GMT</pubDate><dc:creator>joedsilva</dc:creator></item><item><title>Convert Text to Proper Case is huge problme</title><link>http://www.teradata.com/teradataforum/Topic10829-5-1.aspx</link><description>I need your help so badly, i have a requirement to convert text into proper case such as following:RAW data City Name                             to City NameWESTMINSTER CITY                Westminster City    (Upper case W and C)COSTA MESA CITY                  Costa Mesa City     (Upper C, M, and C).Please teach me some trick here.... please.... Plese</description><pubDate>Thu, 06 Mar 2008 19:55:08 GMT</pubDate><dc:creator>nguyent02</dc:creator></item></channel></rss>