<?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 How to find the count of NULL values in Hive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-find-the-count-of-NULL-values-in-Hive/m-p/241580#M203383</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Query:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;select 2gusage,count(2gusage) from demo group by 2gusage;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;MID     765153 &lt;/P&gt;&lt;P&gt;HIGH    18095461 &lt;/P&gt;&lt;P&gt;LOW     119069472 &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NULL    25997075&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried the below query to find the count of NULL values&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;select count(*) from demo where 2gusage is 'NULL';&lt;/P&gt;&lt;P&gt;&lt;B&gt;Output&lt;/B&gt;&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;Kindly help me out with the query to find the count of NULL values&lt;/P&gt;</description>
    <pubDate>Sun, 06 Jan 2019 18:52:40 GMT</pubDate>
    <dc:creator>basil_paul</dc:creator>
    <dc:date>2019-01-06T18:52:40Z</dc:date>
    <item>
      <title>How to find the count of NULL values in Hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-find-the-count-of-NULL-values-in-Hive/m-p/241580#M203383</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Query:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;select 2gusage,count(2gusage) from demo group by 2gusage;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;MID     765153 &lt;/P&gt;&lt;P&gt;HIGH    18095461 &lt;/P&gt;&lt;P&gt;LOW     119069472 &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NULL    25997075&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried the below query to find the count of NULL values&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;select count(*) from demo where 2gusage is 'NULL';&lt;/P&gt;&lt;P&gt;&lt;B&gt;Output&lt;/B&gt;&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;Kindly help me out with the query to find the count of NULL values&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jan 2019 18:52:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-find-the-count-of-NULL-values-in-Hive/m-p/241580#M203383</guid>
      <dc:creator>basil_paul</dc:creator>
      <dc:date>2019-01-06T18:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the count of NULL values in Hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-find-the-count-of-NULL-values-in-Hive/m-p/241581#M203384</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/81337/basilpaul.html" nodeid="81337"&gt;@Basil Paul&lt;/A&gt;&lt;P&gt;1.Try with below query:&lt;/P&gt;&lt;PRE&gt;select count(*) from demo where 2gusage is NULL;&lt;/PRE&gt;&lt;P&gt;2.If literal &lt;STRONG&gt;NULL&lt;/STRONG&gt; is in your data for 2gusage column then use the below query:&lt;/P&gt;&lt;PRE&gt;select count(*) from demo where 2gusage = "NULL";&lt;/PRE&gt;</description>
      <pubDate>Sun, 06 Jan 2019 22:42:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-find-the-count-of-NULL-values-in-Hive/m-p/241581#M203384</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-01-06T22:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the count of NULL values in Hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-find-the-count-of-NULL-values-in-Hive/m-p/241582#M203385</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt; . Thankyou so much . Second query worked&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 11:39:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-find-the-count-of-NULL-values-in-Hive/m-p/241582#M203385</guid>
      <dc:creator>basil_paul</dc:creator>
      <dc:date>2019-01-08T11:39:41Z</dc:date>
    </item>
  </channel>
</rss>

