﻿<?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&#8217;da Günün Tüm Saatlerini Listelemek &#8211; SQL Server Eğitimleri</title>
	<atom:link href="https://sqlserveregitimleri.com/etiket/sql-serverda-gunun-tum-saatlerini-listelemek/feed" rel="self" type="application/rss+xml" />
	<link>https://sqlserveregitimleri.com</link>
	<description>SQL Server ile ilgili her şey</description>
	<lastBuildDate>Tue, 31 Jan 2023 05:29:47 +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 Günün Tüm Saatlerini Listelemek</title>
		<link>https://sqlserveregitimleri.com/sql-serverda-gunun-tum-saatlerini-listelemek</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Tue, 31 Jan 2023 05:29:47 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[sql günün saatleri]]></category>
		<category><![CDATA[sql server günün tüm saatleri]]></category>
		<category><![CDATA[SQL Server'da Günün Tüm Saatlerini Listelemek]]></category>
		<guid isPermaLink="false">https://sqlserveregitimleri.com/?p=15101</guid>

					<description><![CDATA[Herkese merhaba, Bu yazıda SQL Server’da günün tüm saatlerini listelemek ile ilgili bilgi vermeye çalışacağım. SQL Server&#8217;da bazı durumlarda günün tüm saatlerini listelemek isteyebilirsiniz. Aşağıdaki...]]></description>
										<content:encoded><![CDATA[<p>Herkese merhaba,</p>
<p>Bu yazıda SQL Server’da günün tüm saatlerini listelemek ile ilgili bilgi vermeye çalışacağım.</p>
<p>SQL Server&#8217;da bazı durumlarda günün tüm saatlerini listelemek isteyebilirsiniz.</p>
<p>Aşağıdaki kodu kullanarak siz de bu işlemi rahatlıkla yapabilirsiniz.</p>
<pre class="line-numbers"><code class="language-sql">DECLARE @t time(1) = '00:00'; --I use 1 as when I use REPLACE later it means that I can "identify" the correct :00 to remove

WITH N
AS (SELECT N
    FROM
    (
        VALUES
            (NULL),
            (NULL),
            (NULL),
            (NULL),
            (NULL)
    ) N (N)
   ),
     Tally
AS (SELECT TOP 24
        ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) - 1 AS I
    FROM N N1,
         N N2
   ),
     Times
AS (SELECT DATEADD(HOUR, I, @t) AS [Time]
    FROM Tally
   )
SELECT T.[Time],
       REPLACE(CONVERT(varchar(12), T.Time, 9), ':00.0', ' ') AS TimeString
FROM Times T
ORDER BY T.[Time] ASC;</code></pre>
<p>Yukarıdaki kodu oluşturup çalıştırınca aşağıdakine benzer bir sonuç göreceksiniz.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone wp-image-15103 size-full" src="https://sqlserveregitimleri.com/wp-content/uploads/2023/01/sql-serverda-gunun-tum-saatlerini-listelemek-1.png" alt="SQL Server'da Günün Tüm Saatlerini Listelemek" width="700" height="539" srcset="https://sqlserveregitimleri.com/wp-content/uploads/2023/01/sql-serverda-gunun-tum-saatlerini-listelemek-1.png 700w, https://sqlserveregitimleri.com/wp-content/uploads/2023/01/sql-serverda-gunun-tum-saatlerini-listelemek-1-315x243.png 315w, https://sqlserveregitimleri.com/wp-content/uploads/2023/01/sql-serverda-gunun-tum-saatlerini-listelemek-1-390x300.png 390w, https://sqlserveregitimleri.com/wp-content/uploads/2023/01/sql-serverda-gunun-tum-saatlerini-listelemek-1-175x135.png 175w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>Görüldüğü üzere günün tüm saatlerini listelemiş olduk.</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"> 184</span><span class='epvc-label'> Kez Okundu</span></div>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
