<?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/"
	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>Database Theory in Practice</title>
	<atom:link href="http://dbtips.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dbtips.wordpress.com</link>
	<description>Essential readings for Database Professional</description>
	<lastBuildDate>Mon, 20 Jul 2009 02:53:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dbtips.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Database Theory in Practice</title>
		<link>http://dbtips.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dbtips.wordpress.com/osd.xml" title="Database Theory in Practice" />
	<atom:link rel='hub' href='http://dbtips.wordpress.com/?pushpress=hub'/>
		<item>
		<title>UPDATING A DATABASE</title>
		<link>http://dbtips.wordpress.com/2009/07/19/updating-a-database/</link>
		<comments>http://dbtips.wordpress.com/2009/07/19/updating-a-database/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 02:01:20 +0000</pubDate>
		<dc:creator>Oswaldo F. Domejean</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dbtips.wordpress.com/?p=196</guid>
		<description><![CDATA[The SQL problems studied in the posts on this site can become a serious trouble when updating a database; I mean update in terms of insert, delete and update as such a database. There are several possibilities in technology at the time of updating a database, for example, we have the case of input data [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=196&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The SQL problems studied in the posts on this site can become a serious trouble when updating a database; I mean update in terms of insert, delete and update as such a database.</p>
<p>There are several possibilities in technology at the time of updating a database, for example, we have the case of input data to an information system, when we are migrating a database to a new one that usually has a different structure, in the case of updating a distributed databases that are spread in different locations, when we are loading data to a Data Mart, and a number of other possibilities, in all of them we must be aware of the danger of inserting data into a database when we don’t know the weaknesses of SQL.</p>
<p>In this case the problems go beyond query results, we know that the only way to update a SQL database is by using the language SQL, in the case of an information system a simple interface could let us put data in it which could  erroneous data in database, from there on we could never trust in the query results anymore The possibility of erroneous data in SQL databases is present with standard operations INSERT, UPDATE and DELETE.</p>
<p>These operations may cause incorrect data inserted only in the case of using the Table expressions in the query, I mean using the SELECT expression within the operations INSERT, UPDATE and DELETE.</p>
<p>Essential to know about the weaknesses SQL have.</p>
<p style="text-align:left;margin:0 0 15px;padding:0;">A detailed explanation plus some other problems found with the SQL aggregate operators is found in my book:</p>
<p style="text-align:left;margin:0 0 15px;padding:0;">Amazon.com: <a style="color:#707070;text-decoration:underline;font-weight:400;margin:0;padding:0;" title="http://tinyurl.com/amnz-sqlbook" href="http://tinyurl.com/amnz-sqlbook">http://tinyurl.com/amnz-sqlbook</a></p>
<p style="text-align:left;margin:0 0 15px;padding:0;">Lulu.com: <a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" style="color:#707070;text-decoration:underline;font-weight:400;margin:0;padding:0;" href="http://stores.lulu.com/store.php?fAcctID=3161804" target="_blank">http://stores.lulu.com/store.php?fAcctID=3161804</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbtips.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbtips.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbtips.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbtips.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbtips.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbtips.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbtips.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbtips.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbtips.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbtips.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbtips.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbtips.wordpress.com/196/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbtips.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbtips.wordpress.com/196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=196&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbtips.wordpress.com/2009/07/19/updating-a-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dbtips</media:title>
		</media:content>
	</item>
		<item>
		<title>Problems with the SQL operator Average</title>
		<link>http://dbtips.wordpress.com/2009/06/27/problems-with-the-sql-operator-average/</link>
		<comments>http://dbtips.wordpress.com/2009/06/27/problems-with-the-sql-operator-average/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 18:28:35 +0000</pubDate>
		<dc:creator>Oswaldo F. Domejean</dc:creator>
				<category><![CDATA[SQL weaknesses]]></category>

		<guid isPermaLink="false">http://dbtips.wordpress.com/?p=193</guid>
		<description><![CDATA[What is the average of this set of values? 4, 8, 6 The average is 6, the operation is (4+8+6) / 3. If we use the SQL operator AVG() with that set of values the result is the same six, unless at least one more value appears in the set, I mean the “value” null, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=193&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What is the average of this set of values? 4, 8, 6</p>
<p>The average is 6, the operation is (4+8+6) / 3.</p>
<p>If we use the SQL operator AVG() with that set of values the result is the same six, unless at least one more value appears in the set, I mean the “value” null, then the set become: 4, 8, 6, null</p>
<p>The operation would be? (4+8+6+null) / 3.</p>
<p>Whatever null means in this context, the common sense tells us that this operation using SQL should not give us a numeric answer because of null, maybe some other kind of answer like for ex. “I don&#8217;t know”.</p>
<p>The problem is that when a SQL query with operator AVG() has this later set of values the answer is 6, it means that SQL doesn’t consider null as another value, and worse it doesn’t tell us anything else, with the consequence that the answer may be misinterpreted.</p>
<p>We have to be consious about this problem. We can have a database table with a hundred of tuples with one numeric attribute that has the values 4 and 2, and the rest just losts of nulls,</p>
<p>4, 2, null, null, &#8230;, null a hundred times</p>
<p>then in an SQL AVG() operation we obtain the result of 3.</p>
<p>Obviously the answer cannot be 3, it makes no sense. Well Ok, SQL calculates (4+2) / 2 = 3, but may SQL tell us that there are losts of nulls not being considered in the operation, but no, SQL doesn’t tell us anything else but the result three.</p>
<p>Some other problems about the operator sum vs. count can be found in my publication:</p>
<p>A detailed explanation plus some other problems found with the SQL aggregate operators is found in my book:</p>
<p>Amazon.com: <a title="http://tinyurl.com/amnz-sqlbook" href="http://tinyurl.com/amnz-sqlbook">http://tinyurl.com/amnz-sqlbook</a></p>
<p>Lulu.com: <a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" href="http://stores.lulu.com/store.php?fAcctID=3161804" target="_blank">http://stores.lulu.com/store.php?fAcctID=3161804</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbtips.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbtips.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbtips.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbtips.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbtips.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbtips.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbtips.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbtips.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbtips.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbtips.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbtips.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbtips.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbtips.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbtips.wordpress.com/193/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=193&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbtips.wordpress.com/2009/06/27/problems-with-the-sql-operator-average/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dbtips</media:title>
		</media:content>
	</item>
		<item>
		<title>Domain (Data Type) and null</title>
		<link>http://dbtips.wordpress.com/2009/06/17/domain-data-type-and-null/</link>
		<comments>http://dbtips.wordpress.com/2009/06/17/domain-data-type-and-null/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 01:00:12 +0000</pubDate>
		<dc:creator>Oswaldo F. Domejean</dc:creator>
				<category><![CDATA[SQL weaknesses]]></category>

		<guid isPermaLink="false">http://dbtips.wordpress.com/?p=187</guid>
		<description><![CDATA[E. F. Codd (The father of the Relational Model) defined a tree valued logic that has True, False and Unknown, this later logic value is represented in current DBMSs with the null mark that, in general, represents the concept of Missing Information. He also classified Unknown into two possible Missing Information interpretations, one is applicable [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=187&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="margin-left:0;margin-right:0;"><span style="font-family:'Times New Roman';"><span style="font-size:small;">E. F. </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">Codd (The father of the Relational Model) defined</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;"> a tree valued logic that has True, False and Unknown, this </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">later </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">logic value </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">is </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">represented in current DBMSs with the </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">null mark that, in general, represents the concept of Missing Information</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">.</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;"> He also </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">classif</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">ied U</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">nknown into two possible </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">Missing Information interpretations</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">, one is appli</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">cable and the other is in</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">applicable.</span></span></p>
<p style="margin-left:0;margin-right:0;"><span style="font-family:'Times New Roman';"> </span></p>
<p style="margin-left:0;margin-right:0;"><span style="font-family:'Times New Roman';"><span style="font-size:small;">The only possible mark that we can use in current DBMSs is null which represents Missing </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">applicable </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">Information;</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;"> it means that </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">when we </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">don’t </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">have</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;"> a value for </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">an attribute</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">,</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;"> null is put in the attribute</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">.</span></span></p>
<p style="margin-left:0;margin-right:0;"><span style="font-family:'Times New Roman';"> </span></p>
<p style="margin-left:0;margin-right:0;"><span style="font-family:'Times New Roman';"><span style="font-size:small;">T</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">he problem is that as we have seen in my post <a href="http://dbtips.wordpress.com/2009/05/31/some-notes-about-null/">http://dbtips.wordpress.com/2009/05/31/some-notes-about-null/</a>, null can not only represent</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;"> Missing I</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">nformation but also inapplicable information, and maybe </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">there are some </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">other meanings this mark could have in a database context.</span></span></p>
<p style="margin-left:0;margin-right:0;"><span style="font-family:'Times New Roman';"> </span></p>
<p style="margin-left:0;margin-right:0;"><span style="font-family:'Times New Roman';"><span style="font-size:small;">In Database literature t</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">he null mark is not considered part of an attribute domain</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">, t</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">hen null could be considered an external mark from the attribute domain, that has a meaning in the context of the tuple </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">that is Missing Applicable Information or Missing Inapplicable Information. The point is that we have to be conscious about the troubles null can cause in order to avoid them at the time of query construction.</span></span></p>
<p style="margin-left:0;margin-right:0;"><span style="font-family:'Times New Roman';"><span style="font-size:small;">There is an alternative that had been raised, th</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">e especial values </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">which </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">had been considered instead of the null mark</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;"> to deal with Missing Applicable Information and Missing Inapplicable Information,</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;"> for which we can give a meaning depending o</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">n the semantics an attribute have in a database context. For example, w</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">e can have “U” to repre</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">sent missing information and “I</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">” to represent not applicable, and some other possibilities that may exists. The problem is that the DBMS will not treat these values with the meaning we are giving, so we have to consider in queries conditions that let us differentiate these values from others.</span></span></p>
<p style="margin-left:0;margin-right:0;"><span style="font-family:'Times New Roman';"><span style="font-size:small;"> </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">After this analysis we could have the following two alternatives:</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;"> </span></span></p>
<p style="margin-left:0;margin-right:0;"> </p>
<div>
<ol type="1">
<li><span style="font-family:'Times New Roman';"><span style="font-size:small;">Be conscious </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">about</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;"> the problems null mark can cause, and build the queries accordingly, but with the problem that we cannot differentiate the meaning of one null from other.</span></span></li>
<li><span style="font-family:'Times New Roman';"><span style="font-size:small;">U</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">se especial values with t</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">he advantage that those</span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;"> values have a concrete meaning for us, with the problem that we have to consider them in the query conditions.</span></span></li>
</ol>
</div>
<p style="margin-left:0;margin-right:0;"><span style="font-family:'Times New Roman';"><span style="font-size:small;"> </span></span><span style="font-family:'Times New Roman';"><span style="font-size:small;">You can find a more complete analysis of the null mark in my book:</span></span></p>
<p style="margin-left:0;margin-right:0;"><span style="font-family:'Times New Roman';"><span style="font-size:small;">Amazon.com: <a title="http://tinyurl.com/amnz-sqlbook" rel="#someid2" href="http://tinyurl.com/amnz-sqlbook"><span style="color:#707070;">http://tinyurl.com/amnz-sqlbook</span></a></span></span></p>
<p style="margin-left:0;margin-right:0;"><span style="font-family:'Times New Roman';"><span style="font-size:small;">Lulu.com: <a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" rel="#someid1" href="http://stores.lulu.com/store.php?fAcctID=3161804" target="_blank"><span style="color:#707070;">http://stores.lulu.com/store.php?fAcctID=3161804</span></a></span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbtips.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbtips.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbtips.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbtips.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbtips.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbtips.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbtips.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbtips.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbtips.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbtips.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbtips.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbtips.wordpress.com/187/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbtips.wordpress.com/187/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbtips.wordpress.com/187/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=187&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbtips.wordpress.com/2009/06/17/domain-data-type-and-null/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dbtips</media:title>
		</media:content>
	</item>
		<item>
		<title>When subquery is empty in EXISTS (subquery)</title>
		<link>http://dbtips.wordpress.com/2009/06/11/when-subquery-is-empty-in-exists-subquery/</link>
		<comments>http://dbtips.wordpress.com/2009/06/11/when-subquery-is-empty-in-exists-subquery/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 01:32:00 +0000</pubDate>
		<dc:creator>Oswaldo F. Domejean</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dbtips.wordpress.com/?p=184</guid>
		<description><![CDATA[Take a look at the example: http://dbtips.wordpress.com/2009/04/26/a-more-complex-sql-weakness-with-the-conditions-not-in-vs-not-exists/ Let’s analyse the result of the second example in the mentioned link: The query: &#8220;Get the Bank names which doesn&#8217;t have ATMs in Madrid&#8221; The result of the EXISTS subquery is empty, I mean that the subquery generates no tuples because the only possible tuple is the one [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=184&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Take a look at the example: <a href="http://dbtips.wordpress.com/2009/04/26/a-more-complex-sql-weakness-with-the-conditions-not-in-vs-not-exists/">http://dbtips.wordpress.com/2009/04/26/a-more-complex-sql-weakness-with-the-conditions-not-in-vs-not-exists/</a></p>
<p>Let’s analyse the result of the second example in the mentioned link:</p>
<p>The query: &#8220;Get the Bank names which doesn&#8217;t have ATMs in Madrid&#8221;</p>
<p>The result of the EXISTS subquery is empty, I mean that the subquery generates no tuples because the only possible tuple is the one that has Madrid in the attribute City an null in the attribute BNK, and the condition NOT EXISTS (subquery) generates True, that&#8217;s why we get a result with all the Bank names from de table BANK.</p>
<p>Then, how does the condition EXISTS behave from the perspective of SQL? Is this behaviour the same as in Logic?.</p>
<p>A detailed explanation is found in my book: Lulu.com: <a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" href="http://stores.lulu.com/store.php?fAcctID=3161804" target="_blank">http://stores.lulu.com/store.php?fAcctID=3161804</a></p>
<p>Amazon.com: <a title="http://tinyurl.com/amnz-sqlbook" href="http://tinyurl.com/amnz-sqlbook">http://tinyurl.com/amnz-sqlbook</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbtips.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbtips.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbtips.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbtips.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbtips.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbtips.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbtips.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbtips.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbtips.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbtips.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbtips.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbtips.wordpress.com/184/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbtips.wordpress.com/184/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbtips.wordpress.com/184/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=184&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbtips.wordpress.com/2009/06/11/when-subquery-is-empty-in-exists-subquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dbtips</media:title>
		</media:content>
	</item>
		<item>
		<title>In the case of NOT IN (null)</title>
		<link>http://dbtips.wordpress.com/2009/06/06/in-the-case-of-not-in-null/</link>
		<comments>http://dbtips.wordpress.com/2009/06/06/in-the-case-of-not-in-null/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 22:06:50 +0000</pubDate>
		<dc:creator>Oswaldo F. Domejean</dc:creator>
				<category><![CDATA[SQL weaknesses]]></category>

		<guid isPermaLink="false">http://dbtips.wordpress.com/?p=177</guid>
		<description><![CDATA[Take a look at the example: http://dbtips.wordpress.com/2009/04/26/a-more-complex-sql-weakness-with-the-conditions-not-in-vs-not-exists/ Let’s analyse the result of the first example in the mentioned link: The query: &#8220;Get the Bank names which doesn&#8217;t have ATMs in Madrid&#8221; We have that the subquery (SELECT B.BNK FROM ATM B WHERE B.CITY = &#8216;Madrid&#8217;) generate the result null, and can we say that A.BANK [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=177&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Take a look at the example: <a href="http://dbtips.wordpress.com/2009/04/26/a-more-complex-sql-weakness-with-the-conditions-not-in-vs-not-exists/">http://dbtips.wordpress.com/2009/04/26/a-more-complex-sql-weakness-with-the-conditions-not-in-vs-not-exists/</a></p>
<p>Let’s analyse the result of the first example in the mentioned link:</p>
<p>The query: &#8220;Get the Bank names which doesn&#8217;t have ATMs in Madrid&#8221;</p>
<p>We have that the subquery (SELECT B.BNK FROM ATM B WHERE B.CITY = &#8216;Madrid&#8217;) generate the result null, and can we say that A.BANK isn&#8217;t in the list where there exists only null?.</p>
<p> </p>
<p>Ovbiously not, what we can say is that it&#8217;s not known if any of the Banks in the table BANK exists in the list generated by the subquery, which has the only element null.</p>
<p>  A detailed explanation is found in my book: Lulu.com: <a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" href="http://stores.lulu.com/store.php?fAcctID=3161804" target="_blank">http://stores.lulu.com/store.php?fAcctID=3161804</a></p>
<p>Amazon.com: <a title="http://tinyurl.com/amnz-sqlbook" href="http://tinyurl.com/amnz-sqlbook">http://tinyurl.com/amnz-sqlbook</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbtips.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbtips.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbtips.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbtips.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbtips.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbtips.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbtips.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbtips.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbtips.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbtips.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbtips.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbtips.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbtips.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbtips.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=177&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbtips.wordpress.com/2009/06/06/in-the-case-of-not-in-null/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dbtips</media:title>
		</media:content>
	</item>
		<item>
		<title>Some notes about null</title>
		<link>http://dbtips.wordpress.com/2009/05/31/some-notes-about-null/</link>
		<comments>http://dbtips.wordpress.com/2009/05/31/some-notes-about-null/#comments</comments>
		<pubDate>Sun, 31 May 2009 16:46:20 +0000</pubDate>
		<dc:creator>Oswaldo F. Domejean</dc:creator>
				<category><![CDATA[SQL weaknesses]]></category>

		<guid isPermaLink="false">http://dbtips.wordpress.com/?p=170</guid>
		<description><![CDATA[Take a look at the examples: http://dbtips.wordpress.com/2009/04/26/a-simple-sql-weakness-with-the-intersect-operation/ The following are some practical issues related to what Mr. C.J. Date said about null. Let’s analyse the results in a couple of cases.Consider that we have a couple of attributes att1 and att2. Case 1 (simple conditions in the example): att1 = 3 and att2 = null [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=170&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Take a look at the examples: <a href="http://dbtips.wordpress.com/2009/04/26/a-simple-sql-weakness-with-the-intersect-operation/">http://dbtips.wordpress.com/2009/04/26/a-simple-sql-weakness-with-the-intersect-operation/</a></p>
<p>The following are some practical issues related to what Mr. C.J. Date said about null. Let’s analyse the results in a couple of cases.Consider that we have a couple of attributes att1 and att2.</p>
<p>Case 1 (simple conditions in the example):</p>
<p>att1 = 3 and att2 = null</p>
<p>if we have the condition att1 = att2, the answer is the same as false. But, is the value 3 different from null?, not neccesarily, attibute att2 could be 3, then the correct answer should be unknown.</p>
<p>Case 2 (Intersect in the example):</p>
<p>The intersection of att1 = null in one table and the same att1 = null in the other table.</p>
<p>In this case of the Intersect, null is considered a value, that is why the intersection take place. But null is not a value is a symbol that represent unknown or some other meaning (soon an analysis of this aspect), that`s not correct, because the att1 value from one table  could or could not be the same as att1 from the other table.</p>
<p>A detailed explanation is found in my book:</p>
<p>Amazon.com: <a title="http://tinyurl.com/amnz-sqlbook" href="http://tinyurl.com/amnz-sqlbook">http://tinyurl.com/amnz-sqlbook</a></p>
<p>Lulu.com: <a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" href="http://stores.lulu.com/store.php?fAcctID=3161804" target="_blank">http://stores.lulu.com/store.php?fAcctID=3161804</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbtips.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbtips.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbtips.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbtips.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbtips.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbtips.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbtips.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbtips.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbtips.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbtips.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbtips.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbtips.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbtips.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbtips.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=170&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbtips.wordpress.com/2009/05/31/some-notes-about-null/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dbtips</media:title>
		</media:content>
	</item>
		<item>
		<title>Some SQL weaknesses explained in a video clip</title>
		<link>http://dbtips.wordpress.com/2009/05/30/some-sql-weaknesses-explained-in-a-video-clip/</link>
		<comments>http://dbtips.wordpress.com/2009/05/30/some-sql-weaknesses-explained-in-a-video-clip/#comments</comments>
		<pubDate>Sat, 30 May 2009 19:28:42 +0000</pubDate>
		<dc:creator>Oswaldo F. Domejean</dc:creator>
				<category><![CDATA[SQL weaknesses]]></category>

		<guid isPermaLink="false">http://dbtips.wordpress.com/?p=166</guid>
		<description><![CDATA[In the following video clip from youtube.com I explain a couple of the weaknnesses in a graphical way. http://www.youtube.com/watch?v=FWrH5K6V6E0<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=166&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the following video clip from youtube.com I explain a couple of the weaknnesses in a graphical way.</p>
<p><a href="http://www.youtube.com/watch?v=FWrH5K6V6E0">http://www.youtube.com/watch?v=FWrH5K6V6E0</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbtips.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbtips.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbtips.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbtips.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbtips.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbtips.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbtips.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbtips.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbtips.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbtips.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbtips.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbtips.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbtips.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbtips.wordpress.com/166/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=166&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbtips.wordpress.com/2009/05/30/some-sql-weaknesses-explained-in-a-video-clip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dbtips</media:title>
		</media:content>
	</item>
		<item>
		<title>A simple SQL weakness with the Intersect operation</title>
		<link>http://dbtips.wordpress.com/2009/04/26/a-simple-sql-weakness-with-the-intersect-operation/</link>
		<comments>http://dbtips.wordpress.com/2009/04/26/a-simple-sql-weakness-with-the-intersect-operation/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 16:47:12 +0000</pubDate>
		<dc:creator>Oswaldo F. Domejean</dc:creator>
				<category><![CDATA[SQL weaknesses]]></category>

		<guid isPermaLink="false">http://dbtips.wordpress.com/?p=133</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=133&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-134" title="sqlintersect" src="http://dbtips.files.wordpress.com/2009/04/sqlintersect.jpg?w=480&#038;h=493" alt="sqlintersect" width="480" height="493" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbtips.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbtips.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbtips.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbtips.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbtips.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbtips.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbtips.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbtips.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbtips.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbtips.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbtips.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbtips.wordpress.com/133/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbtips.wordpress.com/133/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbtips.wordpress.com/133/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=133&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbtips.wordpress.com/2009/04/26/a-simple-sql-weakness-with-the-intersect-operation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dbtips</media:title>
		</media:content>

		<media:content url="http://dbtips.files.wordpress.com/2009/04/sqlintersect.jpg" medium="image">
			<media:title type="html">sqlintersect</media:title>
		</media:content>
	</item>
		<item>
		<title>A more complex SQL weakness with the conditions NOT IN vs. NOT EXISTS</title>
		<link>http://dbtips.wordpress.com/2009/04/26/a-more-complex-sql-weakness-with-the-conditions-not-in-vs-not-exists/</link>
		<comments>http://dbtips.wordpress.com/2009/04/26/a-more-complex-sql-weakness-with-the-conditions-not-in-vs-not-exists/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 16:44:44 +0000</pubDate>
		<dc:creator>Oswaldo F. Domejean</dc:creator>
				<category><![CDATA[SQL weaknesses]]></category>

		<guid isPermaLink="false">http://dbtips.wordpress.com/?p=130</guid>
		<description><![CDATA[(If needed see the example database)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=130&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>(If needed see the <a href="http://dbtips.wordpress.com/the-example-database/" target="_blank">example database</a>)<br />
<img class="alignnone size-full wp-image-131" title="sqlnotin-exists" src="http://dbtips.files.wordpress.com/2009/04/sqlnotin-exists.jpg?w=480&#038;h=414" alt="sqlnotin-exists" width="480" height="414" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbtips.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbtips.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbtips.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbtips.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbtips.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbtips.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbtips.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbtips.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbtips.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbtips.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbtips.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbtips.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbtips.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbtips.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=130&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbtips.wordpress.com/2009/04/26/a-more-complex-sql-weakness-with-the-conditions-not-in-vs-not-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dbtips</media:title>
		</media:content>

		<media:content url="http://dbtips.files.wordpress.com/2009/04/sqlnotin-exists.jpg" medium="image">
			<media:title type="html">sqlnotin-exists</media:title>
		</media:content>
	</item>
		<item>
		<title>A simple SQL weaknesses with operator avg()</title>
		<link>http://dbtips.wordpress.com/2009/04/26/a-simple-sql-weaknesses-with-operator-avg/</link>
		<comments>http://dbtips.wordpress.com/2009/04/26/a-simple-sql-weaknesses-with-operator-avg/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 16:42:29 +0000</pubDate>
		<dc:creator>Oswaldo F. Domejean</dc:creator>
				<category><![CDATA[SQL weaknesses]]></category>

		<guid isPermaLink="false">http://dbtips.wordpress.com/?p=127</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=127&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-128" title="sqlavg" src="http://dbtips.files.wordpress.com/2009/04/sqlavg.jpg?w=480&#038;h=391" alt="sqlavg" width="480" height="391" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dbtips.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dbtips.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dbtips.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dbtips.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dbtips.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dbtips.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dbtips.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dbtips.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dbtips.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dbtips.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dbtips.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dbtips.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dbtips.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dbtips.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dbtips.wordpress.com&amp;blog=3607161&amp;post=127&amp;subd=dbtips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dbtips.wordpress.com/2009/04/26/a-simple-sql-weaknesses-with-operator-avg/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">dbtips</media:title>
		</media:content>

		<media:content url="http://dbtips.files.wordpress.com/2009/04/sqlavg.jpg" medium="image">
			<media:title type="html">sqlavg</media:title>
		</media:content>
	</item>
	</channel>
</rss>
