<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Useful MSSQL Queries and Statements</title>
	<atom:link href="http://websitedesign.websitesinaflash.com/2009/05/useful-mssql-queries-and-statements/feed/" rel="self" type="application/rss+xml" />
	<link>http://websitedesign.websitesinaflash.com/2009/05/useful-mssql-queries-and-statements/</link>
	<description>Website Design, PHP, CSS and Humor</description>
	<lastBuildDate>Mon, 06 Feb 2012 22:15:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Mike Wasserman</title>
		<link>http://websitedesign.websitesinaflash.com/2009/05/useful-mssql-queries-and-statements/comment-page-1/#comment-311</link>
		<dc:creator>Mike Wasserman</dc:creator>
		<pubDate>Tue, 13 Dec 2011 00:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://websitedesign.websitesinaflash.com/?p=343#comment-311</guid>
		<description>I need to solve this query:

List all orders by customer and the time difference from:
“Received” to “Keyed”     as [TurnTime1]
“Keyed” to “Printed”    as [TurnTime2]
“Printed” to “Delivered”     as [TurnTime3]
“Received” to “Delivered” as [TurnTime4]
Show all time differences in minutes
Return CustomerName, OrderTypeName, LoanNumber, TurnTime1, TurnTime2, TurnTime3, TurnTime4

The TurnTime* values come from rows in the OrderActivity table and the date information is from the ActivityDate column.

What approach to use? Nested sub query or Temp tables?

Thanks
Mike</description>
		<content:encoded><![CDATA[<p>I need to solve this query:</p>
<p>List all orders by customer and the time difference from:<br />
“Received” to “Keyed”     as [TurnTime1]<br />
“Keyed” to “Printed”    as [TurnTime2]<br />
“Printed” to “Delivered”     as [TurnTime3]<br />
“Received” to “Delivered” as [TurnTime4]<br />
Show all time differences in minutes<br />
Return CustomerName, OrderTypeName, LoanNumber, TurnTime1, TurnTime2, TurnTime3, TurnTime4</p>
<p>The TurnTime* values come from rows in the OrderActivity table and the date information is from the ActivityDate column.</p>
<p>What approach to use? Nested sub query or Temp tables?</p>
<p>Thanks<br />
Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Soda Bob Curtis</title>
		<link>http://websitedesign.websitesinaflash.com/2009/05/useful-mssql-queries-and-statements/comment-page-1/#comment-206</link>
		<dc:creator>Soda Bob Curtis</dc:creator>
		<pubDate>Wed, 04 Aug 2010 19:08:53 +0000</pubDate>
		<guid isPermaLink="false">http://websitedesign.websitesinaflash.com/?p=343#comment-206</guid>
		<description>Great article, the script for getting the domain names of email addresses saved me a BUNCH of time, THANK YOU!!!</description>
		<content:encoded><![CDATA[<p>Great article, the script for getting the domain names of email addresses saved me a BUNCH of time, THANK YOU!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

