<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.developerdotstar.com/community" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>developer.* Blogs - Oracle - Comments</title>
 <link>http://www.developerdotstar.com/community/taxonomy/term/29</link>
 <description>Comments for &quot;Oracle&quot;</description>
 <language>en</language>
<item>
 <title>Thank you!!!!</title>
 <link>http://www.developerdotstar.com/community/node/68#comment-3362</link>
 <description>&lt;p&gt;Thanks a lot Trevor.Helped a lot.&lt;/p&gt;
&lt;p&gt;select u.user_uid, u.login_text, p.profile_name_text  from profile p, user u where u.acct_closed_ind = 0   and u.user_uid = p.user_uid   and (dbms_lob.instr(clob_field, &#039;first string to find&#039;,1,1) &amp;gt; 0 or        dbms_lob.instr(clob_field, &#039;second string to find&#039;,1,1) &amp;gt; 0);&lt;/p&gt;
</description>
 <pubDate>Wed, 10 Jan 2007 06:59:26 -0800</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 3362 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>how to find last word in a string</title>
 <link>http://www.developerdotstar.com/community/node/68#comment-1390</link>
 <description>&lt;p&gt;i have a column that contains customer names...that field may contain a string..if i want to select only the last word from it..how do i do it?&lt;br /&gt;
for eg:                        Column&lt;br /&gt;
                              SANJIV SHARMA&lt;br /&gt;
                              David Nigel&lt;br /&gt;
                              Susan George Edward&lt;/p&gt;
&lt;p&gt;so from this i will need to get only&lt;br /&gt;
  SHARMA&lt;br /&gt;
  Nigel&lt;br /&gt;
  Edward&lt;/p&gt;
</description>
 <pubDate>Wed, 16 Aug 2006 01:59:42 -0700</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 1390 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>String search</title>
 <link>http://www.developerdotstar.com/community/node/68#comment-1225</link>
 <description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am using a query to retrive  a column data. Its a paragraph. In that I need to look for some specific words(Ex: Hello,there in) and if they are there then I need to get the words next to it and compare with some exisiting text. How do I do that.&lt;/p&gt;
&lt;p&gt;Please help.&lt;/p&gt;
</description>
 <pubDate>Tue, 27 Jun 2006 13:06:06 -0700</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 1225 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>More qualities?</title>
 <link>http://www.developerdotstar.com/community/node/506#comment-1222</link>
 <description>&lt;p&gt;Apparently I have a quality I wasn&#039;t even aware of : &quot;mind reading&quot;. I&#039;ll see what I can do with that in future :-) &lt;/p&gt;
&lt;p&gt;I regularly hear people saying that they don&#039;t do their reporting on native Oracle databases, but rather on SQL Server databases. I guess the main drive for this is:&lt;br /&gt;
- The business reporting features are good&lt;br /&gt;
- Oracle experts are harder to find than SQL Server experts.&lt;/p&gt;
&lt;p&gt;Glad to have been of help and good luck with your Oracle project.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Mario.&lt;/p&gt;
</description>
 <pubDate>Mon, 26 Jun 2006 08:03:28 -0700</pubDate>
 <dc:creator>Mario Van Damme</dc:creator>
 <guid isPermaLink="false">comment 1222 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Oracle, mind-reader</title>
 <link>http://www.developerdotstar.com/community/node/506#comment-1207</link>
 <description>&lt;p&gt;The reason I haven&#039;t been able to post lately on d.* is because I have been wrestling with this very issue! Thanks, Mario-the-mind-reader. We are going live with an Oracle based third-party system on Monday and I have to make sure several interfaces to other systems don&#039;t break. I worked with Oracle several years ago, but since we are a SQL Server shop, I had long ago reused those brain  cells. This week I bought &quot;Oracle for Dummies&quot;. We are in the process of setting up connectivity from SQL Server 2005 to Oracle so we can dump data (nightly) into a reporting database on SQL Server so that we can have our own familiar playground for creating views, as well as reduce contention for reporting.&lt;/p&gt;
</description>
 <pubDate>Fri, 23 Jun 2006 10:28:54 -0700</pubDate>
 <dc:creator>Donna L Davis</dc:creator>
 <guid isPermaLink="false">comment 1207 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Thanks for ur Help</title>
 <link>http://www.developerdotstar.com/community/node/68#comment-978</link>
 <description>&lt;p&gt;SELECT DISTINCT USR.*, JOB.*&lt;br /&gt;
FROM PROD_PH.PHP_TRG_USR USR,&lt;br /&gt;
PROD_PH.PHP_TRG_JOB JOB&lt;br /&gt;
WHERE USR.TRG_USR = &#039;JCIVERA&#039;&lt;br /&gt;
AND SUBSTR(JOB.JOB_CLS,1,1) = SUBSTR(USR.JOB_CLS,(INSTR(USR.JOB_CLS,&#039;*&#039;)-1),1);&lt;/p&gt;
&lt;p&gt;the above select statement very well helped me to built the query&lt;/p&gt;
&lt;p&gt;Thanks for the Help provided&lt;br /&gt;
Deepak srivatsa&lt;/p&gt;
</description>
 <pubDate>Wed, 29 Mar 2006 06:48:56 -0800</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 978 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Thanks</title>
 <link>http://www.developerdotstar.com/community/node/68#comment-634</link>
 <description>&lt;p&gt;Thanks for the information.I think it would help me&lt;/p&gt;
</description>
 <pubDate>Wed, 30 Nov 2005 11:50:13 -0800</pubDate>
 <dc:creator>Palaniappan</dc:creator>
 <guid isPermaLink="false">comment 634 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>RE: Two Possibilities</title>
 <link>http://www.developerdotstar.com/community/node/68#comment-605</link>
 <description>&lt;p&gt;Hi Dan,&lt;/p&gt;
&lt;p&gt;Thank you for responding to my question.&lt;/p&gt;
&lt;p&gt;Removing the distinct clause provides the same result set in this scenario. It is there only to eliminate redundant rows. The outer join brings back more rows than what I need. Null values are restricted from the tables.&lt;/p&gt;
&lt;p&gt;The issue is that INSTR will only find the first occurrence of the pattern (in this case, &#039;*&#039;). There is a second argument I can pass to match a specific occurrence, but in production, I won&#039;t ever know what that is.&lt;/p&gt;
&lt;p&gt;Regular expressions could provide the solution but are not available in 9i. I&#039;m going to play around with the DECODE function and see if I can come up with something there. Else, I will have to write a function to parse out the data.&lt;/p&gt;
&lt;p&gt;Thanks, again!!!&lt;/p&gt;
&lt;p&gt;~Joe&lt;/p&gt;
</description>
 <pubDate>Wed, 02 Nov 2005 15:24:17 -0800</pubDate>
 <dc:creator>Joe Civera</dc:creator>
 <guid isPermaLink="false">comment 605 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Two Possibilities</title>
 <link>http://www.developerdotstar.com/community/node/68#comment-604</link>
 <description>&lt;p&gt;Hi Joe,&lt;/p&gt;
&lt;p&gt;I have two guesses as to what could be limiting the number of rows you&#039;re receiving: one, the DISTINCT clause, and two, the inner join. Have you tried playing with the query to remove DISTINCT and/or change the inner join to a left outer join to see what you get?&lt;/p&gt;
&lt;p&gt;It&#039;s also possible that null values in either of the JOB_CLS columns could cause problems with the second expressing in your WHERE clause. If either of those columns is nullable you might try wrapping the references in the NVL function.&lt;/p&gt;
&lt;p&gt;These are just guesses on my part.&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;
</description>
 <pubDate>Wed, 02 Nov 2005 14:33:13 -0800</pubDate>
 <dc:creator>Daniel Read</dc:creator>
 <guid isPermaLink="false">comment 604 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Multiple string occurrences</title>
 <link>http://www.developerdotstar.com/community/node/68#comment-603</link>
 <description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;What if you want to find multiple occurrences of the same string, but you do not know the amount of occurrences within a given field for a particular row? For example, I have two tables (USR and JOB), and each contains a field named JOB_CLS. The JOB table has three rows, so the values in the JOB_CLS field look like:&lt;/p&gt;
&lt;p&gt;C1&lt;br /&gt;
C2&lt;br /&gt;
M1&lt;/p&gt;
&lt;p&gt;The USR table has one row where TRG_USR = &#039;JCIVERA&#039;, and the value in the JOB_CLS field for that row is:&lt;/p&gt;
&lt;p&gt;C*,M*&lt;/p&gt;
&lt;p&gt;Using the following code:&lt;/p&gt;
&lt;p&gt;SELECT DISTINCT USR.*, JOB.*&lt;br /&gt;
  FROM PROD_PH.PHP_TRG_USR USR,&lt;br /&gt;
       PROD_PH.PHP_TRG_JOB JOB&lt;br /&gt;
 WHERE USR.TRG_USR = &#039;JCIVERA&#039;&lt;br /&gt;
   AND SUBSTR(JOB.JOB_CLS,1,1) = SUBSTR(USR.JOB_CLS,(INSTR(USR.JOB_CLS,&#039;*&#039;)-1),1);&lt;/p&gt;
&lt;p&gt;I am only getting a hit on the 1st occurrence of &#039;*&#039;, which brings back from the JOB table only the rows where the JOB_CLS field begins with &#039;C&#039; but I need it to bring back the row where the JOB_CLS field begins with &#039;M&#039; as well.&lt;/p&gt;
&lt;p&gt;Any suggestions? Thanks in advance for your help with this problem.&lt;/p&gt;
&lt;p&gt;~Cheers!&lt;br /&gt;
Joe&lt;/p&gt;
</description>
 <pubDate>Wed, 02 Nov 2005 11:20:19 -0800</pubDate>
 <dc:creator>Joe Civera</dc:creator>
 <guid isPermaLink="false">comment 603 at http://www.developerdotstar.com/community</guid>
</item>
</channel>
</rss>
