﻿<?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>DISTINCT ve GROUP BY Arasındaki Fark &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/distinct-ve-group-by-arasindaki-fark/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Sun, 25 Dec 2022 14:20:16 +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’da DISTINCT ve GROUP BY Arasındaki Fark</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-distinct-ve-group-by-arasindaki-fark</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Sun, 25 Feb 2018 13:09:04 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[DISTINCT ve GROUP BY Arasındaki Fark]]></category>
		<category><![CDATA[SQL Server’da DISTINCT ve GROUP BY]]></category>
		<category><![CDATA[SQL Server’da DISTINCT ve GROUP BY Arasındaki Fark]]></category>
		<guid isPermaLink="false">http://sqlserveregitimleri.com/?p=4676</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server’da Distinct ve Group By ifadeleri arasındaki farkları inceleyeceğiz. Konuyu daha iyi anlamak adına ilk önce aşağıdaki makaleleri okuyalım. Topluluk...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server’da Distinct ve Group By ifadeleri arasındaki farkları inceleyeceğiz.</p>
<p>Konuyu daha iyi anlamak adına ilk önce aşağıdaki makaleleri okuyalım.</p>
<div style="clear:both; margin-top:0em; margin-bottom:1em;"><a href="https://sqlserveregitimleri.com/sql-serverda-group-by-kullanimi" target="_blank" rel="dofollow" class="uf5f475ce3ee38f85853fbd789aba3d34"><style> .uf5f475ce3ee38f85853fbd789aba3d34 , .uf5f475ce3ee38f85853fbd789aba3d34 .postImageUrl , .uf5f475ce3ee38f85853fbd789aba3d34 .centered-text-area { min-height: 80px; position: relative; } .uf5f475ce3ee38f85853fbd789aba3d34 , .uf5f475ce3ee38f85853fbd789aba3d34:hover , .uf5f475ce3ee38f85853fbd789aba3d34:visited , .uf5f475ce3ee38f85853fbd789aba3d34:active { border:0!important; } .uf5f475ce3ee38f85853fbd789aba3d34 .clearfix:after { content: ""; display: table; clear: both; } .uf5f475ce3ee38f85853fbd789aba3d34 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #3498DB; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .uf5f475ce3ee38f85853fbd789aba3d34:active , .uf5f475ce3ee38f85853fbd789aba3d34:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #E74C3C; } .uf5f475ce3ee38f85853fbd789aba3d34 .centered-text-area { width: 100%; position: relative; } .uf5f475ce3ee38f85853fbd789aba3d34 .ctaText { border-bottom: 0 solid #fff; color: #FFFFFF; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .uf5f475ce3ee38f85853fbd789aba3d34 .postTitle { color: #FFFFFF; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .uf5f475ce3ee38f85853fbd789aba3d34 .ctaButton { background-color: #2980B9!important; color: #FFFFFF; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://sqlserveregitimleri.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .uf5f475ce3ee38f85853fbd789aba3d34:hover .ctaButton { background-color: #C0392B!important; } .uf5f475ce3ee38f85853fbd789aba3d34 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .uf5f475ce3ee38f85853fbd789aba3d34 .uf5f475ce3ee38f85853fbd789aba3d34-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .uf5f475ce3ee38f85853fbd789aba3d34:after { content: ""; display: block; clear: both; } </style><div class="centered-text-area"><div class="centered-text" style="float: left;"><div class="uf5f475ce3ee38f85853fbd789aba3d34-content"><span class="ctaText"></span>&nbsp; <span class="postTitle">SQL Server'da Group By Kullanımı</span></div></div></div><div class="ctaButton"></div></a></div>
<div style="clear:both; margin-top:0em; margin-bottom:1em;"><a href="https://sqlserveregitimleri.com/sql-serverda-distinct-kullanimi" target="_blank" rel="dofollow" class="u6c4d15dd8a0a88b1915cac6c3171342b"><style> .u6c4d15dd8a0a88b1915cac6c3171342b , .u6c4d15dd8a0a88b1915cac6c3171342b .postImageUrl , .u6c4d15dd8a0a88b1915cac6c3171342b .centered-text-area { min-height: 80px; position: relative; } .u6c4d15dd8a0a88b1915cac6c3171342b , .u6c4d15dd8a0a88b1915cac6c3171342b:hover , .u6c4d15dd8a0a88b1915cac6c3171342b:visited , .u6c4d15dd8a0a88b1915cac6c3171342b:active { border:0!important; } .u6c4d15dd8a0a88b1915cac6c3171342b .clearfix:after { content: ""; display: table; clear: both; } .u6c4d15dd8a0a88b1915cac6c3171342b { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #3498DB; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u6c4d15dd8a0a88b1915cac6c3171342b:active , .u6c4d15dd8a0a88b1915cac6c3171342b:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #E74C3C; } .u6c4d15dd8a0a88b1915cac6c3171342b .centered-text-area { width: 100%; position: relative; } .u6c4d15dd8a0a88b1915cac6c3171342b .ctaText { border-bottom: 0 solid #fff; color: #FFFFFF; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u6c4d15dd8a0a88b1915cac6c3171342b .postTitle { color: #FFFFFF; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u6c4d15dd8a0a88b1915cac6c3171342b .ctaButton { background-color: #2980B9!important; color: #FFFFFF; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://sqlserveregitimleri.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u6c4d15dd8a0a88b1915cac6c3171342b:hover .ctaButton { background-color: #C0392B!important; } .u6c4d15dd8a0a88b1915cac6c3171342b .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u6c4d15dd8a0a88b1915cac6c3171342b .u6c4d15dd8a0a88b1915cac6c3171342b-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u6c4d15dd8a0a88b1915cac6c3171342b:after { content: ""; display: block; clear: both; } </style><div class="centered-text-area"><div class="centered-text" style="float: left;"><div class="u6c4d15dd8a0a88b1915cac6c3171342b-content"><span class="ctaText"></span>&nbsp; <span class="postTitle">SQL Server'da Distinct Kullanımı</span></div></div></div><div class="ctaButton"></div></a></div>
<p>Topluluk ifadeleri ile ilgili işlemlerde <strong>(Sum, Max, Min, Count, Avg)</strong> Group By kullanılır.</p>
<p>Eğer gelen sorguda tekrarlanan veri birden fazla ise Distinct kullanılır.</p>
<p>Kısaca ikisinin de kendine göre kullanım alanları vardır.</p>
<p>Eğer alt sorgu yani subquery kullanıyorsanız performansa uygun bir şekilde kod yazmanız yararınıza olacaktır.</p>
<p>Örnek kullanımları Northwind veritabanını kullanarak inceleyelim.</p>
<p><strong>Distinct Kullanımı</strong></p>
<pre class="line-numbers"><code class="language-sql">SELECT DISTINCT
       CategoryID
FROM dbo.Products;</code></pre>
<p><strong>Group By Kullanımı</strong></p>
<pre class="line-numbers"><code class="language-sql">SELECT DISTINCT
       SUM(UnitsInStock)
FROM dbo.Products
GROUP BY CategoryID;</code></pre>
<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.540</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
