<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: SQL Puzzle: Get the last three Records of a table	</title>
	<atom:link href="https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Tue, 09 Apr 2019 18:28:42 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>
		By: HIC		</title>
		<link>https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/#comment-6962</link>

		<dc:creator><![CDATA[HIC]]></dc:creator>
		<pubDate>Tue, 09 Apr 2019 18:28:42 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7661#comment-6962</guid>

					<description><![CDATA[select *
from (
select * from tbl_TestTop order by id desc)
where rownum &#060;= 3
order by id;]]></description>
			<content:encoded><![CDATA[<p>select *<br />
from (<br />
select * from tbl_TestTop order by id desc)<br />
where rownum &lt;= 3<br />
order by id;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: MB		</title>
		<link>https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/#comment-6754</link>

		<dc:creator><![CDATA[MB]]></dc:creator>
		<pubDate>Thu, 11 Oct 2018 13:44:04 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7661#comment-6754</guid>

					<description><![CDATA[Answers relying on ID being correlated to the position of a record are probably bad practice given that there are easy general solutions available.]]></description>
			<content:encoded><![CDATA[<p>Answers relying on ID being correlated to the position of a record are probably bad practice given that there are easy general solutions available.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Praful Raut		</title>
		<link>https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/#comment-6747</link>

		<dc:creator><![CDATA[Praful Raut]]></dc:creator>
		<pubDate>Wed, 10 Oct 2018 05:42:47 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7661#comment-6747</guid>

					<description><![CDATA[SELECT ID, NAME FROM #TBL_TESTTABLE WHERE ID &#062;=7]]></description>
			<content:encoded><![CDATA[<p>SELECT ID, NAME FROM #TBL_TESTTABLE WHERE ID &gt;=7</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ganag		</title>
		<link>https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/#comment-6738</link>

		<dc:creator><![CDATA[ganag]]></dc:creator>
		<pubDate>Thu, 04 Oct 2018 12:46:56 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7661#comment-6738</guid>

					<description><![CDATA[;with cte as (
select  top 3 * from tbl_TestTable order by 1 desc
) 
select * from cte order by 1 asc]]></description>
			<content:encoded><![CDATA[<p>;with cte as (<br />
select  top 3 * from tbl_TestTable order by 1 desc<br />
)<br />
select * from cte order by 1 asc</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: sudesh kumar		</title>
		<link>https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/#comment-6725</link>

		<dc:creator><![CDATA[sudesh kumar]]></dc:creator>
		<pubDate>Fri, 28 Sep 2018 13:19:55 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7661#comment-6725</guid>

					<description><![CDATA[select * from (
select top 3 * from tbl_TestTable order by 1 desc
) s order by 1]]></description>
			<content:encoded><![CDATA[<p>select * from (<br />
select top 3 * from tbl_TestTable order by 1 desc<br />
) s order by 1</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sunil Jadhav		</title>
		<link>https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/#comment-6718</link>

		<dc:creator><![CDATA[Sunil Jadhav]]></dc:creator>
		<pubDate>Tue, 25 Sep 2018 12:02:04 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7661#comment-6718</guid>

					<description><![CDATA[SELECT * FROM tbl_TestTable  ORDER BY ID  ASC LIMIT 3 
    OFFSET (SELECT COUNT(*) FROM tbl_TestTable) - 3;]]></description>
			<content:encoded><![CDATA[<p>SELECT * FROM tbl_TestTable  ORDER BY ID  ASC LIMIT 3<br />
    OFFSET (SELECT COUNT(*) FROM tbl_TestTable) &#8211; 3;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aamir Ali		</title>
		<link>https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/#comment-6599</link>

		<dc:creator><![CDATA[Aamir Ali]]></dc:creator>
		<pubDate>Mon, 20 Aug 2018 11:31:29 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7661#comment-6599</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/#comment-6546&quot;&gt;lymo&lt;/a&gt;.

SELECT * FROM public.employees
ORDER BY employee_number desc limit 3]]></description>
			<content:encoded><![CDATA[<p>SELECT * FROM public.employees<br />
ORDER BY employee_number desc limit 3</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: lymo		</title>
		<link>https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/#comment-6546</link>

		<dc:creator><![CDATA[lymo]]></dc:creator>
		<pubDate>Wed, 25 Jul 2018 04:49:57 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7661#comment-6546</guid>

					<description><![CDATA[select * from tbl_testtable offset (select count(1)-3 from tbl_testtable) limit 3;]]></description>
			<content:encoded><![CDATA[<p>select * from tbl_testtable offset (select count(1)-3 from tbl_testtable) limit 3;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dinesh		</title>
		<link>https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/#comment-6539</link>

		<dc:creator><![CDATA[Dinesh]]></dc:creator>
		<pubDate>Thu, 19 Jul 2018 05:50:24 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7661#comment-6539</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/#comment-6532&quot;&gt;Shamanth&lt;/a&gt;.

Good]]></description>
			<content:encoded><![CDATA[<p>Good</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Shamanth		</title>
		<link>https://www.dbrnd.com/2018/07/sql-puzzle-get-the-last-three-records-of-a-table/#comment-6532</link>

		<dc:creator><![CDATA[Shamanth]]></dc:creator>
		<pubDate>Tue, 17 Jul 2018 07:42:09 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=7661#comment-6532</guid>

					<description><![CDATA[Select * From (Select top 3 ID,Name from tbl_TestTable TT order by TT.Id desc) T
Order By T.ID Asc]]></description>
			<content:encoded><![CDATA[<p>Select * From (Select top 3 ID,Name from tbl_TestTable TT order by TT.Id desc) T<br />
Order By T.ID Asc</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
