<?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 Server Interview: Advance SQL Query &#8211; Find String values which are adjacent to each other	</title>
	<atom:link href="https://www.dbrnd.com/2017/05/sql-server-interview-advance-sql-query-find-string-values-which-are-adjacent-to-each-other/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com/2017/05/sql-server-interview-advance-sql-query-find-string-values-which-are-adjacent-to-each-other/</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Wed, 07 Aug 2019 06:41:10 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: HIC		</title>
		<link>https://www.dbrnd.com/2017/05/sql-server-interview-advance-sql-query-find-string-values-which-are-adjacent-to-each-other/#comment-7632</link>

		<dc:creator><![CDATA[HIC]]></dc:creator>
		<pubDate>Wed, 07 Aug 2019 06:41:10 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5351#comment-7632</guid>

					<description><![CDATA[More universal solution:
select t1.* from tbl_MoviePlex t1
where t1.status = &#039;y&#039;
and exists (select 1 from tbl_MoviePlex t2 where (t2.status = &#039;y&#039;) and (t2.Seatid = t1.Seatid + 1 or t2.Seatid = t1.Seatid - 1))]]></description>
			<content:encoded><![CDATA[<p>More universal solution:<br />
select t1.* from tbl_MoviePlex t1<br />
where t1.status = &#8216;y&#8217;<br />
and exists (select 1 from tbl_MoviePlex t2 where (t2.status = &#8216;y&#8217;) and (t2.Seatid = t1.Seatid + 1 or t2.Seatid = t1.Seatid &#8211; 1))</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
