<?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>Learning MS-SQL</title>
	<atom:link href="http://msql.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://msql.wordpress.com</link>
	<description>...from the ground UP</description>
	<lastBuildDate>Thu, 26 Jun 2008 08:25:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='msql.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Learning MS-SQL</title>
		<link>http://msql.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://msql.wordpress.com/osd.xml" title="Learning MS-SQL" />
	<atom:link rel='hub' href='http://msql.wordpress.com/?pushpress=hub'/>
		<item>
		<title>The INSERT Statement</title>
		<link>http://msql.wordpress.com/2008/06/24/the-insert-statement/</link>
		<comments>http://msql.wordpress.com/2008/06/24/the-insert-statement/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 14:10:26 +0000</pubDate>
		<dc:creator>gyana</dc:creator>
				<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://msql.wordpress.com/?p=5</guid>
		<description><![CDATA[1. The Basic INSERT Statement It is the most basic statement to insert data into a table. Its syntax is as follows: INSERT INTO &#60;table&#62; [(column_list)] VALUES (data_values) INSERT is the action statement. INTO is an optional keyword but it is recommended to use for readability. column_list is an optional listing of all the columns [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=msql.wordpress.com&amp;blog=4059043&amp;post=5&amp;subd=msql&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>1. The Basic INSERT Statement</h3>
<p>It is the most basic statement to insert data into a table. Its syntax is as follows:</p>
<pre><span style="color:#0000ff;">INSERT INTO &lt;table&gt; [(<em>column_list</em>)]
VALUES (<em>data_values</em>)</span></pre>
<p><span style="color:#0000ff;">INSERT</span> is the action statement.</p>
<p><span style="color:#0000ff;">INTO</span> is an optional keyword but it is recommended to use for readability.</p>
<p><em><span style="color:#0000ff;">column_list</span></em> is an optional listing of all the columns in the table. If this is missing, the data values must exactly match with the order of columns in the table.</p>
<p><em><span style="color:#0000ff;">data_values</span></em> is list of actual values for the related columns. the order of data values must match with column_list or, if it is missing, the structure of the table.</p>
<pre><span style="color:#0000ff;">INSERT INTO stores
VALUES ('TEST', 'Test Store',
'1234 Anywhere Street', 'Here', 'NY', '00319')</span></pre>
<p>This example omit the <em><span style="color:#0000ff;">column_list</span></em>. so, the <span style="color:#0000ff;"><em>data_values</em></span> should match to the column list of the table.</p>
<pre><span style="color:#0000ff;">INSERT INTO stores
(stor_id, stor_name, city, state, zip)
VALUES
('TST2', 'Test Store', 'Here', 'NY', '00319')
</span></pre>
<p>This example includes the <em><span style="color:#0000ff;">column_list</span></em>. so, the <span style="color:#0000ff;"><em>data_values</em></span> should match to <em><span style="color:#0000ff;">column_list</span></em> but not to the column list of the table.</p>
<h3>2. INSERT INTO &#8230; SELECT Statement</h3>
<p>When we need to insert the result from a select query, we can use this statement. The result set created from the SELECT statement becomes the data that is added into the INSERT statement. Its syntax is as follows:</p>
<pre><span style="color:#0000ff;">INSERT INTO &lt;table name&gt;
( &lt; column list &gt; )
&lt;SELECT statement&gt;</span></pre>
<p>Example:</p>
<pre><span style="color:#0000ff;">INSERT INTO SelOrders (OrderID, CustomerID)
SELECT OrderID, CustomerID FROM Orders</span></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/msql.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/msql.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/msql.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/msql.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/msql.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/msql.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/msql.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/msql.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/msql.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/msql.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/msql.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/msql.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/msql.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/msql.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/msql.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/msql.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=msql.wordpress.com&amp;blog=4059043&amp;post=5&amp;subd=msql&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://msql.wordpress.com/2008/06/24/the-insert-statement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/204f819b01f3a0ce0e65e8f222e0a5c5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">gyana</media:title>
		</media:content>
	</item>
		<item>
		<title>Let&#8217;s Master T-SQL</title>
		<link>http://msql.wordpress.com/2008/06/24/master_t-sql/</link>
		<comments>http://msql.wordpress.com/2008/06/24/master_t-sql/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 13:28:10 +0000</pubDate>
		<dc:creator>gyana</dc:creator>
				<category><![CDATA[MSSQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[T-SQL Related topics to be covered: 1. Basic SQL Statements 2. Administrative Statements 3. Reporting<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=msql.wordpress.com&amp;blog=4059043&amp;post=1&amp;subd=msql&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>T-SQL Related topics to be covered:</p>
<p>1. Basic SQL Statements</p>
<p>2. Administrative Statements</p>
<p>3. Reporting</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/msql.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/msql.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/msql.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/msql.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/msql.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/msql.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/msql.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/msql.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/msql.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/msql.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/msql.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/msql.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/msql.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/msql.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/msql.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/msql.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=msql.wordpress.com&amp;blog=4059043&amp;post=1&amp;subd=msql&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://msql.wordpress.com/2008/06/24/master_t-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/204f819b01f3a0ce0e65e8f222e0a5c5?s=96&#38;d=identicon" medium="image">
			<media:title type="html">gyana</media:title>
		</media:content>
	</item>
	</channel>
</rss>
