<?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 SELECT * with JOIN statment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join-statment/m-p/6331714#M1396150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I'm joining two tables with SQL, the problem I want to write * from writing all the fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT Z&lt;SUB&gt;* T&lt;/SUB&gt;* FROM table1 AS  Z INNER JOIN Tbale2 AS T ON Z&lt;SUB&gt;x = T&lt;/SUB&gt;y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I write this ?? without getting error for Z&lt;SUB&gt;* and T&lt;/SUB&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2009 11:37:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-02T11:37:55Z</dc:date>
    <item>
      <title>SELECT * with JOIN statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join-statment/m-p/6331714#M1396150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I'm joining two tables with SQL, the problem I want to write * from writing all the fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT Z&lt;SUB&gt;* T&lt;/SUB&gt;* FROM table1 AS  Z INNER JOIN Tbale2 AS T ON Z&lt;SUB&gt;x = T&lt;/SUB&gt;y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I write this ?? without getting error for Z&lt;SUB&gt;* and T&lt;/SUB&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 11:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join-statment/m-p/6331714#M1396150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-02T11:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT * with JOIN statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join-statment/m-p/6331715#M1396151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just write SELECT * FROM ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 11:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join-statment/m-p/6331715#M1396151</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-11-02T11:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT * with JOIN statment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join-statment/m-p/6331716#M1396152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use all fields of both tables use it as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF ty_mat,&lt;/P&gt;&lt;P&gt;      include TYPE mara.&lt;/P&gt;&lt;P&gt;      INCLUDE TYPE makt.&lt;/P&gt;&lt;P&gt;types:END OF  ty_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:t_mat type standard table of ty_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use select * from table1 and table 2 as your doing now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively u can use this:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM X INTO TABLE T_TABLE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM Y INTO TABLE T_TABLE2&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN T_tABLE1&lt;/P&gt;&lt;P&gt;WHERE p = T_TABLE1-Q.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Subhashini K on Nov 2, 2009 5:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 11:49:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-join-statment/m-p/6331716#M1396152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-02T11:49:14Z</dc:date>
    </item>
  </channel>
</rss>

