<?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: Question in open SQL for Ztable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-in-open-sql-for-ztable/m-p/3386745#M813172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The order in which data is returned is not guaranteed uless you specify an order. Try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM zxxx
  UP TO 1 ROWS
  WHERE type = '01'
  ORDER BY zz_field DESCENDING.

ENDSELECT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2008 17:10:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-19T17:10:38Z</dc:date>
    <item>
      <title>Question in open SQL for Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-in-open-sql-for-ztable/m-p/3386744#M813171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;      I have a Z table and there is SQL that get's the latest record from the Ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM ZXXX WHERE TYPE = '01'. ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example there is a column called template in this Z table whose 1st record has value 100001 and last record has value 100029. Yesterday the SQL above was getting the latest record for example 100029 and today I run the same SQL and it is not getting the latest record!! It get's some other record from the middle for example with value 10001! Is there any reason why this behavior happens? Any suggestions please..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Mithun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 16:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-in-open-sql-for-ztable/m-p/3386744#M813171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T16:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Question in open SQL for Ztable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-in-open-sql-for-ztable/m-p/3386745#M813172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The order in which data is returned is not guaranteed uless you specify an order. Try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM zxxx
  UP TO 1 ROWS
  WHERE type = '01'
  ORDER BY zz_field DESCENDING.

ENDSELECT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 17:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-in-open-sql-for-ztable/m-p/3386745#M813172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T17:10:38Z</dc:date>
    </item>
  </channel>
</rss>

