<?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: Select query where codn in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-where-codn/m-p/4321767#M1029835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use JOIN statement for different fields in where conditions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT
 likp~vbeln
likp~vstel
likp~lfart
likp~erdat
likp~wadat
likp~kunnr
lips~matnr
lips~lfimg
lips~meins
INTO TABLE itab FROM likp
INNER JOIN lips ON (lips~vbeln = likp~vbeln)
inner join vbuk on (likp~vbeln = vbuk~vbeln)
WHERE likp~erdat IN s_erdat 
and likp~vstel in p_vstel 
and likp~lfart in p_lfart
and vbuk~fkstk ne 'C'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Sep 2008 07:11:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-01T07:11:06Z</dc:date>
    <item>
      <title>Select query where codn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-where-codn/m-p/4321763#M1029831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi in my select query in the where codn i have to give fields from different tables.How to write it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 07:05:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-where-codn/m-p/4321763#M1029831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T07:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select query where codn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-where-codn/m-p/4321764#M1029832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop the tables and use SELECT query in that .&lt;/P&gt;&lt;P&gt;But this will be performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 07:07:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-where-codn/m-p/4321764#M1029832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T07:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select query where codn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-where-codn/m-p/4321765#M1029833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through the following information :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Specifying Two or More Database Tables as a Left Outer Join&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In an inner join, a line from the left-hand database table or join is only included in the selection if there is one or more lines in the right-hand database table that meet the ON condition &amp;lt;cond&amp;gt;. The left outer join, on the other hand, reads lines from the left-hand database table or join even if there is no corresponding line in the right-hand table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT  p~carrid p~connid f~fldate b~bookid
  INTO  CORRESPONDING FIELDS OF TABLE itab
  FROM  ( ( spfli AS p
            INNER JOIN sflight AS f ON p~carrid = f~carrid AND
                                       p~connid = f~connid    )
            INNER JOIN sbook   AS b ON b~carrid = f~carrid AND
                                       b~connid = f~connid AND
                                       b~fldate = f~fldate     )
  WHERE p~cityfrom = 'FRANKFURT' AND
        p~cityto   = 'NEW YORK'  AND
        f~seatsmax &amp;gt; f~seatsocc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 07:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-where-codn/m-p/4321765#M1029833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T07:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select query where codn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-where-codn/m-p/4321766#M1029834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I assume you are writing select quiry for inner join on multiple DB tables. In that case you need to write as some thing as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mara&lt;SUB&gt;matnr in s_matnr AND marc&lt;/SUB&gt;werks eq p_werks.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help,&lt;/P&gt;&lt;P&gt;Rama.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 07:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-where-codn/m-p/4321766#M1029834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T07:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select query where codn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-where-codn/m-p/4321767#M1029835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use JOIN statement for different fields in where conditions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT
 likp~vbeln
likp~vstel
likp~lfart
likp~erdat
likp~wadat
likp~kunnr
lips~matnr
lips~lfimg
lips~meins
INTO TABLE itab FROM likp
INNER JOIN lips ON (lips~vbeln = likp~vbeln)
inner join vbuk on (likp~vbeln = vbuk~vbeln)
WHERE likp~erdat IN s_erdat 
and likp~vstel in p_vstel 
and likp~lfart in p_lfart
and vbuk~fkstk ne 'C'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 07:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-where-codn/m-p/4321767#M1029835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T07:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select query where codn</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-where-codn/m-p/4321768#M1029836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;The solution of your problem is     JOIN     .&lt;/P&gt;&lt;P&gt;u can use join to take field from different table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help you.............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 08:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-where-codn/m-p/4321768#M1029836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T08:01:53Z</dc:date>
    </item>
  </channel>
</rss>

