 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: sqlrpgle-6</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-6/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-6/</link>
	<description></description>
	<lastBuildDate>Mon, 27 May 2013 00:55:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: The Most-Watched IT Questions: March 6, 2012 - ITKE Community Blog</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-6/#comment-104522</link>
		<dc:creator>The Most-Watched IT Questions: March 6, 2012 - ITKE Community Blog</dc:creator>
		<pubDate>Tue, 06 Mar 2012 17:07:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-104522</guid>
		<description><![CDATA[[...] TomLiotta and Philpl1jb explain how to use a query to find the 10th highest salary in a [...]]]></description>
		<content:encoded><![CDATA[<p>[...] TomLiotta and Philpl1jb explain how to use a query to find the 10th highest salary in a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-6/#comment-103246</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 25 Feb 2012 00:11:44 +0000</pubDate>
		<guid isPermaLink="false">#comment-103246</guid>
		<description><![CDATA[somehow I think that&#039;s going to need a bit of dynamic SQL]]></description>
		<content:encoded><![CDATA[<p>somehow I think that&#8217;s going to need a bit of dynamic SQL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-6/#comment-103244</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 24 Feb 2012 23:22:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-103244</guid>
		<description><![CDATA[...but of course there is a difference between the &quot;10′th highest salary&quot; and the &quot;n&#039;th Highest salary&quot;.

By looking for the &quot;nth&quot; highest, there is a need for control by a variable value. That can make things very different.

Tom]]></description>
		<content:encoded><![CDATA[<p>&#8230;but of course there is a difference between the &#8220;10′th highest salary&#8221; and the &#8220;n&#8217;th Highest salary&#8221;.</p>
<p>By looking for the &#8220;nth&#8221; highest, there is a need for control by a variable value. That can make things very different.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-6/#comment-103243</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Fri, 24 Feb 2012 22:56:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-103243</guid>
		<description><![CDATA[Great Tom]]></description>
		<content:encoded><![CDATA[<p>Great Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-6/#comment-103242</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 24 Feb 2012 22:36:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-103242</guid>
		<description><![CDATA[select min( SALARY ) from (
   select EMPNO, SALARY from EMPLOYEE order by SALARY desc
      fetch first 10 rows only
      ) as t1

Tom]]></description>
		<content:encoded><![CDATA[<p>select min( SALARY ) from (<br />
   select EMPNO, SALARY from EMPLOYEE order by SALARY desc<br />
      fetch first 10 rows only<br />
      ) as t1</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-6/#comment-103225</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Fri, 24 Feb 2012 14:07:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-103225</guid>
		<description><![CDATA[I think you need a cursor  .. here is a rough draft

Declare cursor getIt as 
SELECT SALARY FROM EMPLOYEE order by SALARY DESC

Then open the cursor
Open getIt

Then either fetch with loop
do 10
fetch from getIt into Salary10
enddo]]></description>
		<content:encoded><![CDATA[<p>I think you need a cursor  .. here is a rough draft</p>
<p>Declare cursor getIt as<br />
SELECT SALARY FROM EMPLOYEE order by SALARY DESC</p>
<p>Then open the cursor<br />
Open getIt</p>
<p>Then either fetch with loop<br />
do 10<br />
fetch from getIt into Salary10<br />
enddo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shyedajmal</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-6/#comment-103221</link>
		<dc:creator>shyedajmal</dc:creator>
		<pubDate>Fri, 24 Feb 2012 09:10:39 +0000</pubDate>
		<guid isPermaLink="false">#comment-103221</guid>
		<description><![CDATA[I need 10&#039;th highest salary ..in that case i need query...]]></description>
		<content:encoded><![CDATA[<p>I need 10&#8242;th highest salary ..in that case i need query&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ganeshpavi</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlrpgle-6/#comment-103220</link>
		<dc:creator>ganeshpavi</dc:creator>
		<pubDate>Fri, 24 Feb 2012 07:49:21 +0000</pubDate>
		<guid isPermaLink="false">#comment-103220</guid>
		<description><![CDATA[SELECT MAX(SALARY) FROM EMPLOYEE]]></description>
		<content:encoded><![CDATA[<p>SELECT MAX(SALARY) FROM EMPLOYEE</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/8 queries in 0.012 seconds using memcached
Object Caching 367/368 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-27 02:54:20 -->