<?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 exec sql with left join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-with-left-join/m-p/699641#M31741</link>
    <description>&lt;P&gt;dears ,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; i have a statement using inner and left join but the left join not working because it give me all data , it is assumed select all data except the data on left join table ,this is a statement for any one can help me ,thanks.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;SELECT h.StoreId , convert(varchar, h.Time, 112), datepart(hh, h.Time), ( l.Quantity * l.price ) as Sales, l.SalesTax as Tax, h.TransactionNumber , l.AutoID, l.quantity &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; FROM [dbo].[Transaction] as h &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; inner join [dbo].[TransactionEntry] as l &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; on h.TransactionNumber = l.TransactionNumber &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;and h.StoreID = l.StoreId &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; left join [dbo].[SAP_UploadedAutoIDs] as sa &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; on l.autoid = sa.autoid &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; where h.Time = '03-10-2018 00:00:00' &lt;/P&gt;</description>
    <pubDate>Wed, 03 Oct 2018 21:11:33 GMT</pubDate>
    <dc:creator>former_member323084</dc:creator>
    <dc:date>2018-10-03T21:11:33Z</dc:date>
    <item>
      <title>exec sql with left join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-with-left-join/m-p/699641#M31741</link>
      <description>&lt;P&gt;dears ,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; i have a statement using inner and left join but the left join not working because it give me all data , it is assumed select all data except the data on left join table ,this is a statement for any one can help me ,thanks.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;SELECT h.StoreId , convert(varchar, h.Time, 112), datepart(hh, h.Time), ( l.Quantity * l.price ) as Sales, l.SalesTax as Tax, h.TransactionNumber , l.AutoID, l.quantity &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; FROM [dbo].[Transaction] as h &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; inner join [dbo].[TransactionEntry] as l &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; on h.TransactionNumber = l.TransactionNumber &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;and h.StoreID = l.StoreId &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; left join [dbo].[SAP_UploadedAutoIDs] as sa &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; on l.autoid = sa.autoid &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; where h.Time = '03-10-2018 00:00:00' &lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 21:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-with-left-join/m-p/699641#M31741</guid>
      <dc:creator>former_member323084</dc:creator>
      <dc:date>2018-10-03T21:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: exec sql with left join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-with-left-join/m-p/699642#M31742</link>
      <description>&lt;P&gt;If your DB is Oracle, I suggest you ask on an Oracle forum. If it's HANA; then you want the HANA tag. This isn't an ABAP question - it's an SQL question. The fact that you're using ABAP EXEC to run it is kind of irrelevant.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 06:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exec-sql-with-left-join/m-p/699642#M31742</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-10-04T06:19:38Z</dc:date>
    </item>
  </channel>
</rss>

