﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SQL Server Ntile Fonksiyonu &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/sql-server-ntile-fonksiyonu/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Mon, 03 Apr 2023 19:11:52 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>
	<item>
		<title>SQL Server&#8217;da NTILE Fonksiyonu</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-ntile-fonksiyonu</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Tue, 13 Mar 2018 18:19:09 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Ntile Fonksiyonu]]></category>
		<category><![CDATA[NTILE Fonksiyonu Kullanımı]]></category>
		<category><![CDATA[SQL Server Ntile Fonksiyonu]]></category>
		<guid isPermaLink="false">http://sqlserveregitimleri.com/?p=4925</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda size SQL Server&#8217;da Ntile Fonksiyonundan bahsedeceğim. SQL Server&#8217;da NTILE fonksiyonu veri kümesini dışardan girilen parametreye göre gruplayan bir fonksiyondur. SQL Server&#8217;da NTILE...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda size SQL Server&#8217;da Ntile Fonksiyonundan bahsedeceğim.</p>
<p>SQL Server&#8217;da NTILE fonksiyonu veri kümesini dışardan girilen parametreye göre gruplayan bir fonksiyondur.</p>
<p>SQL Server&#8217;da NTILE fonksiyonu, bir sorgudaki satırların gruplandırılmasında ve her grubun ayrı ayrı sıralanmasında kullanılır. Bu fonksiyon, gruplanacak satırların sayısına ve belirtilen sayıda grup oluşturulmasına dayalı olarak çalışır.</p>
<p>Konu ile ilgili örneği aşağıda görmektesiniz. Örneği Northwind veritabanı kullanarak yaptık.</p>
<pre class="line-numbers"><code class="language-sql">SELECT
	NTILE(3) OVER (PARTITION BY CategoryID ORDER BY CategoryID) as NTILEDegeri
   ,CategoryID
FROM dbo.Products</code></pre>
<p>Yukarıdaki kodu çalıştırınca aşağıdakine benzer bir sonuç göreceksiniz.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-15947 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2018/03/sql-serverda-ntile-fonksiyonu-1.jpg" alt="SQL Server'da NTILE Fonksiyonu" width="700" height="551" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2018/03/sql-serverda-ntile-fonksiyonu-1.jpg 700w, https://sqlserveregitimleri.com/wp-content/uploads/2018/03/sql-serverda-ntile-fonksiyonu-1-315x248.jpg 315w, https://sqlserveregitimleri.com/wp-content/uploads/2018/03/sql-serverda-ntile-fonksiyonu-1-381x300.jpg 381w, https://sqlserveregitimleri.com/wp-content/uploads/2018/03/sql-serverda-ntile-fonksiyonu-1-172x135.jpg 172w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Yukarıdaki örnekte NTILE fonksiyonu kullanımını görmektesiniz. Burada categoryid değerine göre gruplama işlemi yaptık. Çıkan sayıyı NTILE fonksiyonu ifadesindeki 3 değerine bölüp gelen sonuca göre birden üçe kadar numaralar verecektir.</p>
<p>Herkese çalışma hayatında ve yaşamında başarılar kolaylıklar.</p>
<div class='epvc-post-count'><span class='epvc-eye'></span>  <span class="epvc-count"> 1.140</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
