<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Jim&#039;s Life</title>
	<atom:link href="http://jimlife.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimlife.wordpress.com</link>
	<description>Hi I move my blog to my own domain http://www.jimmod.com/blog</description>
	<lastBuildDate>Mon, 01 Jun 2009 16:41:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comment on Java Application &#8211; Make sure only single/one instance running &#8211; with File Lock and ShutdownHook by jimlife</title>
		<link>http://jimlife.wordpress.com/2008/07/21/java-application-make-sure-only-singleone-instance-running-with-file-lock-ampampampampamp-shutdownhook/#comment-260</link>
		<dc:creator><![CDATA[jimlife]]></dc:creator>
		<pubDate>Mon, 01 Jun 2009 16:41:03 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/07/21/java-application-make-sure-only-singleone-instance-running-with-file-lock-shutdownhook/#comment-260</guid>
		<description><![CDATA[Moving to my new domain : http://jimmod.com/blog/?p=60]]></description>
		<content:encoded><![CDATA[<p>Moving to my new domain : <a href="http://jimmod.com/blog/?p=60" rel="nofollow">http://jimmod.com/blog/?p=60</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Displaying row number (rownum) in MySQL by jimlife</title>
		<link>http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-259</link>
		<dc:creator><![CDATA[jimlife]]></dc:creator>
		<pubDate>Mon, 01 Jun 2009 16:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-259</guid>
		<description><![CDATA[Moving to http://jimmod.com/blog/?p=78
Please leave your comment at new domain.]]></description>
		<content:encoded><![CDATA[<p>Moving to <a href="http://jimmod.com/blog/?p=78" rel="nofollow">http://jimmod.com/blog/?p=78</a><br />
Please leave your comment at new domain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Displaying row number (rownum) in MySQL by jimlife</title>
		<link>http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-258</link>
		<dc:creator><![CDATA[jimlife]]></dc:creator>
		<pubDate>Mon, 01 Jun 2009 12:56:46 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-258</guid>
		<description><![CDATA[@Tom:

Maybe this not exactly what you need, but this concept will help.

SQL : SELECT @rownum:=@rownum+1 &quot;rank&quot;, IF(@scorep.score, @rownum2:=@rownum, @rownum2:=@rownum2) &#039;rank2&#039;, p.name, @score:=p.score &#039;score&#039; FROM player2 p, (SELECT @rownum:=0, @score:=0, @rownum2:=1) r order by score desc 

Result :
 rank 	rank2 	name 	score Ascending
1 	1 	bill 	200
2 	1 	cal 	200
3 	3 	john 	150
4 	4 	tom 	50
5 	4 	jack 	50]]></description>
		<content:encoded><![CDATA[<p>@Tom:</p>
<p>Maybe this not exactly what you need, but this concept will help.</p>
<p>SQL : SELECT @rownum:=@rownum+1 &#8220;rank&#8221;, IF(@scorep.score, @rownum2:=@rownum, @rownum2:=@rownum2) &#8216;rank2&#8242;, p.name, @score:=p.score &#8216;score&#8217; FROM player2 p, (SELECT @rownum:=0, @score:=0, @rownum2:=1) r order by score desc </p>
<p>Result :<br />
 rank 	rank2 	name 	score Ascending<br />
1 	1 	bill 	200<br />
2 	1 	cal 	200<br />
3 	3 	john 	150<br />
4 	4 	tom 	50<br />
5 	4 	jack 	50</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Displaying row number (rownum) in MySQL by skn3</title>
		<link>http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-257</link>
		<dc:creator><![CDATA[skn3]]></dc:creator>
		<pubDate>Mon, 01 Jun 2009 10:47:13 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-257</guid>
		<description><![CDATA[The most sensible method would be to get your scores out of the database and then do the grouping in php.]]></description>
		<content:encoded><![CDATA[<p>The most sensible method would be to get your scores out of the database and then do the grouping in php.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Displaying row number (rownum) in MySQL by Tom</title>
		<link>http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-256</link>
		<dc:creator><![CDATA[Tom]]></dc:creator>
		<pubDate>Sun, 31 May 2009 17:14:13 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-256</guid>
		<description><![CDATA[skn3
Here is a example table

DROP TABLE IF EXISTS `player2`;
CREATE TABLE `player2` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(45) NOT NULL,
  `score` int(11) NOT NULL DEFAULT &#039;0&#039;,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `player2`
--

LOCK TABLES `player2` WRITE;
/*!40000 ALTER TABLE `player2` DISABLE KEYS */;
INSERT INTO `player2` VALUES (1,&#039;bill&#039;,200),(2,&#039;john&#039;,150),(3,&#039;tom&#039;,50),(4,&#039;jack&#039;,50),(5,&#039;cal&#039;,200);
/*!40000 ALTER TABLE `player2` ENABLE KEYS */;
UNLOCK TABLES;

SELECT * FROM player2 p;
id  name   score
1, &#039;bill&#039;, 200
2, &#039;john&#039;, 150
3, &#039;tom&#039;, 50
4, &#039;jack&#039;, 50
5, &#039;cal&#039;, 200

Ranking players
SELECT @rownum:=@rownum+1 ‘rank’,p. `name`, p.`score` FROM player2 p,
(SELECT @rownum:=0) r order by score desc ;

When I run a rank of score I get
rank	name	score
  1   &#039;bill&#039;,  200
  2   &#039;cal&#039;,   200
  3   &#039;john&#039;,  150
  4   &#039;tom&#039;,    50
  5    &#039;jack&#039;,  50

I would like to get the result below
rank	name	score
  1   &#039;bill&#039;,  200
  1   &#039;cal&#039;,   200
  2   &#039;john&#039;,  150
  4   &#039;tom&#039;,    50
  4    &#039;jack&#039;,  50

Thank you
Tom]]></description>
		<content:encoded><![CDATA[<p>skn3<br />
Here is a example table</p>
<p>DROP TABLE IF EXISTS `player2`;<br />
CREATE TABLE `player2` (<br />
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,<br />
  `name` varchar(45) NOT NULL,<br />
  `score` int(11) NOT NULL DEFAULT &#8217;0&#8242;,<br />
  PRIMARY KEY (`id`)<br />
) ENGINE=InnoDB DEFAULT CHARSET=latin1;</p>
<p>&#8211;<br />
&#8211; Dumping data for table `player2`<br />
&#8211;</p>
<p>LOCK TABLES `player2` WRITE;<br />
/*!40000 ALTER TABLE `player2` DISABLE KEYS */;<br />
INSERT INTO `player2` VALUES (1,&#8217;bill&#8217;,200),(2,&#8217;john&#8217;,150),(3,&#8217;tom&#8217;,50),(4,&#8217;jack&#8217;,50),(5,&#8217;cal&#8217;,200);<br />
/*!40000 ALTER TABLE `player2` ENABLE KEYS */;<br />
UNLOCK TABLES;</p>
<p>SELECT * FROM player2 p;<br />
id  name   score<br />
1, &#8216;bill&#8217;, 200<br />
2, &#8216;john&#8217;, 150<br />
3, &#8216;tom&#8217;, 50<br />
4, &#8216;jack&#8217;, 50<br />
5, &#8216;cal&#8217;, 200</p>
<p>Ranking players<br />
SELECT @rownum:=@rownum+1 ‘rank’,p. `name`, p.`score` FROM player2 p,<br />
(SELECT @rownum:=0) r order by score desc ;</p>
<p>When I run a rank of score I get<br />
rank	name	score<br />
  1   &#8216;bill&#8217;,  200<br />
  2   &#8216;cal&#8217;,   200<br />
  3   &#8216;john&#8217;,  150<br />
  4   &#8216;tom&#8217;,    50<br />
  5    &#8216;jack&#8217;,  50</p>
<p>I would like to get the result below<br />
rank	name	score<br />
  1   &#8216;bill&#8217;,  200<br />
  1   &#8216;cal&#8217;,   200<br />
  2   &#8216;john&#8217;,  150<br />
  4   &#8216;tom&#8217;,    50<br />
  4    &#8216;jack&#8217;,  50</p>
<p>Thank you<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Displaying row number (rownum) in MySQL by skn3</title>
		<link>http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-255</link>
		<dc:creator><![CDATA[skn3]]></dc:creator>
		<pubDate>Sun, 31 May 2009 15:19:48 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-255</guid>
		<description><![CDATA[If you would like to select the row number for an individual record (based on an id).. with ordering and other conditions...

(select @row_number:=0); select row_number from (select id,@row_number:=@row_number+1 as row_number from some_table order by some_column asc) sub1 where id = 28]]></description>
		<content:encoded><![CDATA[<p>If you would like to select the row number for an individual record (based on an id).. with ordering and other conditions&#8230;</p>
<p>(select @row_number:=0); select row_number from (select id,@row_number:=@row_number+1 as row_number from some_table order by some_column asc) sub1 where id = 28</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Displaying row number (rownum) in MySQL by Tom</title>
		<link>http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-254</link>
		<dc:creator><![CDATA[Tom]]></dc:creator>
		<pubDate>Thu, 28 May 2009 23:58:02 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-254</guid>
		<description><![CDATA[If the score is the same score, how can you make the rank equivalent to the same rank number?]]></description>
		<content:encoded><![CDATA[<p>If the score is the same score, how can you make the rank equivalent to the same rank number?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Displaying row number (rownum) in MySQL by arif eko</title>
		<link>http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-253</link>
		<dc:creator><![CDATA[arif eko]]></dc:creator>
		<pubDate>Wed, 13 May 2009 18:55:53 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2008/09/09/displaying-row-number-rownum-in-mysql/#comment-253</guid>
		<description><![CDATA[you realy help...]]></description>
		<content:encoded><![CDATA[<p>you realy help&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using svn+ssh with Netbeans 5.5 + Windows by Bnrpmviv</title>
		<link>http://jimlife.wordpress.com/2007/11/06/using-svnssh-with-netbeans-55-windows/#comment-252</link>
		<dc:creator><![CDATA[Bnrpmviv]]></dc:creator>
		<pubDate>Fri, 08 May 2009 10:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2007/11/06/using-svnssh-with-netbeans-55-windows/#comment-252</guid>
		<description><![CDATA[MVTThf comment5 ,]]></description>
		<content:encoded><![CDATA[<p>MVTThf comment5 ,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Learn some PHP and see variable function names (omg) by wzlcm</title>
		<link>http://jimlife.wordpress.com/2007/11/02/learn-some-php-and-see-variable-function-names-omg/#comment-251</link>
		<dc:creator><![CDATA[wzlcm]]></dc:creator>
		<pubDate>Mon, 04 May 2009 11:33:27 +0000</pubDate>
		<guid isPermaLink="false">http://jimlife.wordpress.com/2007/11/02/learn-some-php-and-see-variable-function-names-omg/#comment-251</guid>
		<description><![CDATA[Hi, nice post. I have been thinking about this issue,so thanks for writing. I will certainly be subscribing to your blog.]]></description>
		<content:encoded><![CDATA[<p>Hi, nice post. I have been thinking about this issue,so thanks for writing. I will certainly be subscribing to your blog.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
