<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: SQL statement to capitalize the first letter in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/329630#M230486</link>
    <description>&lt;P&gt;Thanks for the support. How do I make the second word a capital too?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Nov 2021 11:37:32 GMT</pubDate>
    <dc:creator>Sam7</dc:creator>
    <dc:date>2021-11-04T11:37:32Z</dc:date>
    <item>
      <title>SQL statement to capitalize the first letter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/326866#M229950</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the first letter to be a capital letter and the rest lower case:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPPER(LEFT(fieldname,1))+LOWER(SUBSTRING(fieldname,2,LEN(fieldname))) AS fieldname&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I keep getting this error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error while compiling statement: FAILED: ParseException line 25:10 cannot recognize input near 'LEFT' '(' 'fieldname' in function specification&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 15:37:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/326866#M229950</guid>
      <dc:creator>Sam7</dc:creator>
      <dc:date>2021-10-07T15:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: SQL statement to capitalize the first letter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/327212#M230014</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92587"&gt;@Sam7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was the query working fine before in das ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 07:57:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/327212#M230014</guid>
      <dc:creator>balajip</dc:creator>
      <dc:date>2021-10-11T07:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: SQL statement to capitalize the first letter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/327213#M230015</link>
      <description>&lt;P&gt;What is das?&lt;/P&gt;&lt;P&gt;This is the first time I am using this code, very new to Hue&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 08:17:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/327213#M230015</guid>
      <dc:creator>Sam7</dc:creator>
      <dc:date>2021-10-11T08:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: SQL statement to capitalize the first letter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/327251#M230035</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92587"&gt;@Sam7&lt;/a&gt;&amp;nbsp;DAS is &lt;A href="https://docs.cloudera.com/HDPDocuments/DAS/DAS-1.4.5/core-concepts/content/das_data_analytics_studio_overview.html" target="_blank" rel="noopener"&gt;Data Analytics Studio&lt;/A&gt;, which was the label you originally applied to your post. See the following partial page shot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Partial page shot of community post for responding to 11 Oct captured 2021-10-11_08-18-03.jpg" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/32639iA19C03E40AD9655E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Partial page shot of community post for responding to 11 Oct captured 2021-10-11_08-18-03.jpg" alt="Partial page shot of community post for responding to 11 Oct captured 2021-10-11_08-18-03.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So that is why&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/38961"&gt;@balajip&lt;/a&gt;&amp;nbsp;was asking if the query was working fine before you made the latest change to capitalize the initial letter.&amp;nbsp;&amp;nbsp;DAS is a completely different tool than Hue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would help members of the community in offering possible answers to your question if you could post a screen shot of the query you're submitting in the actual tool you are using as well as the error message that tool is returning when it attempts to execute the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 15:49:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/327251#M230035</guid>
      <dc:creator>ask_bill_brooks</dc:creator>
      <dc:date>2021-10-11T15:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: SQL statement to capitalize the first letter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/327252#M230036</link>
      <description>&lt;P&gt;Cheers, I did not see that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I remove a tag or shall I start again with my question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 15:52:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/327252#M230036</guid>
      <dc:creator>Sam7</dc:creator>
      <dc:date>2021-10-11T15:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: SQL statement to capitalize the first letter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/327281#M230040</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92587"&gt;@Sam7&lt;/a&gt;&amp;nbsp;No, you don't have to start a new question, just go ahead and post your screen shot of the query in Hue and the resulting error message and I'll revise the label for you if it's necessary. Also, let us know what distribution you're using and what version of Hue you're running, that would help us help you a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 23:52:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/327281#M230040</guid>
      <dc:creator>ask_bill_brooks</dc:creator>
      <dc:date>2021-10-11T23:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: SQL statement to capitalize the first letter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/327881#M230182</link>
      <description>&lt;P&gt;With hive query,&amp;nbsp; please try&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select concat(UPPER(SUBSTRING(fieldname,1,1)),LOWER(SUBSTRING(fieldname,2,LENGTH(fieldname)))) AS fieldname from ...&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 13:06:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/327881#M230182</guid>
      <dc:creator>BennyZ</dc:creator>
      <dc:date>2021-10-18T13:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQL statement to capitalize the first letter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/328524#M230273</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92587"&gt;@Sam7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We hope the SQL shared by&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/23428"&gt;@BennyZ&lt;/a&gt;&amp;nbsp;helped your Team meet the Use-Case. Showing the SQL Output from the SQL shared in a Sample Table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-10-21 at 11.00.26 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/32720i42810769BE385F14/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-10-21 at 11.00.26 PM.png" alt="Screenshot 2021-10-21 at 11.00.26 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As such, We are marking the Post as Solved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Smarak&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 17:32:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/328524#M230273</guid>
      <dc:creator>smdas</dc:creator>
      <dc:date>2021-10-21T17:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: SQL statement to capitalize the first letter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/329630#M230486</link>
      <description>&lt;P&gt;Thanks for the support. How do I make the second word a capital too?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 11:37:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/329630#M230486</guid>
      <dc:creator>Sam7</dc:creator>
      <dc:date>2021-11-04T11:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: SQL statement to capitalize the first letter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/329716#M230497</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92587"&gt;@Sam7&lt;/a&gt;&amp;nbsp;please try :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;select concat(UPPER(SUBSTRING(fieldname,1,2)),LOWER(SUBSTRING(fieldname,3,LENGTH(fieldname)))) AS fieldname from ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can check the below document for the usage of substring()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://cwiki.apache.org/confluence/display/hive/languagemanual+udf" target="_blank"&gt;https://cwiki.apache.org/confluence/display/hive/languagemanual+udf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 13:34:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/329716#M230497</guid>
      <dc:creator>BennyZ</dc:creator>
      <dc:date>2021-11-05T13:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL statement to capitalize the first letter</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/329723#M230499</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 14:50:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SQL-statement-to-capitalize-the-first-letter/m-p/329723#M230499</guid>
      <dc:creator>Sam7</dc:creator>
      <dc:date>2021-11-05T14:50:24Z</dc:date>
    </item>
  </channel>
</rss>

