<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6870229076754408350</id><updated>2012-02-16T11:28:21.642Z</updated><category term='SSMS'/><category term='Templates'/><title type='text'>SQL 4 life</title><subtitle type='html'>Welcome to the world of SQL code</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sql-4-life.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6870229076754408350/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sql-4-life.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Christopher Stobbs</name><uri>http://www.blogger.com/profile/03018371683511660461</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6870229076754408350.post-5114652663658592762</id><published>2009-06-11T10:17:00.001+01:00</published><updated>2009-06-11T10:17:30.688+01:00</updated><title type='text'>Random Numbers</title><summary type='text'>This is going to be a very short post, but I keep seeing it pop up in forums so thought I would put my two cents in.  When trying to generate a random number say between 1 and 5, I’m noticing a lot of people using the follow notation:             1: CAST(5 * RAND() + 1 as INT)
&lt;!--CRLF--&gt;


This method will work if you are looking to obtain a single random number. If however you are selecting </summary><link rel='replies' type='application/atom+xml' href='http://sql-4-life.blogspot.com/feeds/5114652663658592762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6870229076754408350&amp;postID=5114652663658592762' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6870229076754408350/posts/default/5114652663658592762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6870229076754408350/posts/default/5114652663658592762'/><link rel='alternate' type='text/html' href='http://sql-4-life.blogspot.com/2009/06/random-numbers.html' title='Random Numbers'/><author><name>Christopher Stobbs</name><uri>http://www.blogger.com/profile/03018371683511660461</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6870229076754408350.post-7369033213670269126</id><published>2009-03-26T13:54:00.015Z</published><updated>2009-03-26T14:54:29.244Z</updated><title type='text'>The order of INNER JOIN’s</title><summary type='text'>I want to address a topic that I think a lot of people have been taught in the past and still live by today. I’ve heard different variations of this “rule” in the years that I have been programming and they go something like this.        “Where possible ALWAYS have you smallest tables joined to first.”     “Where possible ALWAYS have you largest tables joined to first”    So already you might </summary><link rel='replies' type='application/atom+xml' href='http://sql-4-life.blogspot.com/feeds/7369033213670269126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6870229076754408350&amp;postID=7369033213670269126' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6870229076754408350/posts/default/7369033213670269126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6870229076754408350/posts/default/7369033213670269126'/><link rel='alternate' type='text/html' href='http://sql-4-life.blogspot.com/2009/03/order-of-inner-joins.html' title='The order of INNER JOIN’s'/><author><name>Christopher Stobbs</name><uri>http://www.blogger.com/profile/03018371683511660461</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_A2_KzTtICT8/ScuRQ03mLPI/AAAAAAAAAHo/Sz_4bGHPiTY/s72-c/Plan1.jpg' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6870229076754408350.post-4528404917456715556</id><published>2009-03-24T17:01:00.002Z</published><updated>2009-03-27T12:47:52.949Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='Templates'/><category scheme='http://www.blogger.com/atom/ns#' term='SSMS'/><title type='text'>SSMS – Manage your Templates</title><summary type='text'>I’ve noticed that some people are struggling with the setting up of their existing templates in SSMS 2005. This posting with deal with two issues.     Locating the file path of your templates.     Tidying up the default templates.    Locating the file path of your templates.  There are two locations for templates when working with SSMS 2005:  Local Store:              C:\Documents and Settings\[</summary><link rel='replies' type='application/atom+xml' href='http://sql-4-life.blogspot.com/feeds/4528404917456715556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6870229076754408350&amp;postID=4528404917456715556' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6870229076754408350/posts/default/4528404917456715556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6870229076754408350/posts/default/4528404917456715556'/><link rel='alternate' type='text/html' href='http://sql-4-life.blogspot.com/2009/03/ssms-manage-your-templates.html' title='SSMS – Manage your Templates'/><author><name>Christopher Stobbs</name><uri>http://www.blogger.com/profile/03018371683511660461</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_A2_KzTtICT8/SckR8ySyDmI/AAAAAAAAAGE/0ac88JqxzuU/s72-c/main%20store_thumb%5B2%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6870229076754408350.post-2295628038977033776</id><published>2009-03-13T13:23:00.001Z</published><updated>2009-03-13T13:23:29.822Z</updated><title type='text'>Welcome</title><summary type='text'>Hi All,  This is my first post on my first blog.  For now I will be adding reader links to some other developer’s blogs/sites that I think everyone could learn a lot from.  I hope to be adding some of my knowledge and experience to this blog very soon.  I would also like to start by saying that some of the code tips and snippets that I will be posting here may sometimes be borrowed from other </summary><link rel='replies' type='application/atom+xml' href='http://sql-4-life.blogspot.com/feeds/2295628038977033776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6870229076754408350&amp;postID=2295628038977033776' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6870229076754408350/posts/default/2295628038977033776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6870229076754408350/posts/default/2295628038977033776'/><link rel='alternate' type='text/html' href='http://sql-4-life.blogspot.com/2009/03/welcome.html' title='Welcome'/><author><name>Christopher Stobbs</name><uri>http://www.blogger.com/profile/03018371683511660461</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
