<?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: Find a word or a group of words from a column in Hortonworks and creating it as a separate column in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Find-a-word-or-a-group-of-words-from-a-column-in-Hortonworks/m-p/214980#M176892</link>
    <description>&lt;P&gt;Hi, &lt;A rel="user" href="https://community.cloudera.com/users/79158/vmurakami.html" nodeid="79158"&gt;@Vinicius Higa Murakami&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for taking out your time to help me. The regexp_extract didnt work correctly but I got the idea and modified the code to get the desired results.&lt;/P&gt;&lt;P&gt;Here is what I did:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;trim(concat_ws(' ',
case when instr( lower(col4) , 'abcd' )  &amp;gt;0 then 'abcd' else '' end, &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;case when instr( lower(col4) , 'pqrs' )  &amp;gt;0 then 'pqrs' else '' end))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This worked perfectly. Thank you so much&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Souveek&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2018 14:48:50 GMT</pubDate>
    <dc:creator>souveekray</dc:creator>
    <dc:date>2018-06-07T14:48:50Z</dc:date>
  </channel>
</rss>

