﻿<?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’da DISTINCT ve GROUP BY Arasındaki Fark &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/sql-serverda-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="u6664476930210b82e63ef5053c28962f"><style> .u6664476930210b82e63ef5053c28962f , .u6664476930210b82e63ef5053c28962f .postImageUrl , .u6664476930210b82e63ef5053c28962f .centered-text-area { min-height: 80px; position: relative; } .u6664476930210b82e63ef5053c28962f , .u6664476930210b82e63ef5053c28962f:hover , .u6664476930210b82e63ef5053c28962f:visited , .u6664476930210b82e63ef5053c28962f:active { border:0!important; } .u6664476930210b82e63ef5053c28962f .clearfix:after { content: ""; display: table; clear: both; } .u6664476930210b82e63ef5053c28962f { 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); } .u6664476930210b82e63ef5053c28962f:active , .u6664476930210b82e63ef5053c28962f:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #E74C3C; } .u6664476930210b82e63ef5053c28962f .centered-text-area { width: 100%; position: relative; } .u6664476930210b82e63ef5053c28962f .ctaText { border-bottom: 0 solid #fff; color: #FFFFFF; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u6664476930210b82e63ef5053c28962f .postTitle { color: #FFFFFF; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u6664476930210b82e63ef5053c28962f .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; } .u6664476930210b82e63ef5053c28962f:hover .ctaButton { background-color: #C0392B!important; } .u6664476930210b82e63ef5053c28962f .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u6664476930210b82e63ef5053c28962f .u6664476930210b82e63ef5053c28962f-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u6664476930210b82e63ef5053c28962f:after { content: ""; display: block; clear: both; } </style><div class="centered-text-area"><div class="centered-text" style="float: left;"><div class="u6664476930210b82e63ef5053c28962f-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="u89cc29f14fdafb9433ab53c149edc7f2"><style> .u89cc29f14fdafb9433ab53c149edc7f2 , .u89cc29f14fdafb9433ab53c149edc7f2 .postImageUrl , .u89cc29f14fdafb9433ab53c149edc7f2 .centered-text-area { min-height: 80px; position: relative; } .u89cc29f14fdafb9433ab53c149edc7f2 , .u89cc29f14fdafb9433ab53c149edc7f2:hover , .u89cc29f14fdafb9433ab53c149edc7f2:visited , .u89cc29f14fdafb9433ab53c149edc7f2:active { border:0!important; } .u89cc29f14fdafb9433ab53c149edc7f2 .clearfix:after { content: ""; display: table; clear: both; } .u89cc29f14fdafb9433ab53c149edc7f2 { 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); } .u89cc29f14fdafb9433ab53c149edc7f2:active , .u89cc29f14fdafb9433ab53c149edc7f2:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #E74C3C; } .u89cc29f14fdafb9433ab53c149edc7f2 .centered-text-area { width: 100%; position: relative; } .u89cc29f14fdafb9433ab53c149edc7f2 .ctaText { border-bottom: 0 solid #fff; color: #FFFFFF; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u89cc29f14fdafb9433ab53c149edc7f2 .postTitle { color: #FFFFFF; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u89cc29f14fdafb9433ab53c149edc7f2 .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; } .u89cc29f14fdafb9433ab53c149edc7f2:hover .ctaButton { background-color: #C0392B!important; } .u89cc29f14fdafb9433ab53c149edc7f2 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u89cc29f14fdafb9433ab53c149edc7f2 .u89cc29f14fdafb9433ab53c149edc7f2-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u89cc29f14fdafb9433ab53c149edc7f2:after { content: ""; display: block; clear: both; } </style><div class="centered-text-area"><div class="centered-text" style="float: left;"><div class="u89cc29f14fdafb9433ab53c149edc7f2-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.543</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
