<?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>topic Re: Best way to get one row back per ID? Select Distinct is not working. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/best-way-to-get-one-row-back-per-id-select-distinct-is-not/m-p/15867#M10140</link>
    <description>&lt;P&gt;That helped. I was using too many columns in the &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GROUP BY&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Once I removed all columns except for jobsubmissionid, it returned 1 row.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 13:19:26 GMT</pubDate>
    <dc:creator>dshao</dc:creator>
    <dc:date>2022-12-20T13:19:26Z</dc:date>
    <item>
      <title>Best way to get one row back per ID? Select Distinct is not working.</title>
      <link>https://community.databricks.com/t5/data-engineering/best-way-to-get-one-row-back-per-id-select-distinct-is-not/m-p/15865#M10138</link>
      <description>&lt;P&gt;Here is the current output for my select statement. I would like it to return one row for this jobsubmissionid, where it selects only the non-zero value from each of the rows. I tried using &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT DISTINCT jobsubmissionid&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but it still returned 5 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/966i3121A739D4427F04/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 21:18:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/best-way-to-get-one-row-back-per-id-select-distinct-is-not/m-p/15865#M10138</guid>
      <dc:creator>dshao</dc:creator>
      <dc:date>2022-12-19T21:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to get one row back per ID? Select Distinct is not working.</title>
      <link>https://community.databricks.com/t5/data-engineering/best-way-to-get-one-row-back-per-id-select-distinct-is-not/m-p/15866#M10139</link>
      <description>&lt;P&gt;Is that the complete query you are using. I'm guessing that you are using select distinct * from table_name. &lt;/P&gt;&lt;P&gt;If you wanted a individual column distinct value you have to apply a filter condition or aggregate the data accordingly. &lt;/P&gt;&lt;P&gt;Anyways, a complete pic with the query would help to check out what you are doing..&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 12:25:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/best-way-to-get-one-row-back-per-id-select-distinct-is-not/m-p/15866#M10139</guid>
      <dc:creator>UmaMahesh1</dc:creator>
      <dc:date>2022-12-20T12:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to get one row back per ID? Select Distinct is not working.</title>
      <link>https://community.databricks.com/t5/data-engineering/best-way-to-get-one-row-back-per-id-select-distinct-is-not/m-p/15867#M10140</link>
      <description>&lt;P&gt;That helped. I was using too many columns in the &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GROUP BY&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Once I removed all columns except for jobsubmissionid, it returned 1 row.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 13:19:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/best-way-to-get-one-row-back-per-id-select-distinct-is-not/m-p/15867#M10140</guid>
      <dc:creator>dshao</dc:creator>
      <dc:date>2022-12-20T13:19:26Z</dc:date>
    </item>
  </channel>
</rss>

