<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/'>
<channel>
  <title>Comentários do blog SAPO developers blog ao post Problemas de SQL</title>
  <link>http://developers.blogs.sapo.pt</link>
  <description>SAPO developers blog - SAPO Blogs</description>
  <lastBuildDate>Wed, 19 May 2010 09:16:31 GMT</lastBuildDate>
  <generator>LiveJournal / SAPO Blogs</generator>
<item>
  <guid isPermaLink='true'>http://developers.blogs.sapo.pt/26566.html?view=41926#t41926</guid>
  <pubDate>Wed, 19 May 2010 09:16:31 GMT</pubDate>
  <author>Manu</author>  <link>http://developers.blogs.sapo.pt/26566.html?view=41926#t41926</link>
  <title>Comentário a Problemas de SQL</title>
  <description>Tinha tido um problema similar e um colega ajudou-me.&lt;br /&gt;Agora já não me lembra e como fiz.&lt;br /&gt;&lt;a href=&quot;http://www.blog-football.net/&quot; target=&quot;_blank&quot;&gt;Manu&lt;/a&gt;</description>
</item>
<item>
  <guid isPermaLink='true'>http://developers.blogs.sapo.pt/26566.html?view=33734#t33734</guid>
  <pubDate>Mon, 08 Feb 2010 13:50:21 GMT</pubDate>
  <author>mwm</author>  <link>http://developers.blogs.sapo.pt/26566.html?view=33734#t33734</link>
  <title>Comentário a Problemas de SQL</title>
  <description>A tua query 3 está mal.&lt;br /&gt;&lt;br /&gt;select nome,count(valor) from guito where count(valor) &amp;gt; 1 group by nome&lt;br /&gt;&lt;br /&gt;deveria ser&lt;br /&gt;&lt;br /&gt;select nome, count(valor) from guito group by nome having count(nome) &amp;gt; 1</description>
</item>
<item>
  <guid isPermaLink='true'>http://developers.blogs.sapo.pt/26566.html?view=33478#t33478</guid>
  <pubDate>Mon, 08 Feb 2010 11:56:49 GMT</pubDate>
  <author>Paulo Costa</author>  <link>http://developers.blogs.sapo.pt/26566.html?view=33478#t33478</link>
  <title>Comentário a Problemas de SQL</title>
  <description>As soluções são seguintes:&lt;br /&gt;&lt;br /&gt;1. SELECT SUM(valor) FROM tabela&lt;br /&gt;&lt;br /&gt;2. SELECT nome,sum(valor) FROM tabela GROUP BY nome&lt;br /&gt;&lt;br /&gt;3. SELECT nome FROM tabela GROUP BY nome HAVING count(nome) &amp;gt; 1&lt;br /&gt;&lt;br /&gt;4. SELECT GROUP_CONCAT(DISTINCT nome) FROM tabela</description>
</item>
<item>
  <guid isPermaLink='true'>http://developers.blogs.sapo.pt/26566.html?view=33222#t33222</guid>
  <pubDate>Mon, 08 Feb 2010 11:13:12 GMT</pubDate>
  <author>vaca anonima</author>  <link>http://developers.blogs.sapo.pt/26566.html?view=33222#t33222</link>
  <title>Comentário a Problemas de SQL</title>
  <description>1) select sum(valor) from guito;&lt;br /&gt;2) select nome,sum(valor) from guito group by nome;&lt;br /&gt;3) select nome,count(valor) from guito where count(valor) &amp;gt; 1 group by nome&lt;br /&gt;4) ?? qual é o dialecto</description>
</item>
</channel>
</rss>
