<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; EXCEPT Clause in SQL Server is Similar to MINUS Clause in Oracle</title>
	<atom:link href="http://blog.sqlauthority.com/2008/08/07/sql-server-except-clause-in-sql-server-is-similar-to-minus-clause-in-oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/08/07/sql-server-except-clause-in-sql-server-is-similar-to-minus-clause-in-oracle/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: anonymous</title>
		<link>http://blog.sqlauthority.com/2008/08/07/sql-server-except-clause-in-sql-server-is-similar-to-minus-clause-in-oracle/#comment-57649</link>
		<dc:creator>anonymous</dc:creator>
		<pubDate>Mon, 16 Nov 2009 18:43:41 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=791#comment-57649</guid>
		<description>What does &quot;exactly similar&quot; mean ? It two things are the same, or identical, they are not similar. They are alike.</description>
		<content:encoded><![CDATA[<p>What does &#8220;exactly similar&#8221; mean ? It two things are the same, or identical, they are not similar. They are alike.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gangadhar Naidu</title>
		<link>http://blog.sqlauthority.com/2008/08/07/sql-server-except-clause-in-sql-server-is-similar-to-minus-clause-in-oracle/#comment-53746</link>
		<dc:creator>Gangadhar Naidu</dc:creator>
		<pubDate>Thu, 16 Jul 2009 06:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=791#comment-53746</guid>
		<description>Hi Pinaldave,
below queries also get same out put. So, which is the best perpromance. Is it EXCEPT more performance then below queries.

SELECT EmpNo, EmpName,Salery
FROM EmployeeRecord
WHERE Salery &gt; 1000 and Salery &lt; 2000
ORDER BY EmpName; 

SELECT EmpNo, EmpName,Salery
FROM EmployeeRecord
WHERE Salery between 1000 and 2000
ORDER BY EmpName; 

Thank you,
Gangadhar.</description>
		<content:encoded><![CDATA[<p>Hi Pinaldave,<br />
below queries also get same out put. So, which is the best perpromance. Is it EXCEPT more performance then below queries.</p>
<p>SELECT EmpNo, EmpName,Salery<br />
FROM EmployeeRecord<br />
WHERE Salery &gt; 1000 and Salery &lt; 2000<br />
ORDER BY EmpName; </p>
<p>SELECT EmpNo, EmpName,Salery<br />
FROM EmployeeRecord<br />
WHERE Salery between 1000 and 2000<br />
ORDER BY EmpName; </p>
<p>Thank you,<br />
Gangadhar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - 2008 - Interview Questions and Answers - Part 7 Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2008/08/07/sql-server-except-clause-in-sql-server-is-similar-to-minus-clause-in-oracle/#comment-47481</link>
		<dc:creator>SQL SERVER - 2008 - Interview Questions and Answers - Part 7 Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Thu, 26 Feb 2009 12:07:26 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=791#comment-47481</guid>
		<description>[...] EXCEPT clause is similar to MINUS operation in Oracle. The EXCEPT query and MINUS query returns all rows in the first query that are not returned in the second query. Each SQL statement within the EXCEPT query and MINUS query must have the same number of fields in the result sets with similar data types. (Read More Here) [...]</description>
		<content:encoded><![CDATA[<p>[...] EXCEPT clause is similar to MINUS operation in Oracle. The EXCEPT query and MINUS query returns all rows in the first query that are not returned in the second query. Each SQL statement within the EXCEPT query and MINUS query must have the same number of fields in the result sets with similar data types. (Read More Here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daud Khan</title>
		<link>http://blog.sqlauthority.com/2008/08/07/sql-server-except-clause-in-sql-server-is-similar-to-minus-clause-in-oracle/#comment-41855</link>
		<dc:creator>Daud Khan</dc:creator>
		<pubDate>Thu, 21 Aug 2008 04:56:01 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=791#comment-41855</guid>
		<description>SIR
 i have creataed a table in which i have inserted different students marks 
now i want to write a program(may be it is done through function or procedure) in oracle sql so that user is prompted to enter the top values i mean if user want to access top 10 students marks so he just need to write 10 in the box and result should be displayed similarly for top 15  in short from top 1- top 15
just like if i write the quuery

select * from stu where stu_marks=&#039;&amp;Entertop&#039;

so user is prompted to enter top values but i want to write a program for it in oracle sql(pl sql)
i shall be thankful to you</description>
		<content:encoded><![CDATA[<p>SIR<br />
 i have creataed a table in which i have inserted different students marks<br />
now i want to write a program(may be it is done through function or procedure) in oracle sql so that user is prompted to enter the top values i mean if user want to access top 10 students marks so he just need to write 10 in the box and result should be displayed similarly for top 15  in short from top 1- top 15<br />
just like if i write the quuery</p>
<p>select * from stu where stu_marks=&#8217;&amp;Entertop&#8217;</p>
<p>so user is prompted to enter top values but i want to write a program for it in oracle sql(pl sql)<br />
i shall be thankful to you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giovanna</title>
		<link>http://blog.sqlauthority.com/2008/08/07/sql-server-except-clause-in-sql-server-is-similar-to-minus-clause-in-oracle/#comment-41716</link>
		<dc:creator>Giovanna</dc:creator>
		<pubDate>Fri, 15 Aug 2008 22:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=791#comment-41716</guid>
		<description>this worked like a charm!
much, much faster than NOT IN...
regards,
Giovanna</description>
		<content:encoded><![CDATA[<p>this worked like a charm!<br />
much, much faster than NOT IN&#8230;<br />
regards,<br />
Giovanna</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Hung</title>
		<link>http://blog.sqlauthority.com/2008/08/07/sql-server-except-clause-in-sql-server-is-similar-to-minus-clause-in-oracle/#comment-41491</link>
		<dc:creator>Jerry Hung</dc:creator>
		<pubDate>Fri, 08 Aug 2008 14:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=791#comment-41491</guid>
		<description>I was really happy to find INTERSECT &amp; EXCEPT in SQL 2005, similiar to Oracle&#039;s MINUS is quite cool

Although I think I&#039;ve tried it, I think
NOT EXISTS &gt;&gt; EXCEPT (does it not Cartesian than filter?) &gt;&gt; NOT IN (bad bad bad)

It could also depend on the data sets, but I&#039;ve recommended everyone I know to code with NOT EXISTS in mind</description>
		<content:encoded><![CDATA[<p>I was really happy to find INTERSECT &amp; EXCEPT in SQL 2005, similiar to Oracle&#8217;s MINUS is quite cool</p>
<p>Although I think I&#8217;ve tried it, I think<br />
NOT EXISTS &gt;&gt; EXCEPT (does it not Cartesian than filter?) &gt;&gt; NOT IN (bad bad bad)</p>
<p>It could also depend on the data sets, but I&#8217;ve recommended everyone I know to code with NOT EXISTS in mind</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2008/08/07/sql-server-except-clause-in-sql-server-is-similar-to-minus-clause-in-oracle/#comment-41459</link>
		<dc:creator>pinaldave</dc:creator>
		<pubDate>Thu, 07 Aug 2008 20:06:57 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=791#comment-41459</guid>
		<description>@Dan, @elfy,

From my experience I would use EXCEPT, NOT EXISTS and NOT IN in the order they are mentioned. EXCEPT (Best performance) and NOT IN (Worst performance).

Kind Regards,
Pinal Dave</description>
		<content:encoded><![CDATA[<p>@Dan, @elfy,</p>
<p>From my experience I would use EXCEPT, NOT EXISTS and NOT IN in the order they are mentioned. EXCEPT (Best performance) and NOT IN (Worst performance).</p>
<p>Kind Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elfy</title>
		<link>http://blog.sqlauthority.com/2008/08/07/sql-server-except-clause-in-sql-server-is-similar-to-minus-clause-in-oracle/#comment-41458</link>
		<dc:creator>elfy</dc:creator>
		<pubDate>Thu, 07 Aug 2008 19:48:53 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=791#comment-41458</guid>
		<description>Hmm, strange statement. I have the same question in my mind as Dan above.</description>
		<content:encoded><![CDATA[<p>Hmm, strange statement. I have the same question in my mind as Dan above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donna Bursey</title>
		<link>http://blog.sqlauthority.com/2008/08/07/sql-server-except-clause-in-sql-server-is-similar-to-minus-clause-in-oracle/#comment-41452</link>
		<dc:creator>Donna Bursey</dc:creator>
		<pubDate>Thu, 07 Aug 2008 18:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=791#comment-41452</guid>
		<description>Hello, sql authority -- I have a puzzle for you...I wrote the following code:

select id
from records
EXCEPT
select id
from records
where cols = -1

WHICH RETURNS THIS ERROR MESSAGE:

Msg 156, Level 15, State 1, Line 4
Incorrect syntax near the keyword &#039;EXCEPT&#039;.

I&#039;m using Microsoft sql server management studio express -- the same as in the example you have above.  Do you see anything wrong with this query as it appears above?  I can&#039;t!  I had &quot;distinct&quot; in the select statements, but took them out, because the documentation I found online says that it works on distinct rows within the except function.

Help!

Donna Bursey</description>
		<content:encoded><![CDATA[<p>Hello, sql authority &#8212; I have a puzzle for you&#8230;I wrote the following code:</p>
<p>select id<br />
from records<br />
EXCEPT<br />
select id<br />
from records<br />
where cols = -1</p>
<p>WHICH RETURNS THIS ERROR MESSAGE:</p>
<p>Msg 156, Level 15, State 1, Line 4<br />
Incorrect syntax near the keyword &#8216;EXCEPT&#8217;.</p>
<p>I&#8217;m using Microsoft sql server management studio express &#8212; the same as in the example you have above.  Do you see anything wrong with this query as it appears above?  I can&#8217;t!  I had &#8220;distinct&#8221; in the select statements, but took them out, because the documentation I found online says that it works on distinct rows within the except function.</p>
<p>Help!</p>
<p>Donna Bursey</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://blog.sqlauthority.com/2008/08/07/sql-server-except-clause-in-sql-server-is-similar-to-minus-clause-in-oracle/#comment-41447</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 07 Aug 2008 14:14:28 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=791#comment-41447</guid>
		<description>Pinal,

What are your recommendations for when to use EXCEPT, NOT EXISTS, and NOT IN? They all seem to provide similar functionality. 

Thanks,

Dan</description>
		<content:encoded><![CDATA[<p>Pinal,</p>
<p>What are your recommendations for when to use EXCEPT, NOT EXISTS, and NOT IN? They all seem to provide similar functionality. </p>
<p>Thanks,</p>
<p>Dan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
