<?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/"
	>

<channel>
	<title>PHP Interview Questions and answers&#187; Regular level Archives  &#8211; interview questions and answers</title>
	<atom:link href="http://www.phpinterviewquestions.com/category/mysql-interview-questions/regular-level-mysql-interview-questions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpinterviewquestions.com</link>
	<description>Prepare for your next php based interview with high confidence</description>
	<lastBuildDate>Mon, 26 Sep 2011 08:37:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Delete multiple duplicated rows</title>
		<link>http://www.phpinterviewquestions.com/mysql-interview-questions/delete-multiple-duplicate-rows/</link>
		<comments>http://www.phpinterviewquestions.com/mysql-interview-questions/delete-multiple-duplicate-rows/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 10:52:56 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[MySql Questions]]></category>
		<category><![CDATA[Regular level]]></category>
		<category><![CDATA[mssql]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=137</guid>
		<description><![CDATA[mssql, mysql alternative to set rowcount]]></description>
			<content:encoded><![CDATA[<p>How we can delete duplicate records of a table where it has no unique or primary keys?</p>
<p><strong>Mysql</strong><br />
delete from table where x = &#8216;aaa&#8217; limit 1;</p>
<p><strong>Mssql</strong><br />
set rowcount 1;<br />
delete from table where x = &#8216;aaa&#8217;;<br />
set rowcount 0;</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 468x15, created 4/16/10 */
google_ad_slot = "1994287074";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/mysql-interview-questions/delete-multiple-duplicate-rows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Self Join</title>
		<link>http://www.phpinterviewquestions.com/mysql-interview-questions/self-join/</link>
		<comments>http://www.phpinterviewquestions.com/mysql-interview-questions/self-join/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 10:03:34 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[MySql Questions]]></category>
		<category><![CDATA[Regular level]]></category>
		<category><![CDATA[sql joins]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=129</guid>
		<description><![CDATA[What is a self join?
Self                                       join is just like any other join, except     [...]]]></description>
			<content:encoded><![CDATA[<p>What is a self join?</p>
<p><span style="font-family: Verdana,Arial,Helvetica,sans-serif;"><span style="font-size: x-small;">Self                                       join is just like any other join, except                                       that two instances of the same table will                                       be joined in the query.</span></span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 468x15, created 4/16/10 */
google_ad_slot = "1994287074";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/mysql-interview-questions/self-join/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sql Joins</title>
		<link>http://www.phpinterviewquestions.com/mysql-interview-questions/sql-joins/</link>
		<comments>http://www.phpinterviewquestions.com/mysql-interview-questions/sql-joins/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 08:41:13 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[MySql Questions]]></category>
		<category><![CDATA[Regular level]]></category>
		<category><![CDATA[sql joins]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=124</guid>
		<description><![CDATA[All sql join operations left join, left outer join,right join, right outer join]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s the difference between LEFT, RIGHT, INNER, OUTER, JOIN?</p>
<p>The difference is in the way tables are joined if there are no common records.</p>
<p>JOIN is same as INNER JOIN and means to only show records common to both tables. Whether the records are common is determined by the fields in join clause. For example:<br />
<span><br />
FROM t1<br />
JOIN t2 on t1.ID = t2.ID<br />
</span><br />
means show only records where the same ID value exists in both tables.</p>
<p>LEFT JOIN is same as LEFT OUTER JOIN and means to show all records from left table (i.e. the one that precedes in SQL statement) regardless of the existance of matching records in the right table.</p>
<p>RIGHT JOIN is same as RIGHT OUTER JOIN and means opposite of LEFT JOIN, i.e. shows all records from the second (right) table and only matching records from first (left) table.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 468x15, created 4/16/10 */
google_ad_slot = "1994287074";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/mysql-interview-questions/sql-joins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Number of rows</title>
		<link>http://www.phpinterviewquestions.com/mysql-interview-questions/number-of-rows/</link>
		<comments>http://www.phpinterviewquestions.com/mysql-interview-questions/number-of-rows/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 10:49:03 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[MySql Questions]]></category>
		<category><![CDATA[Regular level]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/wordpress/?p=23</guid>
		<description><![CDATA[How can we find the number of rows in a table using MySQL?
SELECT COUNT(*) FROM table_name;
]]></description>
			<content:encoded><![CDATA[<p>How can we find the number of rows in a table using MySQL?</p>
<p>SELECT COUNT(*) FROM table_name;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/mysql-interview-questions/number-of-rows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

