<?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 concatenate results</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sql-concatenate-results/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-concatenate-results/</link>
	<description></description>
	<lastBuildDate>Tue, 18 Jun 2013 06:50:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-concatenate-results/#comment-88557</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Wed, 23 Feb 2011 13:46:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-88557</guid>
		<description><![CDATA[Great !

Thanks for sharing.]]></description>
		<content:encoded><![CDATA[<p>Great !</p>
<p>Thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: devan</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-concatenate-results/#comment-88538</link>
		<dc:creator>devan</dc:creator>
		<pubDate>Wed, 23 Feb 2011 06:47:06 +0000</pubDate>
		<guid isPermaLink="false">#comment-88538</guid>
		<description><![CDATA[Hi Carlosdl

I have tried without the curly brackets and same error.
However, I have tried it with double pipes and it worked

Thanx for all your help

Devan]]></description>
		<content:encoded><![CDATA[<p>Hi Carlosdl</p>
<p>I have tried without the curly brackets and same error.<br />
However, I have tried it with double pipes and it worked</p>
<p>Thanx for all your help</p>
<p>Devan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-concatenate-results/#comment-88487</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Tue, 22 Feb 2011 15:48:44 +0000</pubDate>
		<guid isPermaLink="false">#comment-88487</guid>
		<description><![CDATA[Have you tried without the curly brackets ?

&lt;pre&gt;...LIKE @prompt(’Enter Outlet Code L1:’,&#039;A’,&#039;Outlet GroupingOutlet Code L1′,Mono,Free,Persistent,,User:0) &amp; “*”&lt;/pre&gt;

instead of:

&lt;pre&gt;...LIKE &lt;b&gt;{&lt;/b&gt;@prompt(’Enter Outlet Code L1:’,&#039;A’,&#039;Outlet GroupingOutlet Code L1′,Mono,Free,Persistent,,User:0)&lt;b&gt;} &lt;/b&gt;&amp; “*”&lt;/pre&gt;


ps. I don&#039;t a have a BO installation at hand to test it.]]></description>
		<content:encoded><![CDATA[<p>Have you tried without the curly brackets ?</p>
<pre>...LIKE @prompt(’Enter Outlet Code L1:’,'A’,'Outlet GroupingOutlet Code L1′,Mono,Free,Persistent,,User:0) &amp; “*”</pre>
<p>instead of:</p>
<pre>...LIKE <b>{</b>@prompt(’Enter Outlet Code L1:’,'A’,'Outlet GroupingOutlet Code L1′,Mono,Free,Persistent,,User:0)<b>} </b>&amp; “*”</pre>
<p>ps. I don&#8217;t a have a BO installation at hand to test it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: devan</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-concatenate-results/#comment-88446</link>
		<dc:creator>devan</dc:creator>
		<pubDate>Tue, 22 Feb 2011 06:25:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-88446</guid>
		<description><![CDATA[SELECT
  FDDWHD20.DCOUT1,
  FSDWHE01.FSSHIP,
  FDDWHD20.DCNAME,
  FDDWHD20.DCMKDS,
  FDDWHD20.DCOTD1,
  FDDWHD20.DCOTD2,
  FDDWHD20.DCOTD3,
  FDDWHD20.DCOUT3,
  FDDWHD20.DCOUT2,
  FDDWHD20.DCOTD6,
  FDDWHD20.DCOUT6
FROM
  FDDWHD20,
  FSDWHE01
WHERE
  ( FDDWHD20.DCCO=FSDWHE01.FSCO  )
  AND  ( FDDWHD20.DCSHIP=FSDWHE01.FSSHIP  )
  AND  
  FDDWHD20.DCOUT1  LIKE @prompt(&#039;Enter Outlet Code L1:&#039;,&#039;A&#039;,&#039;Outlet GroupingOutlet Code L1&#039;,Mono,Free,Persistent,,User:0)


Hi Carlosdl
From the above, when I select the use custom query, it appears like this.

When I enter what you suggested 
FDDWHD20.DCOUT1  LIKE {@prompt(&#039;Enter Outlet Code L1:&#039;,&#039;A&#039;,&#039;Outlet GroupingOutlet Code L1&#039;,Mono,Free,Persistent,,User:0)} &amp; &quot;*&quot;
it comes up with an error ORA-00911
is there something you can see that I am doing incorrectly.]]></description>
		<content:encoded><![CDATA[<p>SELECT<br />
  FDDWHD20.DCOUT1,<br />
  FSDWHE01.FSSHIP,<br />
  FDDWHD20.DCNAME,<br />
  FDDWHD20.DCMKDS,<br />
  FDDWHD20.DCOTD1,<br />
  FDDWHD20.DCOTD2,<br />
  FDDWHD20.DCOTD3,<br />
  FDDWHD20.DCOUT3,<br />
  FDDWHD20.DCOUT2,<br />
  FDDWHD20.DCOTD6,<br />
  FDDWHD20.DCOUT6<br />
FROM<br />
  FDDWHD20,<br />
  FSDWHE01<br />
WHERE<br />
  ( FDDWHD20.DCCO=FSDWHE01.FSCO  )<br />
  AND  ( FDDWHD20.DCSHIP=FSDWHE01.FSSHIP  )<br />
  AND<br />
  FDDWHD20.DCOUT1  LIKE @prompt(&#8216;Enter Outlet Code L1:&#8217;,'A&#8217;,'Outlet GroupingOutlet Code L1&#8242;,Mono,Free,Persistent,,User:0)</p>
<p>Hi Carlosdl<br />
From the above, when I select the use custom query, it appears like this.</p>
<p>When I enter what you suggested<br />
FDDWHD20.DCOUT1  LIKE {@prompt(&#8216;Enter Outlet Code L1:&#8217;,'A&#8217;,'Outlet GroupingOutlet Code L1&#8242;,Mono,Free,Persistent,,User:0)} &amp; &#8220;*&#8221;<br />
it comes up with an error ORA-00911<br />
is there something you can see that I am doing incorrectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-concatenate-results/#comment-88416</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 21 Feb 2011 15:24:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-88416</guid>
		<description><![CDATA[Additional details provided by Devan:

&lt;i&gt;&quot;SELECT FDDWHD20.DCOUT1, FSDWHE01.FSSHIP, FDDWHD20.DCNAME, FDDWHD20.DCMKDS, FDDWHD20.DCOTD1, FDDWHD20.DCOTD2, FDDWHD20.DCOTD3, FDDWHD20.DCOUT3, FDDWHD20.DCOUT2, FDDWHD20.DCOTD6, FDDWHD20.DCOUT6 FROM FDDWHD20, FSDWHE01 WHERE ( FDDWHD20.DCCO=FSDWHE01.FSCO ) AND ( FDDWHD20.DCSHIP=FSDWHE01.FSSHIP ) AND FDDWHD20.DCOUT1 LIKE &#039;2%&#039;

From the above,
the % will be after the &#039;2%&#039;
Outlet code is FDDWHD20.DCOUT1 
When prompted, i don&#039;t want our users to enter 2%, I want them to enter 2 and then the above sql must automatically genreated results with the % eg all the coutlet code that starts with 2 must appear on the report.
You will also note that there is customer as well and the same field is being used for both customer and outlet &quot;&lt;/i&gt;]]></description>
		<content:encoded><![CDATA[<p>Additional details provided by Devan:</p>
<p><i>&#8220;SELECT FDDWHD20.DCOUT1, FSDWHE01.FSSHIP, FDDWHD20.DCNAME, FDDWHD20.DCMKDS, FDDWHD20.DCOTD1, FDDWHD20.DCOTD2, FDDWHD20.DCOTD3, FDDWHD20.DCOUT3, FDDWHD20.DCOUT2, FDDWHD20.DCOTD6, FDDWHD20.DCOUT6 FROM FDDWHD20, FSDWHE01 WHERE ( FDDWHD20.DCCO=FSDWHE01.FSCO ) AND ( FDDWHD20.DCSHIP=FSDWHE01.FSSHIP ) AND FDDWHD20.DCOUT1 LIKE &#8217;2%&#8217;</p>
<p>From the above,<br />
the % will be after the &#8217;2%&#8217;<br />
Outlet code is FDDWHD20.DCOUT1<br />
When prompted, i don&#8217;t want our users to enter 2%, I want them to enter 2 and then the above sql must automatically genreated results with the % eg all the coutlet code that starts with 2 must appear on the report.<br />
You will also note that there is customer as well and the same field is being used for both customer and outlet &#8220;</i></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-concatenate-results/#comment-88406</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 21 Feb 2011 13:31:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-88406</guid>
		<description><![CDATA[There is no &#039;%&#039; in your example.
Also, what field corresponds to the Outlet code ?

Please provide more details.]]></description>
		<content:encoded><![CDATA[<p>There is no &#8216;%&#8217; in your example.<br />
Also, what field corresponds to the Outlet code ?</p>
<p>Please provide more details.</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 5/8 queries in 0.021 seconds using memcached
Object Caching 339/340 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-18 06:57:37 -->