How to make this Xquery request in XMLQuery
Hello worldIf I have these tables
create books (books, varchar2 (64), XML_DOCUMENT XMLType);
Create table review (FILENAME, varchar2 (64), XML_DOCUMENT XMLType);
and populated by
INSERT INTO (books, XML_DOCUMENT) VALUES ('books', xmltype ('))
< library >
< Book category = "COOKING" >
< title lang = "fr" > < /title > Italian newspaper
< author > Giada De Laurentiis < / author >
< year > 2005 < / year >
< price > 30.00 < / price >
< / book >
< Book category = "COOKING" >
< title lang = "fr" > < /title > Italian newspaper
< author > Norah < / author >
< year > 2005 < / year >
< price > 30.00 < / price >
< / book >
< Book category = "COOKING" >
< title lang = "fr" > < /title > Italian newspaper
Rama < author > < / author >
< year > 2005 < / year >
< price > 30.00 < / price >
< / book >
< Book category = "COOKING" >
< title lang = "fr" > < /title > Italian newspaper
< author > love < / author >
< year > 2005 < / year >
< price > 30.00 < / price >
< / book >
< Book category = "COOKING" >
< title lang = "fr" > < /title > Italian newspaper
< author > Dedo < / author >
< year > 2005 < / year >
< price > 30.00 < / price >
((< / book > '));
INSERT INTO test (FILENAME, XML_DOCUMENT) VALUES ('Journal', xmltype ('))
< test >
Italian newspapers < title > < /title >
< author > Giada De Laurentiis < / author >
< year > 2005 < / year >
< price > 30.00 < / price >
< / review >
') );
and I want this xquery in XMLTYPE level
for $a in doc ("F:\movie\books.xml") / / title,.
$b in //review doc ("F:\movie\review.xml")
where $a = $b / title
return < result > {$a, $b/author} < / result >
Just answer me quickly I have a problem with this
Hi Nina,
can you please explain a bit what you expect the output of your XQuery?
Do you want the library books for which there is a review, or just books where the title is the same with a book that was reviewed?
The two cases above do not produce the same result...
To answer your question, in order to execute the request of Michael in your environment, all you have to do is drop the subquery clauses weighted (i.e. everything that precedes him ' select * from xmltable "part) and also to replace the column names and the table in the clause of passage with what is appropriate.
In your case, "xmltype (cursor (select * books))" should be replaced by "xmltype (cursor (select XML_DOCUMENT from books))" and "xmltype (cursor (select * review)) should be replaced by" xmltype (cursor (select review XML_DOCUMENT)) ".»
If you want the books to the library for which a review is, then you need to replace your query with
{code}
Select * from xmltable (' for $i in $rv / / review)
for $j in $bk / / book [title = $i / title and author = $i / author]
return the result of the element {$j/title/text (), ', ', $j/author/text ()}
"passing xmltype (cursor (select * from books)) as"bk ",
XmlType (cursor (select * from revision)) as "rv")
{code}
Best regards
Philippe
Tags: Database
Similar Questions
-
When I go to get the modules (7.0.1), there is no evidence, except the info bubble "which are the modules. How to make this work? The rest of the functions in this section seems to work. And I can get MY addons, but not the available modules.
On the left side, click Extensions.
-
whenever I click on something on that I get pop up as I'm right click how to make this stop?
whenever I click on something on that I get pop up as I'm right click how to make this stop?
Cindy,
What should I have selected in system preferences... > mouse > Point & Click > secondary click?
-
"$US" automatically... How to make this stop?
Hello
I have "joint currency" spreasheet
But the numbers seem to AUTOMATICALLY add a 'US' before ' $'.
How to make this STOP?
Thank you very much
Troy
Hi Troy,
This is probably connected with the region setting in system preferences > language and text. Several countries use the sign $ as their monetary symbol.
Browse from the context menu in the preferences to see which is the "naked" in your area and who to choose as your marker for amounts in US dollars.
The symbol has no effect on the number of underlyings.
Kind regards
Barry
-
I signed up for Apple music and since then I can't synchronize playlists from my computer to my phone because it says I have iTunes game turned on, but I do not subscribe to iTunes recently Match (ish). How to make this stop?
Hello
You cannot synchronize in usb or wifi if you subscribe to the Apple's music. The basic principle of the AM is that your iTunes library is scanned to determine what can be matched or must be downloaded. Once completed, all the music you will be available to listen to or download on your iOS device.
Jim
-
screen scrolls top down on its own how to make this stop
my screen jumps up and down how to make this stop?
Hi ssuueet,
- Have you tried the steps suggested?
- Have you managed to solve the problem?
If this isn't the case, reply to the thread, then we can look for other options.
Thank you!
-
in the folder windows images, photo icons are the same and are not actually see a little image of the image. How to make this happen
Hi tonutot,
1 when was the last time it was working fine?
2. did you of recent changes on the computer?
3. only happens in the pictures folder?
Check and make sure that the bottom of settings is set correctly on the computer.
(a) in the currently open folder, click organize on the toolbar, and then click folder and Search Options.
(b) click on the view tab, and then deselect the always show icons, never thumbnails check box.
(c) click on apply and OK
Behavior and change folder views
http://Windows.Microsoft.com/en-us/Windows-Vista/change-folder-views-and-behavior
I hope this helps!
Halima S - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
My tx10 automatically rotates pictures 90 degrees after that I'll take them. How to make this stop?
The camera automatically rotates the image according to its orientation. Unfortunately, this feature cannot be disabled.
You can correct orientation by setting the [rotation] option in the menu viewing.
If my post answered your question, please mark it as "accept as a Solution.
-
Do I need to eliminate one of the creative clouds? How to make this work-2 accounts on one computer?
Hi Kim,
Two creative cloud subscriptions registered under 2 different unusable i.d. together on a single computer.
Must disconnect and connect each time as the creative cloud desktop application, in order to be able to use another subscription.
-
Hi, I was wondering if someone could point me in the right direction how to make this intro in After Effects. What is a table multi or something else?
CCI of driving a vision for the future of WA - YouTube
Some other effects used in which seem to be:
Plexus: http://aescripts.com/plexus/
Race 3D: http://www.redgiant.com/products/trapcode-3d-stroke/compatibility/
Individual: http://www.redgiant.com/products/trapcode-particular/
The photo explosion could be made with the individual or the shape (the author can have the Trapcode Suite)
-
When I export my file to generate a .pdf file, the text box is literally a box around it! How to make this line disappear?
Looks like you have a line on it. Select the image and the race set to None.
-
Facebook like button does not work, I used the widget of muse and created the facebook code. Anyone know how to make this work?
Hi connally25,
Here is a link to a video tutorial on how to add a Facebook button, please check if you have followed the same steps to add the video.
http://TV.Adobe.com/watch/learn-Adobe-Muse-CC/adding-a-Facebook-like-button/
If you followed the steps correctly and the button still does not; Here is a link to a forum thread which may help to solve the problem:
Facebook follow Widget does not
Concerning
Sonam
-
hit a wrong button and everything is bigger - how to make this new kid?
I was cleaning my keyboard and typing something that makes everything bigger - how to get back to normal size?
Hello
Right click on desktop - customize - display settings - Set resolution.
Right click on desktop - customize - top left adjust font size (DPI)
CTRL + mouse wheel works ZOOM
CTRL + and CTRL - work ZOOM in and out
Your mouse/touchpad probably incorporates a ZOOM to it.
Your system also has a magnifier built in which could be a problem - it can also often be programmed to work
on mouse/keyboards.How to turn on the Magnifier On or Off in Vista
http://www.Vistax64.com/tutorials/125037-Magnifier-turn-off.htmlTo see if your mouse/touchpad is set to ZOOM or enlarge use Control Panel - mouse.
The TouchPad also has Hotkey controls to verify with the help of machine to online system
documentation and their forums, where appropriate.==========================================
Use restoring the system to a point before you did.
Start - Control Panel - restore and backup center - upper left repair Windows
How to make a Vista system restore
http://www.Vistax64.com/tutorials/76905-System-Restore-how.htmlI hope this helps.
Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.
-
Hello!
How can I make this ball of vector or circle as a whole form that I can change color as I want.
I was able to do after sticking a halftone vector and culture then a circle with top with some PathFinder commands. Somehow I could have done it wrong because I had to erase a small circles. I want to do everything with the circle of patern of mixed together as a unit.
Sorry if my explanation is perhaps not very good. English is not my first language.
Best,
You can fill a circle with one of the models of halftone color chart > models > basic graphics > Graphics_Dots base.
Select the full circle and then use ADSI > edit colors > redefine to turn black in color.
-
How to make this type of graphical overlays
does anyone know how to do this type of overlays?
Vehicle Systems Engineering B.V. - YouTube
After Effects, possibly in parallel with a 3D software.
Mylenium
Maybe you are looking for
-
As indicated in the question - Firefox for Android version 34.0.1, Android version 5.0.2 (Tablet Google Nexus 7 2013).This problem just showed today - I found an image on the web (not Facebook) that I wanted to save, so I did the press long habit, th
-
How to let guests to use use the DVD player
I can't the Ridge a guest account that find no way to let them use the DVD player application.
-
Result variation and inconsistency Ni Vision Builder AI
I am currently using OR Vision Builder HAVE (2012) to analyze a series of images, and the preparation of appropriate inspections, I noticed that the results are not reproducible. I am currently using various measures of analysis such as the color of
-
T60 1953-D7U - How can I find the model/serial numbers of LCD? (on my device)
I have a discoloration LCD display I have to replace. How can I determine model/serial number of my existing screen? Thank you.
-
Why a new canon mp280 will not print on the internet?
newly installed canon mp480 print a test page and print a document stored on the computer but does not oe or ie print