<?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: Oracle RDBMS 11gR2 &#8211; new style hierarchical querying using Recursive Subquery Factoring</title>
	<atom:link href="http://technology.amis.nl/blog/6267/oracle-rdbms-11gr2-new-style-hierarchical-querying-using-recursive-subquery-factoring/feed" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/blog/6267/oracle-rdbms-11gr2-new-style-hierarchical-querying-using-recursive-subquery-factoring</link>
	<description>Weblog for the AMIS Technology corner</description>
	<lastBuildDate>Fri, 10 Feb 2012 16:47:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: J</title>
		<link>http://technology.amis.nl/blog/6267/oracle-rdbms-11gr2-new-style-hierarchical-querying-using-recursive-subquery-factoring/comment-page-1#comment-481061</link>
		<dc:creator>J</dc:creator>
		<pubDate>Tue, 06 Sep 2011 08:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=6267#comment-481061</guid>
		<description>
Hi,
How would you use the above with the following use-case:
I need to return a full tree structure where a like match is done on a name column. The data would look like
manId &#124; empID &#124; name
 1 Paul
1 2 Kara
1 3 Matthew
1 4 Bill
2 5 Gary
2 6 Paul
3 7 Sally
3 8 Sarah
4 9 Jill
4 10 Sarah
 
so the strucure is
 
- 1. Paul
 - 2. Kara
 - 5. Gary
 - 6. Paul
 - 3. Matthew
 - 7. Sally
 - 8. Sarah
 - 4. Bill
 - 9. Jill
 - 10. Sarah
 
and I&#039;d like to be able to search for where lower(name) like &#039;%sarah%&#039; and have the following returned:
 
- 1. Paul
 - 3. Matthew
 - 8. Sarah
 - 4. Bill
 - 10. Sarah
 
likewise I&#039;d like to be able to search where lower(name) like &#039;%matthew%&#039; and have the following returned:
 
- 1. Paul
 - 3. Matthew
 - 7. Sally
 - 8. Sarah
 
Possible?
</description>
		<content:encoded><![CDATA[<p>Hi,<br />
How would you use the above with the following use-case:<br />
I need to return a full tree structure where a like match is done on a name column. The data would look like<br />
manId | empID | name<br />
 1 Paul<br />
1 2 Kara<br />
1 3 Matthew<br />
1 4 Bill<br />
2 5 Gary<br />
2 6 Paul<br />
3 7 Sally<br />
3 8 Sarah<br />
4 9 Jill<br />
4 10 Sarah<br />
 <br />
so the strucure is<br />
 <br />
- 1. Paul<br />
 &#8211; 2. Kara<br />
 &#8211; 5. Gary<br />
 &#8211; 6. Paul<br />
 &#8211; 3. Matthew<br />
 &#8211; 7. Sally<br />
 &#8211; 8. Sarah<br />
 &#8211; 4. Bill<br />
 &#8211; 9. Jill<br />
 &#8211; 10. Sarah<br />
 <br />
and I&#8217;d like to be able to search for where lower(name) like &#8216;%sarah%&#8217; and have the following returned:<br />
 <br />
- 1. Paul<br />
 &#8211; 3. Matthew<br />
 &#8211; 8. Sarah<br />
 &#8211; 4. Bill<br />
 &#8211; 10. Sarah<br />
 <br />
likewise I&#8217;d like to be able to search where lower(name) like &#8216;%matthew%&#8217; and have the following returned:<br />
 <br />
- 1. Paul<br />
 &#8211; 3. Matthew<br />
 &#8211; 7. Sally<br />
 &#8211; 8. Sarah<br />
 <br />
Possible?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

