<?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>T-SQL</title><link>http://sqlserver.ro/forums/15/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: Ajutor interogare</title><link>http://sqlserver.ro/forums/thread/9498.aspx</link><pubDate>Mon, 17 Dec 2012 18:41:13 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9498</guid><dc:creator>ThePuiu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9498.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=9498</wfw:commentRss><description>multumesc, mi-a fost de un real ajutor!</description></item><item><title>Re: Ajutor interogare</title><link>http://sqlserver.ro/forums/thread/9497.aspx</link><pubDate>Mon, 17 Dec 2012 05:31:46 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9497</guid><dc:creator>rsocol</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9497.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=9497</wfw:commentRss><description>Dacă folosești SQL Server 2012, vezi: &lt;a href="http://ole.michelsen.dk/blog/calculate-a-running-total-in-sql-server-2012/"&gt;http://ole.michelsen.dk/blog/calculate-a-running-total-in-sql-server-2012/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Altfel, vezi: &lt;a href="http://sqlserver.ro/forums/thread/7011.aspx"&gt;http://sqlserver.ro/forums/thread/7011.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Răzvan</description></item><item><title>Ajutor interogare</title><link>http://sqlserver.ro/forums/thread/9496.aspx</link><pubDate>Sun, 16 Dec 2012 20:31:48 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:9496</guid><dc:creator>ThePuiu</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/9496.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=15&amp;PostID=9496</wfw:commentRss><description>Salut, nu stiu cum se numeste urmatoarea chestie ca as fi cautat pe net o rezolvare... Am un query care trebuie sa returneaza urmatoarele:&lt;br /&gt;TIP,INTRARE,IESIRE,SOLD&lt;br /&gt;0, 100,0, 100&lt;br /&gt;1, 0, 10, 90&lt;br /&gt;1,0,5,85&lt;br /&gt;cum trebuie sa generez coloana SOLD pt a obtine rezultatul ca in exemplu? (coloanele TIP,INTRARE si IESIRE exista ca rezultat al unui UNION si rezultatul incepe intotdeauna cu un record de tip 0 si un nr variabil de recorduri de tip 1). Multumesc!</description></item></channel></rss>