<?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/214979#M176891</link>
    <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/83246/souveekray.html" nodeid="83246"&gt;@Souveek Ray&lt;/A&gt;&lt;BR /&gt;Maybe this code can help you (it's just a scratch)&lt;/P&gt;&lt;PRE&gt;select 
concat_ws(' ',case when regexp_extract('abcd pqrs xyzsd mnop', '(abcd)', 0) is null then '' else 'abcd' end, 
case when regexp_extract('abcd pqrs xyzsd mnop', '(mnop)', 0) is null then '' else 'mnop' end,
case when regexp_extract('abcd pqrs xyzsd mnop', '(pqrs)', 0) is null then '' else 'pqrs' end)
&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Jun 2018 00:22:48 GMT</pubDate>
    <dc:creator>vmurakami</dc:creator>
    <dc:date>2018-06-07T00:22:48Z</dc:date>
  </channel>
</rss>

