Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XMLTYPE to DB Table

Status
Not open for further replies.

dbomrrsm

Programmer
Feb 20, 2004
1,709
GB
I am trying (with SQL) to convert an XML type column to a database table. I can do this using XMLTable succesfully until I come across multiple repeating groups.

When I encounter the first node that can repeat I can manage to handle this but if withing this repeating group I encounter another it results in a cartesian join type situation.

What I guess I need is a mechanism for starting at the lowest level and working upwards so that for each of the lowest level rows I get one database row.

Is there any functions that will help with this type of situation?

Many thanks

[bandito] [blue]DBomrrsm[/blue] [bandito]

[blue]Software code, like laws and sausages, should never be examined in production[/blue][black] - [/black][purple]Edward Tenner[/purple]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top