<?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>Intrebari generale</title><link>http://sqlserver.ro/forums/16/ShowForum.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>Re: nested select, e posibil?</title><link>http://sqlserver.ro/forums/thread/7400.aspx</link><pubDate>Thu, 16 Jul 2009 12:46:31 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7400</guid><dc:creator>noface</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7400.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7400</wfw:commentRss><description>Multumesc Catalin, a mers impecabil</description></item><item><title>Re: nested select, e posibil?</title><link>http://sqlserver.ro/forums/thread/7399.aspx</link><pubDate>Thu, 16 Jul 2009 11:51:19 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7399</guid><dc:creator>katalyn</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7399.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7399</wfw:commentRss><description>Nu stiu daca inteleg prea bine dar poate vrei ceva de genul:&lt;br /&gt;&lt;br /&gt;SELECT	nrcontract,appid,rezolutie, comentarii, &lt;br /&gt;		( &lt;br /&gt;			SELECT max(c) &lt;br /&gt;			FROM (	&lt;br /&gt;					SELECT dataplata AS c, nrcontract&lt;br /&gt;					FROM history &lt;br /&gt;					UNION ALL&lt;br /&gt;					SELECT lastphonedate AS c, nrcontract&lt;br /&gt;					FROM history&lt;br /&gt;				) u&lt;br /&gt;			WHERE h.nrcontract = u.nrcontract&lt;br /&gt;		)as t2,  &lt;br /&gt;		max(contactno)+1 as MaxC, lastmodifiedby, lastmodifydate &lt;br /&gt;FROM history h&lt;br /&gt;WHERE nrcontract='1' &lt;br /&gt;GROUP BY nrcontract, appid, rezolutie, comentarii, lastmodifiedby, lastmodifydate &lt;br /&gt;&lt;br /&gt;Te rog sa postezi scriptul de creare pentru tabela si sa explici ce anume doresti sa intoarca selectul. Asa doar am presupus cate ceva .........</description></item><item><title>nested select, e posibil?</title><link>http://sqlserver.ro/forums/thread/7398.aspx</link><pubDate>Thu, 16 Jul 2009 11:17:57 GMT</pubDate><guid isPermaLink="false">963f3a18-65dd-4aad-905c-b785cfe1d7c7:7398</guid><dc:creator>noface</dc:creator><slash:comments>0</slash:comments><comments>http://sqlserver.ro/forums/thread/7398.aspx</comments><wfw:commentRss>http://sqlserver.ro/forums/commentrss.aspx?SectionID=16&amp;PostID=7398</wfw:commentRss><description>salut.&lt;br /&gt;as vrea sa imi spuneti dc exista posibilitatea ca, intr-un sg query, sa fac ceva de genul urmator( ce este intre [[[ si ]]] reprezinta dilema mea,nu stiu forma sub care as putea nest-ui acel select ca parte din selectul principal):&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;select &lt;br /&gt;nrcontract,appid,rezolutie,&lt;br /&gt;comentarii, &lt;br /&gt;[[[ SELECT max(c) FROM&lt;br /&gt;  (SELECT dataplata AS c FROM history&lt;br /&gt;   UNION&lt;br /&gt;   SELECT lastphonedate AS c FROM history) as t2 ]]]&lt;br /&gt; &lt;br /&gt;,max(contactno)+1 as MaxC,lastmodifiedby,lastmodifydate from history&lt;br /&gt;where nrcontract='1' group by ....</description></item></channel></rss>