 




<?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; Query tuning</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/query-tuning/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 10:00:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Signed field to a packed field in AS/400 query</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/signed-field-to-a-packed-field-in-query/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/signed-field-to-a-packed-field-in-query/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 18:39:33 +0000</pubDate>
		<dc:creator>Lilarose22</dc:creator>
				<category><![CDATA[AS/400 administration]]></category>
		<category><![CDATA[AS/400 Query]]></category>
		<category><![CDATA[Packed Fields]]></category>
		<category><![CDATA[Query tuning]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Does anyone know of a way to move a signed numeric to a packed numeric in query? Is it even possible?   Been playing with it and can&#8217;t find a way.  Any answer appreciated. ]]></description>
				<content:encoded><![CDATA[<p>Does anyone know of a way to move a signed numeric to a packed numeric in query? Is it even possible?   Been playing with it and can&#8217;t find a way.  Any answer appreciated. </p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/signed-field-to-a-packed-field-in-query/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to pass value at run time from VB 6 to Access 2000 Query for reporting</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-pass-value-at-run-time-from-vb-6-to-access-2000-query-for-reporting/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-to-pass-value-at-run-time-from-vb-6-to-access-2000-query-for-reporting/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 10:19:49 +0000</pubDate>
		<dc:creator>Mayuri</dc:creator>
				<category><![CDATA[Access]]></category>
		<category><![CDATA[Access 2002]]></category>
		<category><![CDATA[Query]]></category>
		<category><![CDATA[Query tuning]]></category>
		<category><![CDATA[VB]]></category>
		<category><![CDATA[VB 6]]></category>
		<category><![CDATA[Visual Basic 6]]></category>
		<category><![CDATA[Visual Basic developers]]></category>
		<category><![CDATA[Visual Basic for Applications]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have developed a sall application. Data is in Access 2002, Development is in VB 6. For reporting I have designed Queries, using the queries I have designed the reports. It works fine. While run time I accepts the criteria or value from user, based on that I have to show reports. My question is [...]]]></description>
				<content:encoded><![CDATA[<p>I have developed a sall application. Data is in Access 2002, Development is in VB 6.<br />
For reporting I have designed Queries, using the queries I have designed the reports.<br />
It works fine.</p>
<p>While run time I accepts the criteria or value from user, based on that I have to show reports. </p>
<p>My question is how to pass the accepted values or criteria to the Queries and Reports in Access.</p>
<p>For example, I have a table &#8216;Author&#8217; like&#8230;  </p>
<p>Code   Name   Address   NoOfBooks<br />
&#8212;&#8212;   &#8212;&#8212;-   &#8212;&#8212;&#8212;-   &#8212;&#8212;&#8212;&#8212;&#8211;<br />
001     ABC     102, aaa   20<br />
002     DEF      203, bbb   57<br />
003     GHI      304, ccc    60<br />
004     JKL      405, ddd   15<br />
.          .           .                 .<br />
.          .           .                 .<br />
.          .           .                 .</p>
<p>I have a query &#8216;QryAuthor&#8217; like&#8230;<br />
Select * from AUTHOR where NoOfBooks &gt;= 50;</p>
<p>But at run time user may want to see all authors who have written more than 100 books, then how to pass the value 100 from VB to Access</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/how-to-pass-value-at-run-time-from-vb-6-to-access-2000-query-for-reporting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difficult SQL query, is this possible?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/difficult-sql-query-is-this-possible/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/difficult-sql-query-is-this-possible/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 23:37:40 +0000</pubDate>
		<dc:creator>David Phillips</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Developers]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Query]]></category>
		<category><![CDATA[Query tuning]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Query]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Two tables, First Table &#8211;FN&#8212;LN&#8212;-Reasons John &#124; Doe &#124; 6 &#124; Jane &#124; Doe &#124; 2 &#124; &#8212;&#8212;&#8212;&#8212;&#8212;&#8211; That&#8217;s the end of the first table. Second Table &#8212;Reason&#8212;-Reason Detail&#8212;&#8211; 2 &#124; Invalid SSN 4 &#124; Invalid Date Of Birth &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; That&#8217;s the end of the second table. (*Note, there is NO value of &#8217;6&#8242; in [...]]]></description>
				<content:encoded><![CDATA[<p>Two tables,</p>
<p>First Table<br />
&#8211;FN&#8212;LN&#8212;-Reasons<br />
John | Doe     | 6 |<br />
Jane | Doe     | 2 |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
That&#8217;s the end of the first table.<br />
Second Table<br />
&#8212;Reason&#8212;-Reason Detail&#8212;&#8211;<br />
      2       |       Invalid SSN<br />
      4       |       Invalid Date Of Birth<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
That&#8217;s the end of the second table.  (*Note, there is NO value of &#8217;6&#8242; in the second table)</p>
<p>I need a SQL query that returns the following:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
John | Doe | 4 | Invalid SSN<br />
John | Doe | 2 | Invalid Date of Birth<br />
Jane | Doe | 2 | Invalid Date of Birth<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
John Doe has fallen out of our system for both an invalid SSN and an Invalid DOB, how can I split that information up in a SQL query? </p>
<p>1) These tables were designed to have this type of logic used against them, so there is only one unique combination to give the value &#8217;6&#8242; in the reasons column.<br />
2) Yes, I do know this isn&#8217;t the best way to do it&#8230; The only reason I can think of was due to how large the first table will get.  And no, changing the way we do it now isn&#8217;t a possibility.<br />
3) The second table is fairly large, about 20-30 reasons, so creating every possible combination to populate a third table is daunting.</p>
<p>Everyone in my office is stumped&#8230; can anyone here help?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/difficult-sql-query-is-this-possible/feed/</wfw:commentRss>
		<slash:comments>10</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/14 queries in 0.019 seconds using memcached
Object Caching 478/503 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 12:50:16 -->