<?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>IT Answers &#187; SQL Server 2000 queries</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/sql-server-2000-queries/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Thu, 20 Jun 2013 07:10:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>SQL 2000 view debug help</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-2000-view-debug-help/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-2000-view-debug-help/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 18:23:43 +0000</pubDate>
		<dc:creator>DavidHa!!</dc:creator>
				<category><![CDATA[SQL 2000]]></category>
		<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[SQL Server 2000 administration]]></category>
		<category><![CDATA[SQL Server 2000 queries]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have the following (admittedly convoluted) view that I cannot get right for some reason that I cannot see. Consider the following: SELECT     s.s_SAMPLEID AS LimsSampleId, s.U_CLIENT_SAM_NO AS ADASampleId, MAX(s.SAMPLEDESC) AS SampleDescription,                       MAX(CASE d.paramlistid WHEN i.paramid THEN d.paramlistid WHEN &#8217;1.Purity I&#8217; THEN pm.paramdesc WHEN &#8217;2.Purity Analysis&#8217; THEN &#8216;Purity Analysis&#8217; WHEN                        &#8217;5.Germination&#8217; THEN pm.paramdesc [...]]]></description>
				<content:encoded><![CDATA[<p>I have the following (admittedly convoluted) view that I cannot get right for some reason that I cannot see. Consider the following: <br/><br/> SELECT     s.s_SAMPLEID AS LimsSampleId, s.U_CLIENT_SAM_NO AS ADASampleId, MAX(s.SAMPLEDESC) AS SampleDescription,                       MAX(CASE d.paramlistid WHEN i.paramid THEN d.paramlistid WHEN &#8217;1.Purity I&#8217; THEN pm.paramdesc WHEN &#8217;2.Purity Analysis&#8217; THEN &#8216;Purity Analysis&#8217; WHEN                        &#8217;5.Germination&#8217; THEN pm.paramdesc END) AS Analysis,                       MAX(CASE i.paramid WHEN d.paramlistid THEN p.PARAMLISTDESC WHEN &#8216;Purity %&#8217; THEN p.PARAMLISTDESC WHEN &#8216;Inert %&#8217; THEN &#8216;Purity Analysis&#8217; WHEN                        &#8216;Other crop %&#8217; THEN &#8216;Purity Analysis&#8217; WHEN &#8216;WEED %&#8217; THEN &#8216;Purity Analysis&#8217; WHEN &#8216;Germination %&#8217; THEN p.PARAMLISTDESC END)                       AS AnalysisDescription,                       MAX(CASE i.paramid WHEN d.paramlistid THEN i.EnteredText WHEN &#8216;Purity %&#8217; THEN i.EnteredText WHEN &#8216;Germination %&#8217; THEN i.EnteredText ELSE NULL                        END) AS Result,                       MAX(CASE i.paramid WHEN d.paramlistid THEN i.DisplayUnits WHEN &#8216;Purity %&#8217; THEN i.EnteredUnits WHEN &#8216;Germination %&#8217; THEN i.EnteredUnits ELSE                        NULL END) AS Units, MAX(CASE WHEN i.paramid = &#8216;Maximum Guarantee&#8217; THEN i.EnteredText ELSE NULL END) AS [Max],                       MAX(CASE WHEN i.paramid = &#8216;Minimum Guarantee&#8217; THEN i.EnteredText ELSE NULL END) AS [Min],                       MAX(CASE WHEN i.paramid = &#8216;Violation&#8217; THEN i.EnteredText ELSE NULL END) AS Violation,                       MAX(CASE d.paramlistid WHEN &#8217;2.Purity Analysis&#8217; THEN NULL ELSE b.U_COMMON_NAME END) AS CropName,                       MAX(CASE d.paramlistid WHEN &#8217;2.Purity Analysis&#8217; THEN NULL ELSE b.U_GENUS END) AS Genus,                       MAX(CASE d.paramlistid WHEN &#8217;2.Purity Analysis&#8217; THEN NULL ELSE b.U_SPECIES END) AS Species,                       MAX(CASE WHEN i.paramid = &#8216;Other crop %&#8217; THEN i.EnteredText ELSE NULL END) AS OtherCrop,                       MAX(CASE WHEN i.paramid = &#8216;Inert %&#8217; THEN i.EnteredText ELSE NULL END) AS Inert,                       MAX(CASE WHEN i.paramid = &#8216;WEED %&#8217; THEN i.EnteredText ELSE NULL END) AS Weed,                       MAX(CASE i.paramid WHEN &#8216;Date of Analysis&#8217; THEN CONVERT(DateTime, i.EnteredText)                       WHEN &#8216;Purity %&#8217; THEN ic.EnteredText WHEN &#8216;Germination %&#8217; THEN ic.EnteredText ELSE NULL END) AS DateOfAnalysis,                       MAX(CASE d.paramlistid WHEN &#8217;2.Purity Analysis&#8217; THEN NULL ELSE Floor(CAST(U_COLLECTDT AS Decimal(20, 10))) END) AS DateCollected,                       MAX(CASE d.paramlistid WHEN &#8217;2.Purity Analysis&#8217; THEN 99 ELSE 0 END) AS SortOrder01,                       MAX(CASE d.paramlistid WHEN i.paramid THEN &#8217;0&#8242; WHEN &#8217;1.Purity I&#8217; THEN ib.displayvalue WHEN &#8217;2.Purity Analysis&#8217; THEN &#8216;Z&#8217; WHEN &#8217;5.Germination&#8217; THEN                        ib.displayvalue END) AS SortOrder02 FROM         dbo.Samples s INNER JOIN                       dbo.SampleData d ON s.s_SAMPLEID = d.KEYID1 INNER JOIN                       dbo.SampleDataItems WITH (INDEX (IX_SampleDataItems_paramid)) i ON d.KEYID1 = i.KEYID1 AND d.DATASET = i.DATASET AND                       d.PARAMLISTID = i.PARAMLISTID AND d.PARAMLISTVERSIONID = i.PARAMLISTVERSIONID AND d.VARIANTID = i.VARIANTID AND                       i.PARAMID &lt;&gt; &#8216;CROP ID&#8217; LEFT OUTER JOIN                       dbo.SampleDataItems WITH (INDEX (IX_SampleDataItems_paramid)) ib ON i.KEYID1 = ib.KEYID1 AND i.SDCID = ib.SDCID AND                       i.DATASET = ib.DATASET AND ib.PARAMID = &#8216;CROP ID&#8217; LEFT OUTER JOIN                       dbo.SampleDataItems WITH (INDEX (IX_SampleDataItems_paramid)) ic ON i.KEYID1 = ic.KEYID1 AND i.SDCID = ic.SDCID AND ic.DATASET = &#8217;1.0&#8242; AND                       ic.PARAMID = &#8216;Date of Analysis&#8217; INNER JOIN                       dbo.ParameterLists p ON d.PARAMLISTID = p.PARAMLISTID AND d.PARAMLISTVERSIONID = p.PARAMLISTVERSIONID AND                       d.VARIANTID = p.VARIANTID INNER JOIN                       dbo.Parameters pm ON i.PARAMID = pm.PARAMID LEFT OUTER JOIN                       dbo.Botany b ON b.U_BOTANYID = ib.DISPLAYVALUE WHERE     (i.PARAMID IN (&#8216;Violation&#8217;, &#8216;Minimum Guarantee&#8217;, &#8216;Maximum Guarantee&#8217;, &#8216;Date of Analysis&#8217;, &#8216;Purity %&#8217;, &#8216;Inert %&#8217;, &#8216;WEED %&#8217;, &#8216;Other crop %&#8217;,                       &#8216;Germination %&#8217;) OR                       i.PARAMID = i.PARAMLISTID) AND (i.PARAMLISTID &lt;&gt; &#8217;3.Purity Analysts&#8217;) GROUP BY s.U_CLIENT_SAM_NO, s.s_SAMPLEID, ib.DISPLAYVALUE, d.PARAMLISTID<br/><br/> SQL generates the following error:<br/><br/> Server: Msg 170, Level 15, State 1, Line 27 Line 27: Incorrect syntax near &#8216;i&#8217;.<br/><br/>  <br/><br/> Anyone have ideas? What am I not seeing?<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-2000-view-debug-help/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to write text into word doc using SQL 2000 query analyzer</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-write-text-into-word-doc-using-sql-2000-query-analyzer/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-to-write-text-into-word-doc-using-sql-2000-query-analyzer/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 07:02:49 +0000</pubDate>
		<dc:creator>Pkaur</dc:creator>
				<category><![CDATA[SQL 2000]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Query Analyzer]]></category>
		<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[SQL Server 2000 queries]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[how to write text into word doc using sql 2000 query analyzer. Thanks in advance.]]></description>
				<content:encoded><![CDATA[<p>how to write text into word doc using sql 2000 query analyzer.<br />
Thanks in advance.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/how-to-write-text-into-word-doc-using-sql-2000-query-analyzer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is a linear recursive query in SQL?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-query-14/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-query-14/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 17:28:06 +0000</pubDate>
		<dc:creator>Gomsbk</dc:creator>
				<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[SQL Server 2000 queries]]></category>
		<category><![CDATA[SQL Server Query]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[What is a linear recursive query in SQL?give me an example.Is there any nonlinear recursive query??]]></description>
				<content:encoded><![CDATA[<p>What is a linear recursive query in SQL?give me an example.Is there any nonlinear recursive query??</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-query-14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the query optimization techniques used in SQL 2000?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-18/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-18/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 17:22:49 +0000</pubDate>
		<dc:creator>Gomsbk</dc:creator>
				<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[SQL Server 2000 queries]]></category>
		<category><![CDATA[SQL Server Query]]></category>
		<category><![CDATA[SQL Server query optimization]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[What are the query optimization techniques used in SQL?]]></description>
				<content:encoded><![CDATA[<p>What are the query optimization techniques used in SQL?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-18/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to check the existence of a Column in SQL Server 2000?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/database-column/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/database-column/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 09:30:38 +0000</pubDate>
		<dc:creator>Hunkgym</dc:creator>
				<category><![CDATA[SQL queries]]></category>
		<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[SQL Server 2000 queries]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[- using SQL Server 2000 , Would like to know how to check any specific column exist in a database. Any method to search through the list of tables in a database. Thanks.]]></description>
				<content:encoded><![CDATA[<p>- using SQL Server 2000 , Would like to know how to check any specific column exist in a database. Any method to search through the list of tables in a database. Thanks.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/database-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/18 queries in 0.023 seconds using memcached
Object Caching 591/656 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 07:55:50 -->