 




<?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: SQL QUERY VIEW  &#8211; HELP REQUIRED !</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sql-query-view-help-required-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-query-view-help-required-2/</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 09:44:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: gerrib</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-query-view-help-required-2/#comment-70309</link>
		<dc:creator>gerrib</dc:creator>
		<pubDate>Thu, 12 Nov 2009 13:17:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-70309</guid>
		<description><![CDATA[Thanks Curtis for the link - I have setup the exmple table &amp; used the code given as  I think this is what I am lookin for  but get 

&quot;Line 7: Incorrect syntax near &#039;PIVOT&#039;.&quot; 

Excuse my lack of knowledge but its all new to me

Thanks  again

Gerrib


Details of systems :
SQL Server 2005 

Microsoft SQL Server Management Studio Express 		9.00.2047.00
Microsoft .NET Framework				2.0.50727.1873
Operating System					5.1.2600]]></description>
		<content:encoded><![CDATA[<p>Thanks Curtis for the link &#8211; I have setup the exmple table &amp; used the code given as  I think this is what I am lookin for  but get </p>
<p>&#8220;Line 7: Incorrect syntax near &#8216;PIVOT&#8217;.&#8221; </p>
<p>Excuse my lack of knowledge but its all new to me</p>
<p>Thanks  again</p>
<p>Gerrib</p>
<p>Details of systems :<br />
SQL Server 2005 </p>
<p>Microsoft SQL Server Management Studio Express 		9.00.2047.00<br />
Microsoft .NET Framework				2.0.50727.1873<br />
Operating System					5.1.2600</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gerrib</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-query-view-help-required-2/#comment-70306</link>
		<dc:creator>gerrib</dc:creator>
		<pubDate>Thu, 12 Nov 2009 10:23:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-70306</guid>
		<description><![CDATA[To clarify  the situation :

Ultimately I want to e-merge letters to customers containing  all their invoice details in one email.

My datasource is coming from an oracle database. I extract the details using SQL for selected customers and dates.

The datasource contains one record per customer invoice which looks like my original example. But using this the result would be  that a customer could get multiple emails on each run - which would kind of upset them :-(

I investiagted word and there is the facility to write code in the document to handle multiple records per customer inout in the datasource but this creates a directory which can then be printed but not emailed !!!! 

So... I thought perhaps I shoudl try and get my datasource to contain the multiple details. My background is RPG and this could be done easily by creating an array but I cannot do the same in SQL so that is why I came to this forum. 

I just wanted help to complete the task either using SQL to create a datasource which could be used OR any other method using the input I have to achieve the output required ie emailed letter with all invoice details per customer

I hope this makes sense

Regards]]></description>
		<content:encoded><![CDATA[<p>To clarify  the situation :</p>
<p>Ultimately I want to e-merge letters to customers containing  all their invoice details in one email.</p>
<p>My datasource is coming from an oracle database. I extract the details using SQL for selected customers and dates.</p>
<p>The datasource contains one record per customer invoice which looks like my original example. But using this the result would be  that a customer could get multiple emails on each run &#8211; which would kind of upset them <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>I investiagted word and there is the facility to write code in the document to handle multiple records per customer inout in the datasource but this creates a directory which can then be printed but not emailed !!!! </p>
<p>So&#8230; I thought perhaps I shoudl try and get my datasource to contain the multiple details. My background is RPG and this could be done easily by creating an array but I cannot do the same in SQL so that is why I came to this forum. </p>
<p>I just wanted help to complete the task either using SQL to create a datasource which could be used OR any other method using the input I have to achieve the output required ie emailed letter with all invoice details per customer</p>
<p>I hope this makes sense</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-query-view-help-required-2/#comment-70268</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 11 Nov 2009 17:37:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-70268</guid>
		<description><![CDATA[Well, maybe not exaclty what Gerrib asked, but something similar, returning all details concatenated in a field.]]></description>
		<content:encoded><![CDATA[<p>Well, maybe not exaclty what Gerrib asked, but something similar, returning all details concatenated in a field.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-query-view-help-required-2/#comment-70267</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 11 Nov 2009 17:32:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-70267</guid>
		<description><![CDATA[I agree.  Gerrib, please try to clarify what exactly you need help with.

On the other hand, Washkuhnw, you can certainly do what Gerrib asked in the original question with Sql Server, but a function would be necessary for that.]]></description>
		<content:encoded><![CDATA[<p>I agree.  Gerrib, please try to clarify what exactly you need help with.</p>
<p>On the other hand, Washkuhnw, you can certainly do what Gerrib asked in the original question with Sql Server, but a function would be necessary for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: washkuhnw</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-query-view-help-required-2/#comment-70261</link>
		<dc:creator>washkuhnw</dc:creator>
		<pubDate>Wed, 11 Nov 2009 17:13:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-70261</guid>
		<description><![CDATA[Okay...you didn&#039;t mention &lt;i&gt;any &lt;/i&gt;of that before, but I digress.

So I&#039;ll try to understand again...in word you have a record that holds all the details for this customer, but you can&#039;t email it. So you want to go back into SQL and combine all the details for the customer, like I addressed earlier?

Couldn&#039;t you just host the word file, or find some other way to deliver it? It seems like much less work for a solution that you already have complete.

If I&#039;m not understanding again, please correct me. There seems to be a &lt;b&gt;lot&lt;/b&gt; of miscommunication happening right now.]]></description>
		<content:encoded><![CDATA[<p>Okay&#8230;you didn&#8217;t mention <i>any </i>of that before, but I digress.</p>
<p>So I&#8217;ll try to understand again&#8230;in word you have a record that holds all the details for this customer, but you can&#8217;t email it. So you want to go back into SQL and combine all the details for the customer, like I addressed earlier?</p>
<p>Couldn&#8217;t you just host the word file, or find some other way to deliver it? It seems like much less work for a solution that you already have complete.</p>
<p>If I&#8217;m not understanding again, please correct me. There seems to be a <b>lot</b> of miscommunication happening right now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gerrib</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-query-view-help-required-2/#comment-70259</link>
		<dc:creator>gerrib</dc:creator>
		<pubDate>Wed, 11 Nov 2009 17:02:16 +0000</pubDate>
		<guid isPermaLink="false">#comment-70259</guid>
		<description><![CDATA[I &lt;i&gt;can &lt;/i&gt;actually do that already 

What I really want to do is export these details and use them for emerging in Word. 

It appears that  in Word one can create a letter (directory) per &lt;i&gt;customer &lt;/i&gt;which includes details contained in multiple records for &lt;i&gt;this &lt;/i&gt;customer in the datasource. Sadly  this cannot be then be emailed so I was trying to create a datasource which holds all the details in one record.]]></description>
		<content:encoded><![CDATA[<p>I <i>can </i>actually do that already </p>
<p>What I really want to do is export these details and use them for emerging in Word. </p>
<p>It appears that  in Word one can create a letter (directory) per <i>customer </i>which includes details contained in multiple records for <i>this </i>customer in the datasource. Sadly  this cannot be then be emailed so I was trying to create a datasource which holds all the details in one record.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.014 seconds using memcached
Object Caching 342/345 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-21 10:00:51 -->