sona
10-04-2002, 02:35 AM
hai i have created an xmlschema and registered it.
(ORacle 9i)
and created a table of xmltype with xmlschema.
The xml follows like this
<BookStore>
<Book>
<title> MasterMind </title>
<Author> Adam </Author>
</Book>
<Book>
<title> Time to Think </title>
<Author> John </Author>
</Book>
..
</BookStore>
I want to write a query to perform the following,
Like i want to get the author name for the specific Title given.
I tried using extractvalue in where condition but i got error :"single row returns multiple values" something like that.
The above is a single xml row.
IS there any way.
(ORacle 9i)
and created a table of xmltype with xmlschema.
The xml follows like this
<BookStore>
<Book>
<title> MasterMind </title>
<Author> Adam </Author>
</Book>
<Book>
<title> Time to Think </title>
<Author> John </Author>
</Book>
..
</BookStore>
I want to write a query to perform the following,
Like i want to get the author name for the specific Title given.
I tried using extractvalue in where condition but i got error :"single row returns multiple values" something like that.
The above is a single xml row.
IS there any way.