<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlserver.ro/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Diverse</title><link>http://sqlserver.ro/forums/27/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: SELECT</title><link>http://sqlserver.ro/forums/thread/7144.aspx</link><pubDate>Tue, 12 May 2009 12:28:00 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7144</guid><dc:creator>ungureandavid</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7144.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=27&amp;PostID=7144</wfw:commentRss><description>Multumesc. A functionat&lt;br&gt;</description></item><item><title>Re: SELECT</title><link>http://sqlserver.ro/forums/thread/7143.aspx</link><pubDate>Tue, 12 May 2009 12:23:56 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7143</guid><dc:creator>ignatandrei</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7143.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=27&amp;PostID=7143</wfw:commentRss><description>select centrucost, coalesce(sum(nrbonuri),0)&lt;br&gt;from  BONURI...ang&lt;br&gt;group by centrucost&lt;br&gt;&lt;br&gt;Acum de ce e gresit ce faceai tu&lt;br&gt;(select distinct(centrucost) from bonuri...ang) iti intoarce mai mult de 1 valoare - si nu poate fi egal un scalar(centrucost) cu o tabela ...&lt;br&gt;&lt;br&gt;</description></item><item><title>SELECT</title><link>http://sqlserver.ro/forums/thread/7142.aspx</link><pubDate>Tue, 12 May 2009 12:06:08 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7142</guid><dc:creator>ungureandavid</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7142.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=27&amp;PostID=7142</wfw:commentRss><description>Salutare tuturor!&lt;br&gt;&lt;br&gt;Poate ma poate ajuta cinva!&lt;br&gt;&lt;br&gt;Am nevoie de o interogare mai coplicata. Am o tabela cu urmatoarele campuri:&lt;br&gt;&lt;br&gt;id, centrucost, nrbonuri&lt;br&gt;&lt;br&gt;Vreau sa aflu suma de nrbonuri pe sectii&lt;br&gt;&lt;br&gt;Eu am incercat ceva de genu&lt;br&gt;&lt;br&gt;select sum(nrbonuri) from BONURI...ang where centrucost = (select distinct(centrucost) from bonuri...ang)&lt;br&gt;&lt;br&gt;si primesc err asta&lt;br&gt;&lt;br&gt;&amp;nbsp;Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, &amp;lt;, &amp;lt;= , &amp;gt;, &amp;gt;= or when the subquery is used as an expression.&lt;br&gt;&lt;br&gt;Cred ca este o eroare la clauza where&lt;br&gt;&lt;br&gt;Multumesc&lt;br&gt;</description></item></channel></rss>