<?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: Selecting max value in character string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-max-value-in-character-string/m-p/8258764#M1631868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use aggregate functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select max(columname) from ztable into v_variable&lt;/P&gt;&lt;P&gt;group by (all keys).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All Keys - all primary keys should be listed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Benedict&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2011 10:12:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-21T10:12:16Z</dc:date>
    <item>
      <title>Selecting max value in character string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-max-value-in-character-string/m-p/8258763#M1631867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I  am  fetching  data from   ztable   .  In this table I have to select  GATEEXIT_NO  which is dat type charecter . For this I have both numeric values and character value's eixts in table   . In this I have to select max value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex  : GATEEIXT_NO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        NOD-1233&lt;/P&gt;&lt;P&gt;        NOD-4566&lt;/P&gt;&lt;P&gt;        9011091000         &lt;/P&gt;&lt;P&gt;        9011091002  &lt;/P&gt;&lt;P&gt; If I write select query I have to select   max value 9011091002  only . will any body please give solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 10:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-max-value-in-character-string/m-p/8258763#M1631867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T10:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting max value in character string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-max-value-in-character-string/m-p/8258764#M1631868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use aggregate functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select max(columname) from ztable into v_variable&lt;/P&gt;&lt;P&gt;group by (all keys).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All Keys - all primary keys should be listed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Benedict&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 10:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-max-value-in-character-string/m-p/8258764#M1631868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T10:12:16Z</dc:date>
    </item>
  </channel>
</rss>

