<?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: Problem with using AND, OR for single column values</title>
	<atom:link href="http://www.veppa.com/blog/2006/12/09/problem-with-using-and-or-for-single-column-values/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.veppa.com/blog/2006/12/09/problem-with-using-and-or-for-single-column-values/</link>
	<description>discover how it is done.</description>
	<lastBuildDate>Wed, 21 Apr 2010 19:06:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Osman</title>
		<link>http://www.veppa.com/blog/2006/12/09/problem-with-using-and-or-for-single-column-values/comment-page-1/#comment-55384</link>
		<dc:creator>Osman</dc:creator>
		<pubDate>Thu, 19 Feb 2009 02:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.veppa.com/blog/2006/12/09/problem-with-using-and-or-for-single-column-values/#comment-55384</guid>
		<description>You may use sub queries after where condition such as :


SELECT *, count(*) as total_count FROM td1,dt2 WHERE (td1.id1=td2.id1 and td1.id1=1 and td2.id1=(select * from td2 where td2.id1=2 or td2.id1=3) GROUP BY t1.id2;</description>
		<content:encoded><![CDATA[<p>You may use sub queries after where condition such as :</p>
<p>SELECT *, count(*) as total_count FROM td1,dt2 WHERE (td1.id1=td2.id1 and td1.id1=1 and td2.id1=(select * from td2 where td2.id1=2 or td2.id1=3) GROUP BY t1.id2;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
