<?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: Please help: how to fetch top 1 value within select statement in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Please-help-how-to-fetch-top-1-value-within-select-statement/m-p/74691#M7408</link>
    <description>I'm sorry, I think I posted this one within the wrong subforum. &lt;BR /&gt;
Admin can delete this thread, I posted a new one in the right section.&lt;BR /&gt;
&lt;BR /&gt;
Thank you.</description>
    <pubDate>Sun, 11 Apr 2010 11:24:57 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-04-11T11:24:57Z</dc:date>
    <item>
      <title>Please help: how to fetch top 1 value within select statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Please-help-how-to-fetch-top-1-value-within-select-statement/m-p/74690#M7407</link>
      <description>What is the equivalent of "top n" within SAS? I'm having trouble with defining the statement pasted below:&lt;BR /&gt;
&lt;BR /&gt;
SELECT A.COLUMN1, A.COLUMN2, A.COLUMN3,&lt;BR /&gt;
(SELECT &lt;B&gt;TOP 1&lt;/B&gt; B.COLUM4 FROM &lt;U&gt;TABLE_B&lt;/U&gt; AS B&lt;BR /&gt;
WHERE A.COLUMN1 = SUBSTR(B.COLUMN1,1,17)) AS XX&lt;BR /&gt;
FROM &lt;U&gt;TABLE_A&lt;/U&gt; AS A&lt;BR /&gt;
&lt;BR /&gt;
Your help would be much appreciated.</description>
      <pubDate>Sun, 11 Apr 2010 10:58:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Please-help-how-to-fetch-top-1-value-within-select-statement/m-p/74690#M7407</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-11T10:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Please help: how to fetch top 1 value within select statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Please-help-how-to-fetch-top-1-value-within-select-statement/m-p/74691#M7408</link>
      <description>I'm sorry, I think I posted this one within the wrong subforum. &lt;BR /&gt;
Admin can delete this thread, I posted a new one in the right section.&lt;BR /&gt;
&lt;BR /&gt;
Thank you.</description>
      <pubDate>Sun, 11 Apr 2010 11:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Please-help-how-to-fetch-top-1-value-within-select-statement/m-p/74691#M7408</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-11T11:24:57Z</dc:date>
    </item>
  </channel>
</rss>

