<?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: Subquery does not work in Databricks Community version? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/subquery-does-not-work-in-databricks-community-version/m-p/14512#M8984</link>
    <description>&lt;P&gt;those 3 CSV files are uploaded here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/tanthiamhuat/SQLCookbook" target="test_blank"&gt;https://github.com/tanthiamhuat/SQLCookbook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below SQL code works when I work with SQL Server, but does not work in Databricks SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select e.ename, d.loc, &lt;/P&gt;&lt;P&gt; (select eb.received from emp_bonus eb &lt;/P&gt;&lt;P&gt;  where eb.empno=e.empno) as received &lt;/P&gt;&lt;P&gt;from emp e, dept d &lt;/P&gt;&lt;P&gt;where e.deptno=d.deptno &lt;/P&gt;&lt;P&gt;order by 2&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Dec 2022 14:28:39 GMT</pubDate>
    <dc:creator>THIAM_HUATTAN</dc:creator>
    <dc:date>2022-12-26T14:28:39Z</dc:date>
    <item>
      <title>Subquery does not work in Databricks Community version?</title>
      <link>https://community.databricks.com/t5/data-engineering/subquery-does-not-work-in-databricks-community-version/m-p/14510#M8982</link>
      <description>&lt;P&gt;I am testing some SQL code based on the book SQL Cookbook Second Edition, available from &lt;A href="https://downloads.yugabyte.com/marketing-assets/O-Reilly-SQL-Cookbook-2nd-Edition-Final.pdf" target="test_blank"&gt;https://downloads.yugabyte.com/marketing-assets/O-Reilly-SQL-Cookbook-2nd-Edition-Final.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Based on Page 43, I am OK with the left join, as shown here:&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/950iF1486ADACAFF3DB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;However, when I try with subquery below, it fails, why?&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/954i6E871A7B5459B195/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, 26 Dec 2022 12:59:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/subquery-does-not-work-in-databricks-community-version/m-p/14510#M8982</guid>
      <dc:creator>THIAM_HUATTAN</dc:creator>
      <dc:date>2022-12-26T12:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery does not work in Databricks Community version?</title>
      <link>https://community.databricks.com/t5/data-engineering/subquery-does-not-work-in-databricks-community-version/m-p/14511#M8983</link>
      <description>&lt;P&gt;it must have some github link check there or you cans hare your code and data we can help you&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 13:07:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/subquery-does-not-work-in-databricks-community-version/m-p/14511#M8983</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2022-12-26T13:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Subquery does not work in Databricks Community version?</title>
      <link>https://community.databricks.com/t5/data-engineering/subquery-does-not-work-in-databricks-community-version/m-p/14512#M8984</link>
      <description>&lt;P&gt;those 3 CSV files are uploaded here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/tanthiamhuat/SQLCookbook" target="test_blank"&gt;https://github.com/tanthiamhuat/SQLCookbook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below SQL code works when I work with SQL Server, but does not work in Databricks SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select e.ename, d.loc, &lt;/P&gt;&lt;P&gt; (select eb.received from emp_bonus eb &lt;/P&gt;&lt;P&gt;  where eb.empno=e.empno) as received &lt;/P&gt;&lt;P&gt;from emp e, dept d &lt;/P&gt;&lt;P&gt;where e.deptno=d.deptno &lt;/P&gt;&lt;P&gt;order by 2&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 14:28:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/subquery-does-not-work-in-databricks-community-version/m-p/14512#M8984</guid>
      <dc:creator>THIAM_HUATTAN</dc:creator>
      <dc:date>2022-12-26T14:28:39Z</dc:date>
    </item>
  </channel>
</rss>

