<?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>Ubiquity Data - Your IT Department &#187; Blog</title>
	<atom:link href="http://www.ubiquitydata.com/category/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ubiquitydata.com</link>
	<description></description>
	<lastBuildDate>Sat, 11 Oct 2014 14:39:28 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>http://www.inc.com/geoffrey-james/5-traits-of-highly-successful-salesmen.html?utm_source=twitterfeed</title>
		<link>http://www.ubiquitydata.com/httpwww-inc-comgeoffrey-james5-traits-of-highly-successful-salesmen-htmlutm_sourcetwitterfeed/</link>
		<comments>http://www.ubiquitydata.com/httpwww-inc-comgeoffrey-james5-traits-of-highly-successful-salesmen-htmlutm_sourcetwitterfeed/#comments</comments>
		<pubDate>Sat, 11 Oct 2014 14:37:45 +0000</pubDate>
		<dc:creator><![CDATA[Fermin Iglesias]]></dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.ubiquitydata.com/?p=378</guid>
		<description><![CDATA[<p>The post <a rel="nofollow" href="http://www.ubiquitydata.com/httpwww-inc-comgeoffrey-james5-traits-of-highly-successful-salesmen-htmlutm_sourcetwitterfeed/">http://www.inc.com/geoffrey-james/5-traits-of-highly-successful-salesmen.html?utm_source=twitterfeed</a> appeared first on <a rel="nofollow" href="http://www.ubiquitydata.com">Ubiquity Data - Your IT Department</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>The post <a rel="nofollow" href="http://www.ubiquitydata.com/httpwww-inc-comgeoffrey-james5-traits-of-highly-successful-salesmen-htmlutm_sourcetwitterfeed/">http://www.inc.com/geoffrey-james/5-traits-of-highly-successful-salesmen.html?utm_source=twitterfeed</a> appeared first on <a rel="nofollow" href="http://www.ubiquitydata.com">Ubiquity Data - Your IT Department</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubiquitydata.com/httpwww-inc-comgeoffrey-james5-traits-of-highly-successful-salesmen-htmlutm_sourcetwitterfeed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autonet OEM Chooses UDI</title>
		<link>http://www.ubiquitydata.com/autonet-oem-chooses-udi/</link>
		<comments>http://www.ubiquitydata.com/autonet-oem-chooses-udi/#comments</comments>
		<pubDate>Sat, 07 Dec 2013 19:23:36 +0000</pubDate>
		<dc:creator><![CDATA[Fermin Iglesias]]></dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Company News]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Support]]></category>

		<guid isPermaLink="false">http://www.ubiquitydata.com/?p=480</guid>
		<description><![CDATA[<p>Autonet OEM LLC. chooses UDI to serve as their IT support team. UDI will handle all of Global’s advanced needs including the creation of a web-based inventory solution, proactive hardware support, and the virtualization of their locations in Coral Gables, FL. UDI is proud to have Autonet as a client and looks forward to a...</p>
<p>The post <a rel="nofollow" href="http://www.ubiquitydata.com/autonet-oem-chooses-udi/">Autonet OEM Chooses UDI</a> appeared first on <a rel="nofollow" href="http://www.ubiquitydata.com">Ubiquity Data - Your IT Department</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Autonet OEM LLC. chooses UDI to serve as their IT support team. UDI will handle all of Global’s advanced needs including the creation of a web-based inventory solution, proactive hardware support, and the virtualization of their locations in Coral Gables, FL. UDI is proud to have Autonet as a client and looks forward to a long and prosperous partnership.</p>
<p>The post <a rel="nofollow" href="http://www.ubiquitydata.com/autonet-oem-chooses-udi/">Autonet OEM Chooses UDI</a> appeared first on <a rel="nofollow" href="http://www.ubiquitydata.com">Ubiquity Data - Your IT Department</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubiquitydata.com/autonet-oem-chooses-udi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Multiple Fields Quickly and Easily in a SQL Statement</title>
		<link>http://www.ubiquitydata.com/setting-multiple-fields-quickly-easily-sql-statement/</link>
		<comments>http://www.ubiquitydata.com/setting-multiple-fields-quickly-easily-sql-statement/#comments</comments>
		<pubDate>Sun, 13 Oct 2013 13:19:57 +0000</pubDate>
		<dc:creator><![CDATA[Fermin Iglesias]]></dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.ubiquitydata.com/?p=342</guid>
		<description><![CDATA[<p>When performing an update on multiple fields you will be temped to do multiple sub queries. For example: While that code will work, it is very inefficient because SQL must perform behind the scene unions in order to execute the query. If you were setting 100 fields, SQL would execute 101 statements in order for...</p>
<p>The post <a rel="nofollow" href="http://www.ubiquitydata.com/setting-multiple-fields-quickly-easily-sql-statement/">Setting Multiple Fields Quickly and Easily in a SQL Statement</a> appeared first on <a rel="nofollow" href="http://www.ubiquitydata.com">Ubiquity Data - Your IT Department</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;">When performing an update on multiple fields you will be temped to do multiple sub queries. For example:</p>
<p style="text-align: center;"><a href="http://localhost/wp-content/uploads/2013/10/SQLCodeSnippet11.png"><img class="wp-image-344 aligncenter" alt="SQLCodeSnippet1" src="http://www.ubiquitydata.com/wp-content/uploads/2013/10/SQLCodeSnippet11.png" width="335" height="40" /></a></p>
<p style="text-align: justify;">While that code will work, it is very inefficient because SQL must perform behind the scene unions in order to execute the query. If you were setting 100 fields, SQL would execute 101 statements in order for the one query to run. Additionally, this is a maintenance nightmare as the where clause has to be entered/fixed for each subquery.</p>
<p style="text-align: justify;">One final issue with this style is that a coder will typically copy/paste each subquery, and that could cause a rush job to set fields to incorrect values as the programmer could miss a step during creation. While this is an advanced SQL topic, even the beginner should see the above snippet as being messy.<br />
The best-practice to perform this task is to create one sub query and use it as a source. Please look at the following snippet:</p>
<p style="text-align: center;"><a href="http://localhost/wp-content/uploads/2013/10/SQLCodeSnippet21.png"><img class="aligncenter  wp-image-345" alt="SQLCodeSnippet2" src="http://www.ubiquitydata.com/wp-content/uploads/2013/10/SQLCodeSnippet21.png" /></a></p>
<p style="text-align: justify;">Notice the FROM section (outlined in green) above. in this section of the statement you can chose your source table, all of the fields you want to use, and any where clauses you may need. This section resembles the sub queries used in the messy example, but instead selects all fields at once preventing the need for SQL to do union queries. The <em>FROM</em> section above has the alias MySource and is reference in that manner.</p>
<p style="text-align: justify;">Please pay special attention to the where clause (highlighted in yellow). You still need to be able to match up record to record in the update statement. In this design you only need one where clause so there is less confusion and less code to maintain.</p>
<p style="text-align: justify;">*IMPORTANT* Make sure you select the fields from your source query that are required for your join in your where clause.</p>
<p style="text-align: justify;">Also note that you can have extra fields in the source table, so in theory you could say <em>(Select * from MyTable)</em> as MySource but that is considered bad style in SQL programming. It is always better for a developer to spell out the field names unless doing basic queries that will not be saved.</p>
<p style="text-align: justify;">Hope this helps.</p>
<p>Scott</p>
<p>The post <a rel="nofollow" href="http://www.ubiquitydata.com/setting-multiple-fields-quickly-easily-sql-statement/">Setting Multiple Fields Quickly and Easily in a SQL Statement</a> appeared first on <a rel="nofollow" href="http://www.ubiquitydata.com">Ubiquity Data - Your IT Department</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubiquitydata.com/setting-multiple-fields-quickly-easily-sql-statement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
