<?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>Webdeveloping</title>
	<atom:link href="http://webdevelpers.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdevelpers.wordpress.com</link>
	<description>All Languages scripts Like Javascript , Php , Mysql  site</description>
	<lastBuildDate>Sat, 19 Nov 2011 14:12:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='webdevelpers.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Webdeveloping</title>
		<link>http://webdevelpers.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://webdevelpers.wordpress.com/osd.xml" title="Webdeveloping" />
	<atom:link rel='hub' href='http://webdevelpers.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Online movies bollywood latest and web scripts (2010)</title>
		<link>http://webdevelpers.wordpress.com/2010/06/06/online-movies-bollywood-latest-and-web-scripts-2010/</link>
		<comments>http://webdevelpers.wordpress.com/2010/06/06/online-movies-bollywood-latest-and-web-scripts-2010/#comments</comments>
		<pubDate>Sun, 06 Jun 2010 06:29:13 +0000</pubDate>
		<dc:creator>webdevelopers</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://webdevelpers.wordpress.com/?p=175</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=175&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://webdevelpers.lsc.edu.pk/?cat=18"><img src="http://en.netlogstatic.com/p/oo/029/629/29629519.jpg" alt="" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdevelpers.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdevelpers.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdevelpers.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdevelpers.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webdevelpers.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webdevelpers.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webdevelpers.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webdevelpers.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdevelpers.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdevelpers.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdevelpers.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdevelpers.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdevelpers.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdevelpers.wordpress.com/175/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=175&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webdevelpers.wordpress.com/2010/06/06/online-movies-bollywood-latest-and-web-scripts-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1e10f88b240ebd8a4d47f1ebb634403?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webdevelpers</media:title>
		</media:content>

		<media:content url="http://en.netlogstatic.com/p/oo/029/629/29629519.jpg" medium="image" />
	</item>
		<item>
		<title>Php header Description</title>
		<link>http://webdevelpers.wordpress.com/2010/06/01/php-header-description/</link>
		<comments>http://webdevelpers.wordpress.com/2010/06/01/php-header-description/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 04:40:37 +0000</pubDate>
		<dc:creator>webdevelopers</dc:creator>
				<category><![CDATA[Php header functions]]></category>

		<guid isPermaLink="false">http://webdevelpers.wordpress.com/?p=170</guid>
		<description><![CDATA[Description Php heade is a function that call for put the action on another page &#8230;.. &#60;html&#62; &#60;?php /* This will give an error. Note the output * above, which is before the header() call */ header('Location: http://www.example.com/'); ?&#62;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=170&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><strong> Description</strong></h3>
<p><strong>Php heade is a function that call for put the action on another page &#8230;..</strong></p>
<div>
<div>
<div><strong><code> &lt;html&gt;<br />
&lt;?php<br />
/* This will give an error. Note the output<br />
* above, which is before the header() call */<br />
header('Location: http://www.example.com/');<br />
?&gt; </code></strong></div>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdevelpers.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdevelpers.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdevelpers.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdevelpers.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webdevelpers.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webdevelpers.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webdevelpers.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webdevelpers.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdevelpers.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdevelpers.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdevelpers.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdevelpers.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdevelpers.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdevelpers.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=170&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webdevelpers.wordpress.com/2010/06/01/php-header-description/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1e10f88b240ebd8a4d47f1ebb634403?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webdevelpers</media:title>
		</media:content>
	</item>
		<item>
		<title>Php send a mail full script</title>
		<link>http://webdevelpers.wordpress.com/2010/06/01/php-send-a-mail-full-script/</link>
		<comments>http://webdevelpers.wordpress.com/2010/06/01/php-send-a-mail-full-script/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 04:33:05 +0000</pubDate>
		<dc:creator>webdevelopers</dc:creator>
				<category><![CDATA[Php send mail]]></category>

		<guid isPermaLink="false">http://webdevelpers.wordpress.com/?p=167</guid>
		<description><![CDATA[&#60;?php $to      = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?&#62;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=167&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<div><strong><code> &lt;?php<br />
$to      = 'nobody@example.com';<br />
$subject = 'the subject';<br />
$message = 'hello';<br />
$headers = 'From: webmaster@example.com' . "\r\n" .<br />
'Reply-To: webmaster@example.com' . "\r\n" .<br />
'X-Mailer: PHP/' . phpversion();</p>
<p>mail($to, $subject, $message, $headers);<br />
?&gt; </code></strong></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdevelpers.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdevelpers.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdevelpers.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdevelpers.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webdevelpers.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webdevelpers.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webdevelpers.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webdevelpers.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdevelpers.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdevelpers.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdevelpers.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdevelpers.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdevelpers.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdevelpers.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=167&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webdevelpers.wordpress.com/2010/06/01/php-send-a-mail-full-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1e10f88b240ebd8a4d47f1ebb634403?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webdevelpers</media:title>
		</media:content>
	</item>
		<item>
		<title>The SQL GROUP BY Statement</title>
		<link>http://webdevelpers.wordpress.com/2010/05/31/the-sql-group-by-statement/</link>
		<comments>http://webdevelpers.wordpress.com/2010/05/31/the-sql-group-by-statement/#comments</comments>
		<pubDate>Mon, 31 May 2010 03:32:46 +0000</pubDate>
		<dc:creator>webdevelopers</dc:creator>
				<category><![CDATA[SQL group by function]]></category>

		<guid isPermaLink="false">http://webdevelpers.wordpress.com/?p=162</guid>
		<description><![CDATA[The GROUP BY Statement The GROUP BY statement is used in conjunction with the aggregate functions to group the result-set by one or more columns. SQL GROUP BY Syntax SELECT column_name, aggregate_function(column_name) FROM table_name WHERE column_name operator value GROUP BY column_name SQL GROUP BY Example We have the following &#8220;Orders&#8221; table: O_Id OrderDate OrderPrice Customer [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=162&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><strong>The GROUP BY Statement</strong></h2>
<p><strong>The GROUP BY statement is used in conjunction with the aggregate functions to group the result-set by one or more columns.</strong></p>
<h3><strong>SQL GROUP BY Syntax</strong></h3>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT column_name, aggregate_function(column_name)<br />
FROM table_name<br />
WHERE column_name operator value<br />
GROUP BY column_name</strong></td>
</tr>
</tbody>
</table>
<p><strong><br />
</strong></p>
<hr />
<h2><strong>SQL GROUP BY Example</strong></h2>
<p><strong>We have the following &#8220;Orders&#8221; table:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th align="left"><strong>O_Id</strong></th>
<th align="left"><strong>OrderDate</strong></th>
<th align="left"><strong>OrderPrice</strong></th>
<th align="left"><strong>Customer</strong></th>
</tr>
<tr>
<td><strong>1</strong></td>
<td><strong>2008/11/12</strong></td>
<td><strong>1000</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>2</strong></td>
<td><strong>2008/10/23</strong></td>
<td><strong>1600</strong></td>
<td><strong>Nilsen</strong></td>
</tr>
<tr>
<td><strong>3</strong></td>
<td><strong>2008/09/02</strong></td>
<td><strong>700</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>4</strong></td>
<td><strong>2008/09/03</strong></td>
<td><strong>300</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>5</strong></td>
<td><strong>2008/08/30</strong></td>
<td><strong>2000</strong></td>
<td><strong>Jensen</strong></td>
</tr>
<tr>
<td><strong>6</strong></td>
<td><strong>2008/10/04</strong></td>
<td><strong>100</strong></td>
<td><strong>Nilsen</strong></td>
</tr>
</tbody>
</table>
<p><strong>Now we want to find the total sum (total order) of each customer.</strong></p>
<p><strong>We will have to use the GROUP BY statement to group the customers.</strong></p>
<p><strong>We use the following SQL statement:</strong></p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT Customer,SUM(OrderPrice) FROM Orders<br />
GROUP BY Customer</strong></td>
</tr>
</tbody>
</table>
<p><strong>The result-set will look like this:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="50%">
<tbody>
<tr>
<th align="left"><strong>Customer</strong></th>
<th align="left"><strong>SUM(OrderPrice)</strong></th>
</tr>
<tr>
<td><strong>Hansen</strong></td>
<td><strong>2000</strong></td>
</tr>
<tr>
<td><strong>Nilsen</strong></td>
<td><strong>1700</strong></td>
</tr>
<tr>
<td><strong>Jensen</strong></td>
<td><strong>2000</strong></td>
</tr>
</tbody>
</table>
<p><strong>Nice! Isn&#8217;t it? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </strong></p>
<p><strong>Let&#8217;s see what happens if we omit the GROUP BY statement:</strong></p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT Customer,SUM(OrderPrice) FROM Orders</strong></td>
</tr>
</tbody>
</table>
<p><strong>The result-set will look like this:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="50%">
<tbody>
<tr>
<th align="left"><strong>Customer</strong></th>
<th align="left"><strong>SUM(OrderPrice)</strong></th>
</tr>
<tr>
<td><strong>Hansen</strong></td>
<td><strong>5700</strong></td>
</tr>
<tr>
<td><strong>Nilsen</strong></td>
<td><strong>5700</strong></td>
</tr>
<tr>
<td><strong>Hansen</strong></td>
<td><strong>5700</strong></td>
</tr>
<tr>
<td><strong>Hansen</strong></td>
<td><strong>5700</strong></td>
</tr>
<tr>
<td><strong>Jensen</strong></td>
<td><strong>5700</strong></td>
</tr>
<tr>
<td><strong>Nilsen</strong></td>
<td><strong>5700</strong></td>
</tr>
</tbody>
</table>
<p><strong>The result-set above is not what we wanted.</strong></p>
<p><strong>Explanation of why the above SELECT statement cannot be used:</strong> The SELECT statement above has two columns specified (Customer and SUM(OrderPrice). The &#8220;SUM(OrderPrice)&#8221; returns a single value (that is the total sum of the &#8220;OrderPrice&#8221; column), while &#8220;Customer&#8221; returns 6 values (one value for each row in the &#8220;Orders&#8221; table). This will therefore not give us the correct result. However, you have seen that the GROUP BY statement solves this problem.</p>
<hr />
<h2><strong>GROUP BY More Than One Column</strong></h2>
<p><strong>We can also use the GROUP BY statement on more than one column, like this:</strong></p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT Customer,OrderDate,SUM(OrderPrice) FROM Orders<br />
GROUP BY Customer,OrderDate</strong></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdevelpers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdevelpers.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdevelpers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdevelpers.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webdevelpers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webdevelpers.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webdevelpers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webdevelpers.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdevelpers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdevelpers.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdevelpers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdevelpers.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdevelpers.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdevelpers.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=162&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webdevelpers.wordpress.com/2010/05/31/the-sql-group-by-statement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1e10f88b240ebd8a4d47f1ebb634403?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webdevelpers</media:title>
		</media:content>
	</item>
		<item>
		<title>The MIN() Function</title>
		<link>http://webdevelpers.wordpress.com/2010/05/31/the-min-function/</link>
		<comments>http://webdevelpers.wordpress.com/2010/05/31/the-min-function/#comments</comments>
		<pubDate>Mon, 31 May 2010 03:29:26 +0000</pubDate>
		<dc:creator>webdevelopers</dc:creator>
				<category><![CDATA[SAL min function]]></category>

		<guid isPermaLink="false">http://webdevelpers.wordpress.com/?p=159</guid>
		<description><![CDATA[The MIN() Function The MIN() function returns the smallest value of the selected column. SQL MIN() Syntax SELECT MIN(column_name) FROM table_name SQL MIN() Example We have the following &#8220;Orders&#8221; table: O_Id OrderDate OrderPrice Customer 1 2008/11/12 1000 Hansen 2 2008/10/23 1600 Nilsen 3 2008/09/02 700 Hansen 4 2008/09/03 300 Hansen 5 2008/08/30 2000 Jensen 6 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=159&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><strong>The MIN() Function</strong></h2>
<p><strong>The MIN() function returns the smallest value of the selected column.</strong></p>
<h3><strong>SQL MIN() Syntax</strong></h3>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT MIN(column_name) FROM table_name</strong></td>
</tr>
</tbody>
</table>
<p><strong><br />
</strong></p>
<hr />
<h2><strong>SQL MIN() Example</strong></h2>
<p><strong>We have the following &#8220;Orders&#8221; table:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th align="left"><strong>O_Id</strong></th>
<th align="left"><strong>OrderDate</strong></th>
<th align="left"><strong>OrderPrice</strong></th>
<th align="left"><strong>Customer</strong></th>
</tr>
<tr>
<td><strong>1</strong></td>
<td><strong>2008/11/12</strong></td>
<td><strong>1000</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>2</strong></td>
<td><strong>2008/10/23</strong></td>
<td><strong>1600</strong></td>
<td><strong>Nilsen</strong></td>
</tr>
<tr>
<td><strong>3</strong></td>
<td><strong>2008/09/02</strong></td>
<td><strong>700</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>4</strong></td>
<td><strong>2008/09/03</strong></td>
<td><strong>300</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>5</strong></td>
<td><strong>2008/08/30</strong></td>
<td><strong>2000</strong></td>
<td><strong>Jensen</strong></td>
</tr>
<tr>
<td><strong>6</strong></td>
<td><strong>2008/10/04</strong></td>
<td><strong>100</strong></td>
<td><strong>Nilsen</strong></td>
</tr>
</tbody>
</table>
<p><strong>Now we want to find the smallest value of the &#8220;OrderPrice&#8221; column.</strong></p>
<p><strong>We use the following SQL statement:</strong></p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT MIN(OrderPrice) AS SmallestOrderPrice FROM Orders</strong></td>
</tr>
</tbody>
</table>
<p><strong>The result-set will look like this:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="50%">
<tbody>
<tr>
<th align="left"><strong>SmallestOrderPrice</strong></th>
</tr>
<tr>
<td><strong>100</strong></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdevelpers.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdevelpers.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdevelpers.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdevelpers.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webdevelpers.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webdevelpers.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webdevelpers.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webdevelpers.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdevelpers.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdevelpers.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdevelpers.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdevelpers.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdevelpers.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdevelpers.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=159&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webdevelpers.wordpress.com/2010/05/31/the-min-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1e10f88b240ebd8a4d47f1ebb634403?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webdevelpers</media:title>
		</media:content>
	</item>
		<item>
		<title>The MAX() Function</title>
		<link>http://webdevelpers.wordpress.com/2010/05/31/the-max-function/</link>
		<comments>http://webdevelpers.wordpress.com/2010/05/31/the-max-function/#comments</comments>
		<pubDate>Mon, 31 May 2010 03:24:19 +0000</pubDate>
		<dc:creator>webdevelopers</dc:creator>
				<category><![CDATA[SQL max]]></category>

		<guid isPermaLink="false">http://webdevelpers.wordpress.com/?p=157</guid>
		<description><![CDATA[The MAX() Function The MAX() function returns the largest value of the selected column. SQL MAX() Syntax SELECT MAX(column_name) FROM table_name SQL MAX() Example We have the following &#8220;Orders&#8221; table: O_Id OrderDate OrderPrice Customer 1 2008/11/12 1000 Hansen 2 2008/10/23 1600 Nilsen 3 2008/09/02 700 Hansen 4 2008/09/03 300 Hansen 5 2008/08/30 2000 Jensen 6 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=157&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><strong>The MAX() Function</strong></h2>
<p><strong>The MAX() function returns the largest value of the selected column.</strong></p>
<h3><strong>SQL MAX() Syntax</strong></h3>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT MAX(column_name) FROM table_name</strong></td>
</tr>
</tbody>
</table>
<p><strong><br />
</strong></p>
<hr />
<h2><strong>SQL MAX() Example</strong></h2>
<p><strong>We have the following &#8220;Orders&#8221; table:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th align="left"><strong>O_Id</strong></th>
<th align="left"><strong>OrderDate</strong></th>
<th align="left"><strong>OrderPrice</strong></th>
<th align="left"><strong>Customer</strong></th>
</tr>
<tr>
<td><strong>1</strong></td>
<td><strong>2008/11/12</strong></td>
<td><strong>1000</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>2</strong></td>
<td><strong>2008/10/23</strong></td>
<td><strong>1600</strong></td>
<td><strong>Nilsen</strong></td>
</tr>
<tr>
<td><strong>3</strong></td>
<td><strong>2008/09/02</strong></td>
<td><strong>700</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>4</strong></td>
<td><strong>2008/09/03</strong></td>
<td><strong>300</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>5</strong></td>
<td><strong>2008/08/30</strong></td>
<td><strong>2000</strong></td>
<td><strong>Jensen</strong></td>
</tr>
<tr>
<td><strong>6</strong></td>
<td><strong>2008/10/04</strong></td>
<td><strong>100</strong></td>
<td><strong>Nilsen</strong></td>
</tr>
</tbody>
</table>
<p><strong>Now we want to find the largest value of the &#8220;OrderPrice&#8221; column.</strong></p>
<p><strong>We use the following SQL statement:</strong></p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT MAX(OrderPrice) AS LargestOrderPrice FROM Orders</strong></td>
</tr>
</tbody>
</table>
<p><strong>The result-set will look like this:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="50%">
<tbody>
<tr>
<th align="left"><strong>LargestOrderPrice</strong></th>
</tr>
<tr>
<td><strong>2000</strong></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdevelpers.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdevelpers.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdevelpers.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdevelpers.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webdevelpers.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webdevelpers.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webdevelpers.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webdevelpers.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdevelpers.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdevelpers.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdevelpers.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdevelpers.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdevelpers.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdevelpers.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=157&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webdevelpers.wordpress.com/2010/05/31/the-max-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1e10f88b240ebd8a4d47f1ebb634403?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webdevelpers</media:title>
		</media:content>
	</item>
		<item>
		<title>The LAST() Function</title>
		<link>http://webdevelpers.wordpress.com/2010/05/31/the-last-function/</link>
		<comments>http://webdevelpers.wordpress.com/2010/05/31/the-last-function/#comments</comments>
		<pubDate>Mon, 31 May 2010 03:22:44 +0000</pubDate>
		<dc:creator>webdevelopers</dc:creator>
				<category><![CDATA[SQL last function]]></category>

		<guid isPermaLink="false">http://webdevelpers.wordpress.com/?p=155</guid>
		<description><![CDATA[The LAST() Function The LAST() function returns the last value of the selected column. SQL LAST() Syntax SELECT LAST(column_name) FROM table_name SQL LAST() Example We have the following &#8220;Orders&#8221; table: O_Id OrderDate OrderPrice Customer 1 2008/11/12 1000 Hansen 2 2008/10/23 1600 Nilsen 3 2008/09/02 700 Hansen 4 2008/09/03 300 Hansen 5 2008/08/30 2000 Jensen 6 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=155&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><strong>The LAST() Function</strong></h2>
<p><strong>The LAST() function returns the last value of the selected column.</strong></p>
<h3><strong>SQL LAST() Syntax</strong></h3>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT LAST(column_name) FROM table_name</strong></td>
</tr>
</tbody>
</table>
<p><strong><br />
</strong></p>
<hr />
<h2><strong>SQL LAST() Example</strong></h2>
<p><strong>We have the following &#8220;Orders&#8221; table:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th align="left"><strong>O_Id</strong></th>
<th align="left"><strong>OrderDate</strong></th>
<th align="left"><strong>OrderPrice</strong></th>
<th align="left"><strong>Customer</strong></th>
</tr>
<tr>
<td><strong>1</strong></td>
<td><strong>2008/11/12</strong></td>
<td><strong>1000</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>2</strong></td>
<td><strong>2008/10/23</strong></td>
<td><strong>1600</strong></td>
<td><strong>Nilsen</strong></td>
</tr>
<tr>
<td><strong>3</strong></td>
<td><strong>2008/09/02</strong></td>
<td><strong>700</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>4</strong></td>
<td><strong>2008/09/03</strong></td>
<td><strong>300</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>5</strong></td>
<td><strong>2008/08/30</strong></td>
<td><strong>2000</strong></td>
<td><strong>Jensen</strong></td>
</tr>
<tr>
<td><strong>6</strong></td>
<td><strong>2008/10/04</strong></td>
<td><strong>100</strong></td>
<td><strong>Nilsen</strong></td>
</tr>
</tbody>
</table>
<p><strong>Now we want to find the last value of the &#8220;OrderPrice&#8221; column.</strong></p>
<p><strong>We use the following SQL statement:</strong></p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT LAST(OrderPrice) AS LastOrderPrice FROM Orders</strong></td>
</tr>
</tbody>
</table>
<p><strong><img src="http://www.w3schools.com/sql/lamp.gif" alt="Note" /> </strong><strong>Tip: Workaround if LAST() function is not supported:</strong></p>
<table id="table1" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT OrderPrice FROM Orders ORDER BY O_Id DESC LIMIT 1</strong></td>
</tr>
</tbody>
</table>
<p><strong>The result-set will look like this:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="50%">
<tbody>
<tr>
<th align="left"><strong>LastOrderPrice</strong></th>
</tr>
<tr>
<td><strong>100</strong></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdevelpers.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdevelpers.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdevelpers.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdevelpers.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webdevelpers.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webdevelpers.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webdevelpers.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webdevelpers.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdevelpers.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdevelpers.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdevelpers.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdevelpers.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdevelpers.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdevelpers.wordpress.com/155/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=155&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webdevelpers.wordpress.com/2010/05/31/the-last-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1e10f88b240ebd8a4d47f1ebb634403?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webdevelpers</media:title>
		</media:content>

		<media:content url="http://www.w3schools.com/sql/lamp.gif" medium="image">
			<media:title type="html">Note</media:title>
		</media:content>
	</item>
		<item>
		<title>The FIRST() Function</title>
		<link>http://webdevelpers.wordpress.com/2010/05/31/the-first-function/</link>
		<comments>http://webdevelpers.wordpress.com/2010/05/31/the-first-function/#comments</comments>
		<pubDate>Mon, 31 May 2010 03:20:20 +0000</pubDate>
		<dc:creator>webdevelopers</dc:creator>
				<category><![CDATA[SQL first function]]></category>

		<guid isPermaLink="false">http://webdevelpers.wordpress.com/?p=153</guid>
		<description><![CDATA[The FIRST() Function The FIRST() function returns the first value of the selected column. SQL FIRST() Syntax SELECT FIRST(column_name) FROM table_name SQL FIRST() Example We have the following &#8220;Orders&#8221; table: O_Id OrderDate OrderPrice Customer 1 2008/11/12 1000 Hansen 2 2008/10/23 1600 Nilsen 3 2008/09/02 700 Hansen 4 2008/09/03 300 Hansen 5 2008/08/30 2000 Jensen 6 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=153&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><strong>The FIRST() Function</strong></h2>
<p><strong>The FIRST() function returns the first value of the selected column.</strong></p>
<h3><strong>SQL FIRST() Syntax</strong></h3>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT FIRST(column_name) FROM table_name</strong></td>
</tr>
</tbody>
</table>
<p><strong><br />
</strong></p>
<hr />
<h2><strong>SQL FIRST() Example</strong></h2>
<p><strong>We have the following &#8220;Orders&#8221; table:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th align="left"><strong>O_Id</strong></th>
<th align="left"><strong>OrderDate</strong></th>
<th align="left"><strong>OrderPrice</strong></th>
<th align="left"><strong>Customer</strong></th>
</tr>
<tr>
<td><strong>1</strong></td>
<td><strong>2008/11/12</strong></td>
<td><strong>1000</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>2</strong></td>
<td><strong>2008/10/23</strong></td>
<td><strong>1600</strong></td>
<td><strong>Nilsen</strong></td>
</tr>
<tr>
<td><strong>3</strong></td>
<td><strong>2008/09/02</strong></td>
<td><strong>700</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>4</strong></td>
<td><strong>2008/09/03</strong></td>
<td><strong>300</strong></td>
<td><strong>Hansen</strong></td>
</tr>
<tr>
<td><strong>5</strong></td>
<td><strong>2008/08/30</strong></td>
<td><strong>2000</strong></td>
<td><strong>Jensen</strong></td>
</tr>
<tr>
<td><strong>6</strong></td>
<td><strong>2008/10/04</strong></td>
<td><strong>100</strong></td>
<td><strong>Nilsen</strong></td>
</tr>
</tbody>
</table>
<p><strong>Now we want to find the first value of the &#8220;OrderPrice&#8221; column.</strong></p>
<p><strong>We use the following SQL statement:</strong></p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT FIRST(OrderPrice) AS FirstOrderPrice FROM Orders</strong></td>
</tr>
</tbody>
</table>
<p><strong><img src="http://www.w3schools.com/sql/lamp.gif" alt="Note" /> </strong><strong>Tip: Workaround if FIRST() function is not supported:</strong></p>
<table id="table1" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT OrderPrice FROM Orders ORDER BY O_Id LIMIT 1</strong></td>
</tr>
</tbody>
</table>
<p><strong>The result-set will look like this:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="50%">
<tbody>
<tr>
<th align="left"><strong>FirstOrderPrice</strong></th>
</tr>
<tr>
<td><strong>1000</strong></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdevelpers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdevelpers.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdevelpers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdevelpers.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webdevelpers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webdevelpers.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webdevelpers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webdevelpers.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdevelpers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdevelpers.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdevelpers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdevelpers.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdevelpers.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdevelpers.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=153&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webdevelpers.wordpress.com/2010/05/31/the-first-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1e10f88b240ebd8a4d47f1ebb634403?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webdevelpers</media:title>
		</media:content>

		<media:content url="http://www.w3schools.com/sql/lamp.gif" medium="image">
			<media:title type="html">Note</media:title>
		</media:content>
	</item>
		<item>
		<title>The SQL FORMAT() Function</title>
		<link>http://webdevelpers.wordpress.com/2010/05/31/the-sql-format-function/</link>
		<comments>http://webdevelpers.wordpress.com/2010/05/31/the-sql-format-function/#comments</comments>
		<pubDate>Mon, 31 May 2010 03:18:36 +0000</pubDate>
		<dc:creator>webdevelopers</dc:creator>
				<category><![CDATA[SAL format function]]></category>

		<guid isPermaLink="false">http://webdevelpers.wordpress.com/?p=151</guid>
		<description><![CDATA[The FORMAT() Function The FORMAT() function is used to format how a field is to be displayed. SQL FORMAT() Syntax SELECT FORMAT(column_name,format) FROM table_name Parameter Description column_name Required. The field to be formatted. format Required. Specifies the format. SQL FORMAT() Example We have the following &#8220;Products&#8221; table: Prod_Id ProductName Unit UnitPrice 1 Jarlsberg 1000 g [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=151&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><strong>The FORMAT() Function</strong></h2>
<p><strong>The FORMAT() function is used to format how a field is to be displayed.</strong></p>
<h3><strong>SQL FORMAT() Syntax</strong></h3>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT FORMAT(column_name,format) FROM table_name</strong></td>
</tr>
</tbody>
</table>
<p><strong><br />
</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th width="20%" align="left" valign="top"><strong>Parameter</strong></th>
<th width="80%" align="left" valign="top"><strong>Description</strong></th>
</tr>
<tr>
<td valign="top"><strong>column_name</strong></td>
<td valign="top"><strong>Required. The field to be formatted.</strong></td>
</tr>
<tr>
<td valign="top"><strong>format</strong></td>
<td valign="top"><strong>Required. Specifies the format.</strong></td>
</tr>
</tbody>
</table>
<p><strong><br />
</strong></p>
<hr />
<h2><strong>SQL FORMAT() Example</strong></h2>
<p><strong>We have the following &#8220;Products&#8221; table:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th align="left"><strong>Prod_Id</strong></th>
<th align="left"><strong>ProductName</strong></th>
<th align="left"><strong>Unit</strong></th>
<th align="left"><strong>UnitPrice</strong></th>
</tr>
<tr>
<td><strong>1</strong></td>
<td><strong>Jarlsberg</strong></td>
<td><strong>1000 g</strong></td>
<td><strong>10.45</strong></td>
</tr>
<tr>
<td><strong>2</strong></td>
<td><strong>Mascarpone</strong></td>
<td><strong>1000 g</strong></td>
<td><strong>32.56</strong></td>
</tr>
<tr>
<td><strong>3</strong></td>
<td><strong>Gorgonzola</strong></td>
<td><strong>1000 g</strong></td>
<td><strong>15.67</strong></td>
</tr>
</tbody>
</table>
<p><strong>Now we want to display the products and prices per today&#8217;s date (with today&#8217;s date displayed in the following format &#8220;YYYY-MM-DD&#8221;).</strong></p>
<p><strong>We use the following SELECT statement:</strong></p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>SELECT ProductName, UnitPrice, FORMAT(Now(),&#8217;YYYY-MM-DD&#8217;) as PerDate<br />
FROM Products</strong></td>
</tr>
</tbody>
</table>
<p><strong>The result-set will look like this:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th align="left"><strong>ProductName</strong></th>
<th align="left"><strong>UnitPrice</strong></th>
<th align="left"><strong>PerDate</strong></th>
</tr>
<tr>
<td><strong>Jarlsberg</strong></td>
<td><strong>10.45</strong></td>
<td><strong>2008-10-07</strong></td>
</tr>
<tr>
<td><strong>Mascarpone</strong></td>
<td><strong>32.56</strong></td>
<td><strong>2008-10-07</strong></td>
</tr>
<tr>
<td><strong>Gorgonzola</strong></td>
<td><strong>15.67</strong></td>
<td><strong>2008-10-07</strong></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdevelpers.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdevelpers.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdevelpers.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdevelpers.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webdevelpers.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webdevelpers.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webdevelpers.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webdevelpers.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdevelpers.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdevelpers.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdevelpers.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdevelpers.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdevelpers.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdevelpers.wordpress.com/151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=151&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webdevelpers.wordpress.com/2010/05/31/the-sql-format-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1e10f88b240ebd8a4d47f1ebb634403?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webdevelpers</media:title>
		</media:content>
	</item>
		<item>
		<title>The SQL CREATE TABLE Statement</title>
		<link>http://webdevelpers.wordpress.com/2010/05/31/the-sql-create-table-statement/</link>
		<comments>http://webdevelpers.wordpress.com/2010/05/31/the-sql-create-table-statement/#comments</comments>
		<pubDate>Mon, 31 May 2010 03:16:10 +0000</pubDate>
		<dc:creator>webdevelopers</dc:creator>
				<category><![CDATA[SQL creat table]]></category>

		<guid isPermaLink="false">http://webdevelpers.wordpress.com/?p=148</guid>
		<description><![CDATA[The CREATE TABLE Statement The CREATE TABLE statement is used to create a table in a database. SQL CREATE TABLE Syntax CREATE TABLE table_name ( column_name1 data_type, column_name2 data_type, column_name3 data_type, &#8230;. ) The data type specifies what type of data the column can hold. For a complete reference of all the data types available [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=148&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2><strong>The CREATE TABLE Statement</strong></h2>
<p><strong>The CREATE TABLE statement is used to create a table in a database.</strong></p>
<h3><strong>SQL CREATE TABLE Syntax</strong></h3>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>CREATE TABLE table_name<br />
(<br />
column_name1 data_type,<br />
column_name2 data_type,<br />
column_name3 data_type,<br />
&#8230;.<br />
)</strong></td>
</tr>
</tbody>
</table>
<p><strong>The data type specifies what type of data the column can hold. For a complete  reference of all the data types available in MS Access, MySQL, and SQL Server,  go to our complete <a href="http://www.w3schools.com/sql/sql_datatypes.asp">Data Types reference</a>.</strong></p>
<hr />
<h2><strong>CREATE TABLE Example</strong></h2>
<p><strong>Now we want to create a table called &#8220;Persons&#8221; that contains five columns:  P_Id, LastName, FirstName, Address, and City.</strong></p>
<p><strong>We use the following CREATE TABLE statement:</strong></p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><strong>CREATE TABLE Persons<br />
(<br />
P_Id int,<br />
LastName varchar(255),<br />
FirstName varchar(255),<br />
Address varchar(255),<br />
City varchar(255)<br />
)</strong></td>
</tr>
</tbody>
</table>
<p><strong>The P_Id column is of type int and will hold a number. The LastName, FirstName, Address, and City columns are of type varchar with a maximum length of 255 characters.</strong></p>
<p><strong>The empty &#8220;Persons&#8221; table will now look like this:</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th align="left"><strong>P_Id</strong></th>
<th align="left"><strong>LastName</strong></th>
<th align="left"><strong>FirstName</strong></th>
<th align="left"><strong>Address</strong></th>
<th align="left"><strong>City</strong></th>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>The empty table can be filled with data with the INSERT INTO statement.</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/webdevelpers.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/webdevelpers.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/webdevelpers.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/webdevelpers.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/webdevelpers.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/webdevelpers.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/webdevelpers.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/webdevelpers.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/webdevelpers.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/webdevelpers.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/webdevelpers.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/webdevelpers.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/webdevelpers.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/webdevelpers.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=webdevelpers.wordpress.com&amp;blog=13937712&amp;post=148&amp;subd=webdevelpers&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://webdevelpers.wordpress.com/2010/05/31/the-sql-create-table-statement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e1e10f88b240ebd8a4d47f1ebb634403?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">webdevelpers</media:title>
		</media:content>
	</item>
	</channel>
</rss>
