Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

select values from XML type column

3669966Mar 10 2018 — edited Mar 12 2018

I have 2 expressions "case" that select values from XML type column but the rows in the target table contains values "IP address" и "ip address".

How to combine 2 "case" expressions into one field with the conditions for searching for entries "IP address" and "ip-address" into target table?

,case when length(table.description)>0 then xmltype(table.description).extract('//text[@label="IP adress"]/text()').getstringval()      else null end"IP"

,case when length(table.description)>0 then xmltype(table.description).extract('//text[@label="ip adress"]/text()').getstringval()      else null end"ip"

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2018
Added on Mar 10 2018
7 comments
1,383 views