 




<?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 select</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sql-select-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-select-2/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 06:06:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-select-2/#comment-58220</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Mon, 01 Dec 2008 16:11:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-58220</guid>
		<description><![CDATA[Are you sure the suggested code gives you the &lt;b&gt;same error&lt;/b&gt;&lt;i&gt; ?
I find it really strange, because the query doesn&#039;t include ORs or INs, and those are the only operators that will cause ORA-01719 errors.

What is the error&#039;s line number with the new code ?&lt;/i&gt;]]></description>
		<content:encoded><![CDATA[<p>Are you sure the suggested code gives you the <b>same error</b><i> ?<br />
I find it really strange, because the query doesn&#8217;t include ORs or INs, and those are the only operators that will cause ORA-01719 errors.</p>
<p>What is the error&#8217;s line number with the new code ?</i></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qaqa</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-select-2/#comment-58186</link>
		<dc:creator>qaqa</dc:creator>
		<pubDate>Sat, 29 Nov 2008 16:21:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-58186</guid>
		<description><![CDATA[Hi Sir:

Just in case I didn&#039;t explain clearly, I want to tell you what I want to accomplish here. The following code worked find, but now I want to add something so that I can skip the date checking if the resolution_date field is blank.

SELECT obj.object_type 
FROM apps.opt_log_issue log, discov.opt_changed_database_objects obj 
WHERE (UPPER(log.resolution(+)) like &#039;%&#039;&#124;&#124;obj.object_name&#124;&#124;&#039;%&#039;  
    and trunc(log.resolution_date(+)) - trunc(to_date(substr(obj.last_ddl_time,1,11),&#039;dd-mon-yy&#039;)) &lt;=5    
    and trunc(log.resolution_date(+)) - trunc(to_date(substr(obj.last_ddl_time,1,11),&#039;dd-mon-yy&#039;)) &gt;=0)

Thank you for your help.]]></description>
		<content:encoded><![CDATA[<p>Hi Sir:</p>
<p>Just in case I didn&#8217;t explain clearly, I want to tell you what I want to accomplish here. The following code worked find, but now I want to add something so that I can skip the date checking if the resolution_date field is blank.</p>
<p>SELECT obj.object_type<br />
FROM apps.opt_log_issue log, discov.opt_changed_database_objects obj<br />
WHERE (UPPER(log.resolution(+)) like &#8216;%&#8217;||obj.object_name||&#8217;%&#8217;<br />
    and trunc(log.resolution_date(+)) &#8211; trunc(to_date(substr(obj.last_ddl_time,1,11),&#8217;dd-mon-yy&#8217;)) &lt;=5<br />
    and trunc(log.resolution_date(+)) &#8211; trunc(to_date(substr(obj.last_ddl_time,1,11),&#8217;dd-mon-yy&#8217;)) &gt;=0)</p>
<p>Thank you for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qaqa</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-select-2/#comment-58185</link>
		<dc:creator>qaqa</dc:creator>
		<pubDate>Sat, 29 Nov 2008 16:06:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-58185</guid>
		<description><![CDATA[Hi:
Thank you fo r your code but i got the same error.]]></description>
		<content:encoded><![CDATA[<p>Hi:<br />
Thank you fo r your code but i got the same error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-select-2/#comment-58180</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Sat, 29 Nov 2008 01:22:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-58180</guid>
		<description><![CDATA[&lt;b&gt;Comments from From QAQA:&lt;/b&gt;

I got the error blow for the above statement if I remove the &#039;--&#039;  WHY?.  

  7  (UPPER(log.resolution(+)) like &#039;%&#039;&#124;&#124;obj.object_name&#124;&#124;&#039;%&#039;
  8*        and    log.resolution_date is null)
SQL&gt; /
        and trunc(log.resolution_date(+)) - trunc(to_date(substr(obj.last_ddl_time,1,11),&#039;dd-mon-yy&#039;
                                                                                                    
ERROR at line 5:
ORA-01719: outer join operator (+) not allowed in operand of OR or IN]]></description>
		<content:encoded><![CDATA[<p><b>Comments from From QAQA:</b></p>
<p>I got the error blow for the above statement if I remove the &#8216;&#8211;&#8217;  WHY?.  </p>
<p>  7  (UPPER(log.resolution(+)) like &#8216;%&#8217;||obj.object_name||&#8217;%&#8217;<br />
  8*        and    log.resolution_date is null)<br />
SQL&gt; /<br />
        and trunc(log.resolution_date(+)) &#8211; trunc(to_date(substr(obj.last_ddl_time,1,11),&#8217;dd-mon-yy&#8217;</p>
<p>ERROR at line 5:<br />
ORA-01719: outer join operator (+) not allowed in operand of OR or IN</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 3/10 queries in 0.037 seconds using memcached
Object Caching 309/315 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 06:16:48 -->