<?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: Sweet SQL queries for Amarok</title>
	<atom:link href="http://www.ralree.com/2007/05/11/sweet-sql-queries-for-amarok/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ralree.com/2007/05/11/sweet-sql-queries-for-amarok/</link>
	<description>Malicious enjoyment derived from observing someone else's misfortune</description>
	<lastBuildDate>Fri, 12 Feb 2010 23:24:33 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jonas</title>
		<link>http://www.ralree.com/2007/05/11/sweet-sql-queries-for-amarok/comment-page-1/#comment-799</link>
		<dc:creator>jonas</dc:creator>
		<pubDate>Fri, 11 May 2007 08:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/sweet-sql-queries-for-amarok#comment-799</guid>
		<description>nice query. but if s.rating is 0 it means that you haven&#039;t rated the title, thus such titles should be excluded from the query.

&lt;code&gt;
SELECT a.name, avg(s.rating) avg, COUNT(s.rating) count FROM tags t, artist a, statistics s WHERE a.id=t.artist AND s.rating!=0 AND t.url=s.url GROUP BY a.name HAVING count &gt; 10 ORDER BY avg DESC;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>nice query. but if s.rating is 0 it means that you haven&#8217;t rated the title, thus such titles should be excluded from the query.</p>
<p>&lt;code&gt;<br />
SELECT a.name, avg(s.rating) avg, COUNT(s.rating) count FROM tags t, artist a, statistics s WHERE a.id=t.artist AND s.rating!=0 AND t.url=s.url GROUP BY a.name HAVING count &gt; 10 ORDER BY avg DESC;&lt;/code&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.412 seconds -->
