How can I retrieve all the values in a single query in the oracle XML

Hi all

I have xml format below, how do I retrieve all the values in a single query.

< files >

< job > MANAGER < / job >

< details >

< ename > JONES < / ename >

< sal > 2975 < / sal >

< ename > BLAKE < / ename >

< sal > 2850 < / sal >

< ename > CLARK < / ename >

< sal > 2450 < / sal >

< / details >

< / documents >

Thank you

I prefer desgin a little more sophisticated xml and wrap the details in a separate label.

Then you could something like that

1 with testdata until)
2. Select xmltype)
3'
4 MANAGER
5


6
7 JONES
8 2975
9

10
11 BLAKE
12 2850
13

14
15 CLARK
16 2450
17

18

19
20 ') in the form x
21 double
22)
23 select
24 j.job
25, d.ename
26, d.sal
27 of testdata
28 join
29 xmltable ("Scriptures" in passing testdata.x)
30 columns
31 job varchar2 (30) path "job."
32, details xmltype path «details»
(33) j
34 (1 = 1)
left outer join 35
36 xmltable (' details/emp' in passing j.details)
37 columns
path of varchar2 (30) 38 'ename' ename
39, path of varchar2 (30) sal "sal".
(40) d
41 * (1 = 1)
>/

JOB                            ENAME                          SAL
------------------------------ ------------------------------ ----------
JONES MANAGER 2975
BLAKE MANAGER 2850
MANAGER CLARK 2450

Tags: Database

Similar Questions

  • How can I retrieve all the favourites After erasing the history?

    I just deleted all of my history on my Firefox browser and without knowing it, he took all my favorites with her. I want to know how to recover all the. I've never done a backup of Firefox and I just want them back. I had a lot of ideas for recipes and stuff and I just want them in my bookmarks folder.

    Wow, that should not happen. Have you used the dialog box "Clear recent history" to clear your history, or another method?

    To see if there is a loss of data or a display problem, you can check your bookmarks in the Library dialog box? You can open it using either:

    • "Show all bookmarks".
    • CTRL + SHIFT + b

    If you click on the three categories (Menu bookmarks, Bookmarks Toolbar, Unsorted Bookmarks) can find you something in them?

    If it's all gone, could you try using the rollback feature? This applies to your automatic backups. This article has the steps: restore bookmarks from a backup or move them to another computer.

  • I can't reach all the hotmail - no page is before the current and most recent page. This has changed recently. How can I retrieve all the old emails? Please respond to Email removed for privacy. Thank you

    Hotmail pages can be put forward - only the current page is visible.  Changes have been made recently?  If Yes, please indicate how to move pages.

    Please send all Live and Hotmail queries on the forum right here:

    Windows Live Solution Center
    http://windowslivehelp.com/

  • Media Player Windows XP automatically wrong info for my titles. How can I stop all the automatic update of news media?

    Windows XP Media Player is automatically putting the wrong info for my pieces for example the name of the album and the cover.

    How can I stop all the automatic update of news media?

    Windows XP, the version of Windows Media player to date. ' Retrieve additional information on the internet "is not checked.

    "Rearrange music in rip music folder, using rip music settings" is not checked

    "Keep my ratings stars as global ratings in files" is unchecked

    "Maintaining the codecs automatically" is unchecked.

    Under Privacy Options, everything is disabled except "set clock on devices automatically.

    Thank you for your help in this endevor.

    Hello

    1 how long have you been faced with this problem?
    2. don't you make changes on the computer before this problem?
    3. what version of windows media player do you use?

    Try the fix tool in the following article and verify.
    Solve the problems of Windows Media Player video and other media or library
    http://support.Microsoft.com/mats/windows_media_player_diagnostic/

    See also:
    Resources for the resolution of problems in Windows Media Player
    http://support.Microsoft.com/kb/843509

  • How can I find all the plugins in the firefox browser

    HI I was wondering if I could ask a question how can I find all the installed plugins in the firefox lasted I would like to be able to know if, for example, if the shockwave plugin is updated and which version is currently installed in the firefox browser lasted.

    Thank you

    Hello Funny78, type Subject: addons in the address bar and then select plugins, add-ons manager opens and you can see the last version of the plugins (and other info), now click on the click to see if your plugins are up to date and see if it is.

    Thank you

  • How can I copy all the 18 000 pictures on my imac to an external hard drive to give to my daughter and also keep on the imac

    How can I copy all the 18 000 pictures on my imac to an external hard drive to give to my daughter and keep them all on my imac

    Your daughter have a Mac and use Photos? If so just copy your library of Photos to SMT, it must be formatted OS X Extended (journaled) with the defined property is ignored. Then she can use the SMT library or copy it on his Mac.

    If she doesn't have a Mac do the following:

    1 - Create a new folder on the external drive.

    2 - Select all photos in the library (in the window of Photos).

    3. Select the file ➙ ➙ export export Original unmodified for XXXXX items menu option.

    4. in the format of subfolder select Export window = name of the time

    5. in the next window, select the folder that you created on the external drive as the destination of export and export all your photos to this. Photos at every moment in your photo library will be put in a folder with the date of that moment and this issue will be put on the EHD in the folder that you created.

  • How can I view all the elements of an array?

    Hello

    I'm learning about the handling of tables.  The example finder includes this one, 'build array_forum.vi', which shows the two modes, concatenate and adding, I understand, HOWEVER, I can't understand how they built this vi.  For example, I can find the Array function to build, but I do not understand how they created the "digital data table 1" "data table 2" digital... etc, and I can't find the functions on the pallets that cause display "build the CONCATENATE entries table". ".  Where are these blue functions?

    Where these functions are found in the palette, and how we build them like that?

    The other vi indicated here, 'for loop array_forum.vi' is my attempt to reproduce, but it doesn't show all the elements of the array; However, it only displays a SINGLE element, the last element of the array.  How can I view all the items in the table I am creating using the FOR LOOP?

    Thank you

    Dave

    I think I posted this in the wrong place.  I reposted it on the forum of Labview.

    Dave

  • How can I remove all the unused files to clear a space

    How can I remove all the unused files from my computer

    You can remove applications on the control panels.  XP seems to me (im not on a XP ATM machine) programs cpanel

    Files?  you do not (or should not) delete separately

  • How can I move all the information of the computer without having to hit F1 or F2 at startup and go directly to the windows desktop in Windows XP

    How can I move all the information of the computer without having to hit F1 or F2 at startup and go directly to the windows desktop in Windows XP

    see if this article applies to your question:

    http://www.computerhope.com/issues/ch000301.htm

    a method to determine if the motherboard (cmos battery) battery should be replaced is to monitor the time in the windows desktop.

    If windows does not have the exact time, then the motherboard battery is low and must be replaced.

  • How can I delete all the music on my rocket drive using my computer?

    How can I delete all the music on my drive using my computer? I printed the user manual, but the statement is vague.

    Please help a frustrated old man,

    Thank someone who answers this time (even before ayone answers that I tend to forget to say thanks for the help)

    misterhy

    [email protected]

    You can (and should) get the free mp3tag: http://www.mp3tag.de/en/

    Install mp3tag.  When you install, let it be added to the context menus (an option during installation).

    Open mp3tag and in tools, Options, Tags, Mpeg do option Write ID3v2.3 ISO-8859-1. Those are tags favorite rocket, and once make you it by default, whenever you save tags in mp3tag you will get tags Fuze and respectful.

    Your albums may not be labeled at all, or may be marked in ID3v1, who will not read the "rocket". So he goes to the title, if there is a title tag or file name if there are no tags.

    You can now right click on an album folder and see mp3tag as an option to open it. When you click mp3tag, you'll see the files listed. Put them in order from top to bottom - you can try clicking on the header of the track-number or the name of the header file if they are 01-Track 1. If you can align them up and down, highlight all the and click Dial automatic tools Wizard with the option of leading zeros. Bingo: Track numbers 01, 02, 03, and they will play in the order.

    Sometimes people put numbers to track on the file names and they list in alphabetical order by song title - not good. If the "rocket" Impossible to find track numbers and the name of the file is FirstSongTitle-01 (rather than 01-FirstSongTitle), the "rocket" will play them in alphabetical order by name of file: FirstSong, FifthSong, FourthSong, SecondSong, SixthSong, ThirdSong. Then you will have to put in one of the track numbers.

  • How can I delete all the files in a folder with a back order?

    How can I delete all the files in a folder with a back order?

    rmdir

    To get options for rmdir, at the command prompt do: rmdir /? MS - MVP - Elephant Boy computers - don't panic!

  • How can I disable all the pings and tones and notes and sounds of the HP Officejetpro 8610?

    I can't tolerate the noise.  How can I disable all the pings and tones and notes and sounds of the HP Officejetpro 8610?  This 'thing' emits a beep and the pings and plays music.

    Thank you

    Sam

    Hi Sam,

    On the front panel of the printer, scrool main screen to the right and the clock setting icon.

    Then click Printer Setup, and then select sound effects Volume.

    Select and confirm, that should disable all these sounds.

    Shlomi

  • How can I get all the permissions Admin with Windows 8?

    I have recently installed Windows 8 on a used laptop that I bought and I'm trying to clean it up, but he always tells me I'm not allowed to watch even some files. How can I get all the PERMISSIONS ADMINISTRATOR?

    You must use the run as administrator command. So if you run a program or a file, just click and click on run as administrator. If you delete something, you must have an administrator account.

  • How can I transfer all the contacts in my address book to my laptop?

    How can I transfer all the contacts in my address book to my laptop?

    Thank you

    Charles

    Original title: ADDRESS BOOK

    It depends on where your contacts are stored today.  Whether they're on your phone, for example.  But they are also synchronized to your email provider?  In other words, can you get to your address book by going to your email Web site as an e-mail service to company/school, or Gmail, Yahoo, Hotmail or Outlook.com?  If so, you can sync with your laptop by adding this account to your computer.

    If you can answer with details about your configuration and where your contacts are now and where, inside your laptop you want (like inside Outlook perhaps?), we can help a lot more.

  • How can I activate all the keys on my keyboard?

    I have this beautiful HP Pavilion with Windows 7 Home Premium 64 - bit and an AMD quad-core processor.  The keyboard is the unit of HP supplied with the machine.  How can I get all the keys activated or enabled?  I tried to use the print screen button, but it won't work.  I clicked on the Start button and help and documented Support but can't seem to find an answer.  Any help would be greatly appreciated.

    I have this beautiful HP Pavilion with Windows 7 Home Premium 64 - bit and an AMD quad-core processor.  The keyboard is the unit of HP supplied with the machine.  How can I get all the keys activated or enabled?  I tried to use the print screen button, but it won't work.  I clicked on the Start button and help and documented Support but can't seem to find an answer.  Any help would be greatly appreciated.

    Do you understand what is the print screen key?  It takes a screenshot of your screen and put it in your Clipboard - is not, despite its name, print screen a printer directly.
     
    Try this:
    1) Press PRINT SCREEN
    (2) open Microsoft Word or Microsoft Paint
    (3) in the main body of the new document/image - click and press CTRL + V to paste the image into the Clipboard.

Maybe you are looking for

  • Microsoft TMG

    We use 10.10.0.0/16 subnet as VLAN1 in our configuration LAN, TMG is configured as below Internal Ethernet card: The connection-specific DNS suffix. :IPv4 address...: 10.10.10.61... Subnet mask: 255.255.0.0.... Default gateway. : External Ethernet ad

  • Error code 646 in Windows Update

    Error 646 while trying to update the following June 2007 products Office: Path to information from Microsoft (KB979441); Excel 2007 (KB982308); Power Point (KB982158); Office Publisher (KB982124); Office Word (982135); Office system (KB982312) securi

  • Windows Update to Win7 install and hangs right on 12 of 18.

    The title pretty much sums up it. I downloaded 18 updates and he went then to the installation of these updates. He was going well until he got to number 12 of 18: "Cumulative Security Update for Internet Explorer 8 for Windows 7 for x 64 systems. It

  • WRT54GL and Windows 7 log in question

    I have a network of several PC on my WRT54GL router - firmware 4.30.14 building 5, October 26, 2009 All PC's are XP SP3 except a Win 7 PC When I access my WRT54GL from all of my XP computers, I connect at once and I'm done. I can access all the pages

  • Date and time system continues to change each time the system starts.

    I noticed that the time and date of my home PC gets changed every time the system is booted. The default date is set for Jan. 2008, when in fact it should be July 2014. Also, my PC became slow death. I use Windows 7 on 1 GB of RAM, 250 GB PC. I used