<?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 stmnt. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020906#M960828</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;the following select statmt is fetching duplicate records. can someone correct it so that it gets only unique records.&lt;/P&gt;&lt;P&gt;i tried using delete adjacent duplicates and others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if poss. someone help me on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select component release extrelease from cvers into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select p&lt;SUB&gt;PATCH p&lt;/SUB&gt;ADDON_ID into table jtab from pat03 as p inner join cvers as c on p&lt;SUB&gt;ADDON_ID = c&lt;/SUB&gt;component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort jtab by ADDON_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM jtab COMPARING patch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2008 10:10:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-24T10:10:04Z</dc:date>
    <item>
      <title>select stmnt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020906#M960828</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;the following select statmt is fetching duplicate records. can someone correct it so that it gets only unique records.&lt;/P&gt;&lt;P&gt;i tried using delete adjacent duplicates and others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if poss. someone help me on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select component release extrelease from cvers into corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select p&lt;SUB&gt;PATCH p&lt;/SUB&gt;ADDON_ID into table jtab from pat03 as p inner join cvers as c on p&lt;SUB&gt;ADDON_ID = c&lt;/SUB&gt;component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort jtab by ADDON_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM jtab COMPARING patch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 10:10:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020906#M960828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T10:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: select stmnt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020907#M960829</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;Doit like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;STRONG&gt;Distinct&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;p~PATCH&lt;/P&gt;&lt;P&gt; p~ADDON_ID &lt;/P&gt;&lt;P&gt;into table jtab &lt;/P&gt;&lt;P&gt;from pat03 as p inner join cvers as c on p~ADDON_ID = c~component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ur better understanding of Select distinct &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this  documentation .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;. SELECT [SINGLE [FOR UPDATE] | DISTINCT] * &lt;/P&gt;&lt;P&gt;2. SELECT [SINGLE [FOR UPDATE] | DISTINCT] s1 ... sn &lt;/P&gt;&lt;P&gt;3. SELECT [SINGLE [FOR UPDATE] | DISTINCT] (itab) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The result of a SELECTstatement is itself a table. The SELECT clause, alongwith the database tables and/or viewsin the FROM clause, specifies the sequence,name, database type, and length of the columns of the result table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use the optional additions SINGLE or DISTINCT to indicate that only certain lines in the result set should bevisible to the program: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SINGLE &lt;/P&gt;&lt;P&gt;The result of the selection should be a single entry. If it is not possible to identify a unique entry, the system usesthe first line of the selection. If you use the FOR UPDATEaddition, the selected entry is protected against parallel updates fromother transactions until the next database commit (seeLUW and databaselock mechanism). If the database system identifies a deadlock, aruntime error occurs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DISTINCT &lt;/P&gt;&lt;P&gt;Duplicate entries in the result set are automaticallydeleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;To ensure that an entry can be uniquely identified, youcan specify all of the fields in the primary keyusing AND expressions in the WHERE condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Performance: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The additions SINGLE FOR UPDATE and DISTINCT bypass theSAP buffering. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The addition DISTINCT forces a sort on the database server.You should therefore only use it if you are really expecting duplicatesin the result set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1 &lt;/P&gt;&lt;P&gt;SELECT [SINGLE [FOR UPDATE] | DISTINCT] * &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The columns of the result set will have exactly the samesequence, names, database type, and length as the fields of thedatabase table or view specifiedin the FROM clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples &lt;/P&gt;&lt;P&gt;Example to display all flights from Frankfurt to NewYork: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WA_SPFLI TYPE SPFLI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM SPFLI INTO WA_SPFLI &lt;/P&gt;&lt;P&gt;         WHERE &lt;/P&gt;&lt;P&gt;           CITYFROM = 'FRANKFURT' AND &lt;/P&gt;&lt;P&gt;           CITYTO   = 'NEW YORK'. &lt;/P&gt;&lt;P&gt;  WRITE: / WA_SPFLI-CARRID, WA_SPFLI-CONNID. &lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example to display the free seats on Lufthansa flight 0400 on02.28.1995: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WA_SFLIGHT TYPE SFLIGHT. &lt;/P&gt;&lt;P&gt;DATA SEATSFREE TYPE I. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * &lt;/P&gt;&lt;P&gt;       FROM SFLIGHT INTO WA_SFLIGHT &lt;/P&gt;&lt;P&gt;       WHERE &lt;/P&gt;&lt;P&gt;         CARRID   = 'LH '      AND &lt;/P&gt;&lt;P&gt;         CONNID   = '0400'     AND &lt;/P&gt;&lt;P&gt;         FLDATE   = '19950228'. &lt;/P&gt;&lt;P&gt;SEATSFREE = WA_SFLIGHT-SEATSMAX - WA_SFLIGHT-SEATSOCC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: / WA_SFLIGHT-CARRID, WA_SFLIGHT-CONNID, &lt;/P&gt;&lt;P&gt;         WA_SFLIGHT-FLDATE, SEATSFREE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;If you specify more than one table in the FROM clause and theINTO clause contains an internaltable or work area instead of a field list, the fields are placed intothe target area from left to right in the order in which they occur inthe tables in the FROM clause. Gaps may occur between the tablework areas for the sake of alignment. For thisreason, you should define the target work area by referring to thetypes of database tables instead of simply listing the fields. For anexample, refer to the documentation of the FROM clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2 &lt;/P&gt;&lt;P&gt;SELECT [SINGLE [FOR UPDATE] | DISTINCT] s1 ... sn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The columns of the result table will have the sameformat as the column references s1... sn. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If si stands for a field f, MAX( f ), MIN( f ), or SUM( f ), the corresponding column in the result setwill have the same ABAP Dictionary format as f. ForCOUNT( f ) or COUNT( * ) the column has the type INT4. For AVG( f ) it has the type FLTP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use aggregate functions with oneor more database fields in the SELECT clause, you must includeall of the database fields that are not used in the aggregate functionin the GROUP BY clause. The result ofthe selection in this case is a table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the SELECT clause only contains aggregate functions, theresult of the selection will be a single entry. In this case,SELECT does not have a corresponding ENDSELECT statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;You can only use this variant for pool andcluster tables if the SELECT clause does not contain anyaggregate functions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a rule, aggregate functions used together with the FOR ALLENTRIES addition do not return the desired values. The result isonly correct if the fields in the WHERE condition that arelinked with AND and tested for equality with the aggregatedfields can identify the table line uniquely. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use a database field with type LCHAR or LRAW inthe SELECT clause, you must specify the corresponding lengthfield immediately before it in the SELECT clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;Performance: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use aggregate functions, the system bypasses theSAP buffer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since not all database systems can store the number of lines in atable in their catalog, and therefore retrieving them istime-consuming, the COUNT( * ) function is not suitablefor testing whether a table contains any entries at all. Instead, youshould use SELECT SINGLE f ... for any table field f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you only want to select certain columns of a database table, use afield list in the SELECT clause or a view. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples &lt;/P&gt;&lt;P&gt;Example to display all destinations served byLufthansa from Frankfurt: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES SPFLI. &lt;/P&gt;&lt;P&gt;DATA TARGET LIKE SPFLI-CITYTO. &lt;/P&gt;&lt;P&gt;SELECT DISTINCT CITYTO &lt;/P&gt;&lt;P&gt;       INTO TARGET        FROM SPFLI &lt;/P&gt;&lt;P&gt;       WHERE &lt;/P&gt;&lt;P&gt;         CARRID   = 'LH '       AND &lt;/P&gt;&lt;P&gt;         CITYFROM = 'FRANKFURT'. &lt;/P&gt;&lt;P&gt;  WRITE: / TARGET. &lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example to display the number of airlines that fly to New York: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES SPFLI. &lt;/P&gt;&lt;P&gt;DATA   COUNT TYPE I. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT COUNT( DISTINCT CARRID ) &lt;/P&gt;&lt;P&gt;       INTO COUNT &lt;/P&gt;&lt;P&gt;       FROM SPFLI &lt;/P&gt;&lt;P&gt;       WHERE &lt;/P&gt;&lt;P&gt;         CITYTO = 'NEW YORK'. &lt;/P&gt;&lt;P&gt;WRITE: / COUNT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example to find the number of passengers, the total luggage weight,and the average weight of the luggage for all Lufthansa flights on02.28.1995: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES SBOOK. &lt;/P&gt;&lt;P&gt;DATA:  COUNT TYPE I, SUM TYPE P DECIMALS 2, AVG TYPE F. &lt;/P&gt;&lt;P&gt;DATA:  CONNID LIKE SBOOK-CONNID. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT CONNID COUNT( * ) SUM( LUGGWEIGHT ) AVG( LUGGWEIGHT ) &lt;/P&gt;&lt;P&gt;       INTO (CONNID, COUNT, SUM, AVG) &lt;/P&gt;&lt;P&gt;       FROM SBOOK &lt;/P&gt;&lt;P&gt;       WHERE &lt;/P&gt;&lt;P&gt;         CARRID   = 'LH '      AND &lt;/P&gt;&lt;P&gt;         FLDATE   = '19950228' &lt;/P&gt;&lt;P&gt;       GROUP BY CONNID. &lt;/P&gt;&lt;P&gt;  WRITE: / CONNID, COUNT, SUM, AVG. &lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3 &lt;/P&gt;&lt;P&gt;SELECT [SINGLE [FOR UPDATE] | DISTINCT] (itab) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Works like SELECT [SINGLE [FOR UPDATE] | DISTINCT]s1 ... sn, if the internal table itab contains the lists1 ... sn as ABAP source code, and works like SELECT[SINGLE [FOR UPDATE] | DISTINCT] *, if itab is empty. Theinternal table itab may only contain one field, which must havetype C and not be longer than 72 characters. You must specifyitab in parentheses. Do not include spaces between theparentheses and the table name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The same restrictions apply to this variant as toSELECT [SINGLE [FOR UPDATE] | DISTINCT] s1 ... sn. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Example to display all Lufthansa routes: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WA_SPFLI    TYPE SPFLI, &lt;/P&gt;&lt;P&gt;     WA_FTAB(72) TYPE C, &lt;/P&gt;&lt;P&gt;     FTAB        LIKE TABLE OF WA_FTAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR FTAB. &lt;/P&gt;&lt;P&gt;FTAB = 'CITYFROM'. APPEND WA_FTAB TO FTAB. &lt;/P&gt;&lt;P&gt;FTAB = 'CITYTO'.   APPEND WA_FTAB TO FTAB. &lt;/P&gt;&lt;P&gt;SELECT DISTINCT (FTAB) &lt;/P&gt;&lt;P&gt;       INTO CORRESPONDING FIELDS OF WA_SPFLI &lt;/P&gt;&lt;P&gt;       FROM SPFLI &lt;/P&gt;&lt;P&gt;       WHERE &lt;/P&gt;&lt;P&gt;         CARRID   = 'LH'. &lt;/P&gt;&lt;P&gt;  WRITE: / WA_SPFLI-CITYFROM, WA_SPFLI-CITYTO. &lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;Snehi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: snehi chouhan on Jun 24, 2008 12:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 10:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020907#M960829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T10:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: select stmnt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020908#M960830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;plz sort jtab by patch&lt;/P&gt;&lt;P&gt;or use COMPARING ADDON_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz Reward, if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 10:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020908#M960830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T10:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: select stmnt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020909#M960831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u need to sort on itab with field, using in delete duplicate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 10:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020909#M960831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T10:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: select stmnt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020910#M960832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As per your above code Delete stmt is going to delete duplicate records from tbale if and only if there is more than one similar record for patch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 10:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020910#M960832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T10:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: select stmnt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020911#M960833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;Please go through the below link you willget the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3990358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3990358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;************&lt;STRONG&gt;Reward point if helpful&lt;/STRONG&gt;****************&amp;amp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 10:15:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020911#M960833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T10:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: select stmnt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020912#M960834</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;select p&lt;SUB&gt;PATCH p&lt;/SUB&gt;ADDON_ID into table jtab from pat03 as p inner join cvers as c on p&lt;SUB&gt;ADDON_ID = c&lt;/SUB&gt;component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort jtab by ADDON_ID PATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DELETE ADJACENT DUPLICATES FROM jtab COMPARING ADDON_ID PATCH.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shibin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 10:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020912#M960834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T10:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: select stmnt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020913#M960835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly if required sort the  table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Distinct is used when , for example you have a table with multiple entries corresponding to one particular field,suppose external id..&lt;/P&gt;&lt;P&gt;so distinct used in a select query vil show the external id only once n not mulptiple times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT  DISTINCT &amp;lt;fields&amp;gt; ........&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Revert back if any further queries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narin Nandivada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 10:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020913#M960835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T10:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: select stmnt.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020914#M960836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;done&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 11:53:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmnt/m-p/4020914#M960836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T11:53:33Z</dc:date>
    </item>
  </channel>
</rss>

