Skip to Main Content

DevOps, CI/CD and Automation

predicates on xmltype column nodes

921026Jul 25 2012 — edited Jul 25 2012
Here i'm sending 2 records with table. What i need is value of element <sno> for which the <name> is either Tamil or Ravi and for the record keyid=111
That is output I'm looking is 102888(102 is sno of Tamil and 888 is for Ravi).

with a as (
SELECT xmltype('<class>
</class>') result1,'111' keyid
FROM dual
union all
SELECT xmltype('<class>
</class>') result1,'222' keyid FROM dual
) SELECT a.keyid,a.result1 from a

This post has been answered by odie_63 on Jul 25 2012
Jump to Answer
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2012
Added on Jul 25 2012
1 comment