<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwizguide.com/rss_namespace/">
 <channel>
  <title>Datakent Forum : Common Table Expressions (CTEs)</title>
  <link>http://forum.datakent.com/</link>
  <description>XML içerik linki; Datakent Forum : Microsoft SQL Server : Common Table Expressions (CTEs)</description>
  <pubDate>Sun, 19 Apr 2026 22:32:04 +0000</pubDate>
  <lastBuildDate>Sat, 26 Mar 2011 14:23:41 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.54</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.datakent.com/RSS_post_feed.asp?TID=2065</WebWizForums:feedURL>
  <image>
   <title>Datakent Forum</title>
   <url>http://forum.datakent.com/forum_images/datakent.com_forums.png</url>
   <link>http://forum.datakent.com/</link>
  </image>
  <item>
   <title>Common Table Expressions (CTEs) : Common Table Expressions (CTEs) sql...</title>
   <link>http://forum.datakent.com/forum_posts.asp?TID=2065&amp;PID=4530#4530</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="http://forum.datakent.com/member_profile.asp?PF=1" rel="nofollow">murat turan</a><br /><strong>Konu:</strong> 2065<br /><strong>Gönderim Zamanı:</strong> 26.Mart.2011 Saat 14:23<br /><br />Common Table Expressions (CTEs)<P>sql server 2005 ile birlikte gelen bir yeniliktir<BR>amaç gecici bir tablo sonucu tutmak ve bunu bir tabloymuş gibi geriye döndürmek</P><DIV><strong>Şablon:</strong></DIV><DIV>WITH &lt;CTE name&gt; &#091; ( &lt;column name&gt; &#091;,...n&#093; ) &#093;<BR>AS<BR>( &lt;query returning tabular data&gt; )<BR>&lt;statement that will make use of the CTE&gt;</DIV><P><strong>Örnek:</strong><BR>&nbsp;<strong>WITH</strong> <strong>shie</strong> (id, itemcode, itemval,ssuresikd, saklamakd, rcx)<BR>&nbsp;AS<BR>&nbsp;(<BR>&nbsp;&nbsp;SELECT id, itemcode , itemval, ssuresikd, saklamakd, (<BR>&nbsp;&nbsp;&nbsp;SELECT COUNT(id) as rcy from dbo.Klasorler AS k2<BR>&nbsp;&nbsp;&nbsp;WHERE&nbsp; parentId = k1.id<BR>&nbsp;&nbsp;) AS rcx FROM dbo.Klasorler AS k1<BR>&nbsp;&nbsp;WHERE (itemcode != '99') AND (parentId IS NOT NULL) AND (itemval like @itemval)<BR>&nbsp;)</P><DIV>&nbsp;-- sonuç üzerinde tekrar şartlı sorgu çalıştırılabilir veya tüm satırlar geriye döndürülebilir</DIV><DIV>&nbsp;<strong>SELECT</strong> id, itemcode, itemval, ssuresikd, saklamakd <strong>FROM</strong> <strong>shie</strong><BR>&nbsp;<strong>WHERE</strong> (rcx = 0);</DIV><P>&nbsp;</P><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 26 Mar 2011 14:23:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.datakent.com/forum_posts.asp?TID=2065&amp;PID=4530#4530</guid>
  </item> 
 </channel>
</rss>