What should be the XQuery for this..

hi
i have this xml file. and
what should be query to select the 'prod_id' where the 'prod_group = food'
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ROOT (View Source for full doctype...)>
- <ROOT>
- <row>
<field name="prod_sk">1</field>
<field name="prod_id">S101</field>
<field name="prod_desc">Soap 1</field>
<field name="prod_catg">Soap</field>
<field name="prod_group">Detergent</field>
</row>
- <row>
<field name="prod_sk">2</field>
<field name="prod_id">S102</field>
<field name="prod_desc">Soap 2</field>
<field name="prod_catg">Soap</field>
<field name="prod_group">Detergent</field>
</row>
- <row>
<field name="prod_sk">3</field>
<field name="prod_id">M101</field>
<field name="prod_desc">Meat 1</field>
<field name="prod_catg">Meat</field>
<field name="prod_group">Food</field>
</row>
- <row>
<field name="prod_sk">4</field>
<field name="prod_id">M102</field>
<field name="prod_desc">Meat 2</field>
<field name="prod_catg">Meat</field>
<field name="prod_group">Food</field>
</row>
- <row>
<field name="prod_sk">5</field>
<field name="prod_id">C101</field>
<field name="prod_desc">Choco 1</field>
<field name="prod_catg">Chocolates</field>
<field name="prod_group">Food</field>
</row>
- <row>
<field name="prod_sk">6</field>
<field name="prod_id">C102</field>
<field name="prod_desc">Choco 2</field>
<field name="prod_catg">Chocolates</field>
<field name="prod_group">Food</field>
</row>
- <row>
<field name="prod_sk">7</field>
<field name="prod_id">R101</field>
<field name="prod_desc">Rice 1</field>
<field name="prod_catg">Rice</field>
<field name="prod_group">Food</field>
</row>
- <row>
<field name="prod_sk">8</field>
<field name="prod_id">R102</field>
<field name="prod_desc">Rice 2</field>
<field name="prod_catg">Rice</field>
<field name="prod_group">Food</field>
</row>
- <row>
<field name="prod_sk">9</field>
<field name="prod_id">PD101</field>
<field name="prod_desc">Powder 1</field>
<field name="prod_catg">Washing Powder</field>
<field name="prod_group">Detergent</field>
</row>
- <row>
<field name="prod_sk">10</field>
<field name="prod_id">PD102</field>
<field name="prod_desc">Powder 2</field>
<field name="prod_catg">Washing Powder</field>
<field name="prod_group">Detergent</field>
</row>
</ROOT>

Cross join?
SQL> select a.country_short_name
  2       , b.country_short_name
  3    from country_sample a
  4   cross
  5    join country_sample b
  6   where a.country_short_name != b.country_short_name
  7  /
COUNTRY_SH COUNTRY_SH
IND        PAK
IND        ENG
IND        AUS
PAK        IND
PAK        ENG
PAK        AUS
ENG        IND
ENG        PAK
ENG        AUS
AUS        IND
AUS        PAK
AUS        ENG
12 rows selected.

Similar Messages

  • What should be the procedure for  export parameter in CATT

    Hello Everybody,
    I am working with CATT, and the transactions are <b>ME21N</b> and <b>MIGO</b>.
    when i am executing the transaction <b>ME21N</b> i will get the <b>Pur Ord No</b>in the message, and i would like to export <b>Pur Ord No</b> to the transaction <b>MIGO</b> as thr is one field named Purch.ord no in Migo.
    what should be the Procedure for exporting a parameter?
    Thanks,
    Regards Afroz

    Hello Afroz,
    If you are using eCATT then following is the procedure of capturing messages in the two recording methods - TCD & SAPGUI.
    => TCD Recording Mode:
    In TCD recording mode, after dobleclicking on Interface name from the TCD command in the editor on left side, just before the MSG folder DYNPRO folder will appear on right side.
    -This DYNRPO folder contains the screen sequences contain the screen occurred during recording time. The last Dynpro of this folder contains the messages occurred during recording.
    -Select this last folder & click on Simulate Screen icon of the same Interface editor. It will redirect to the screen where the message values exist. There select the Purchase Order Number and click on Read Field Value icon. Give the name of Export Variable.
    The export variable will contain the value of the purchase order number, which can be passed to MIGO.
    => SAPGUI Recording Mode:
    In the SAPGUI recording mode, the screen on which the message appeared will be used to capture the variable name, which is Purchase Order Number in this case.
    If the Purchase Order Number is second variable of the message displayed(e.g. Purchase Number 2122323 Is Created)
    then use the following code -
    e.g.
    MESSAGE ( MSG_1 ).
    SAPGUI ( ME21N_4001_STEP_5 ).
    ENDMESSAGE ( E_MSG_1 ).
    Assing the value from the message to the export
    parameter
    P_EC_PurOrdNo = E_MSG_1-[1]-MSGV2.
    There are total four MSGV1-MSGV4 variables. Dobule click on MSG_1 of the MESSAGE statement above. Putting the value in the export variable from the right message variable will give the purchase order number.This can be passed as MIGO.
    Regards

  • Hi, I m using an iPhone 4 and my yahoo push email was working just fine but for the last few days I am experiencing some problem that is the emails are not getting pushed , I have to manually fetch the mails. So what could be the reason for this....

    Hi, I m using an iPhone 4 and my yahoo push email was working just fine but for the last few days I am experiencing some problem that is the emails are not getting pushed , I have to manually fetch the mails. So what could be the reason for this.....I have set the email setting to "push" mode. Moreover I can't edit the mail server address ....current it's on Yahoo SMTP server

    Will it get rectified and restored...if so after how long. What could be the reason for such outage kindly share,  as I am facing real problem because of this...

  • I have an ipod shuffle 1st generation it will work if i connect it to my usb port in car or on computer but i can not get it to work using just headphones what coud be the reason for this

    I have an ipod shuffle 1st generation. it will work ousing usb port in car or on computer but i can not get it to play using headphones. what would be the reason for this.

    Sorry for  the typos, I hope my message still gets across!

  • Hey, my iPhone 5 gets switched off on its own. Couldn't switch it on immediately. Have to put it for charging and gets switched on... What should i do now for this???

    Hey, my iPhone 5 gets switched off on its own. Couldn't switch it on immediately. Have to put it for charging and gets switched on... What should i do now for this??? when evr i go out this is one big problem i get... Couldn't use my fone.... Have to wait until i go back home...

    Start here www.apple.com/ca/support/ or call 1-800-263-3394.

  • What could be the reason for this error file

    Hi,
    What could be reason for this error file, the content of the error file is :
    Compiling INSERT-PROCEDURE trigger on IOTDISPUTE_FILES data block...
    No compilation errors.
    Compiling UPDATE-PROCEDURE trigger on IOTDISPUTE_FILES data block...
    No compilation errors.
    Compiling DELETE-PROCEDURE trigger on IOTDISPUTE_FILES data block...
    No compilation errors.
    Compiling LOCK-PROCEDURE trigger on IOTDISPUTE_FILES data block...
    No compilation errors.
    Compiling INSERT-PROCEDURE trigger on IOTDISPUTEDETAILS data block...
    No compilation errors.
    Compiling UPDATE-PROCEDURE trigger on IOTDISPUTEDETAILS data block...
    No compilation errors.
    Compiling DELETE-PROCEDURE trigger on IOTDISPUTEDETAILS data block...
    No compilation errors.
    Compiling LOCK-PROCEDURE trigger on IOTDISPUTEDETAILS data block...
    No compilation errors.
    Created form file X:\IOT\IOT_SupportingSystem\Forms\IOTRAP.fmx
    I am getting this error while compiling a form with DML sources are Database Procedure.
    Thanks in advance.
    Rizly

    Hi,
    Sorry for the delayed response. These informations are generated in the FormName.err file. If its not the error, then why its not generating for other forms. As I mentioned earlier, this fom has DML sources by the Database Procedures, that could be the reason ?, this is my first project in Forms.
    The content of the IOTRAP.err file:
    Compiling DELETE-PROCEDURE trigger on IOTDISPUTEDETAILS data block...
    No compilation errors.
    Compiling LOCK-PROCEDURE trigger on IOTDISPUTEDETAILS data block...
    No compilation errors.
    Created form file X:\IOT\IOT_SupportingSystem\Forms\IOTRAP.fmx
    Thanks in advance.
    Rizly

  • A new top level site was created successfully but won't launch. What can be the cause for this?

    A site collection was created with the URL intranet.contoso and it was added to the DNS as intranet.contoso. The top-level site was created successfully after that with the URL being
    http://intranet.contoso/main but it is not launching and the following is the error message -
    This page can't be displayed.
    This will be a production environment so disabling the security loopback will not be an option. Any suggestions?
    Many Thanks,

    I can connect only to the SharePoint Central Administrator from the client computer but not the top level site.
    The error i'm getting is This page can't be displayed.
    Make sure the web address http://contonsoportalis correct
    Look for the page with your search engine
    Refresh in a few minutes
    Fix connection problems - When clicked the following shows up "Make sure the computer or device is turned on and connected to the network" Windows can't find contosoportal. If the computer or device you are trying to reach is nearby,
    make sure it is turned on and connected to the network. Otherwise contact your network administrator for assistance.
    The DSN already had a host created for an intranet that is running SharePoint 2010 called intranet so I created a new host (A and AAA) named it Portal insert the ip address of the new sharepoint 2013 server but it still didn't work.
    This is the configuration shown in the DNS
    Host A Tab -
    Host (uses parent domain if left blank)
       Portal.contoso.local
    IP address: 192. X.X.X for the SharePoint Server
    ( Should I create a CNAME instead of a new host for the portal? )
    I added the host names in the register but it still does not work....
    It's a virtual environment running on top of hyper V - One server for SharePoint another for SQL and both joined to the DC.

  • What should be the parameter for forName() method if i use MS SQL server

    if i use the MS SQL Server Personnal Edition, what string i should pass as parametter to forName() method of class Class.
    Class.forName ("XXXXXXXX");
    ie what should be in the place of XXXXXXX in the above line of code if i use SQL server
    thank u

    com.microsoft.sqlserver.jdbc.SQLServerDriver
    http://msdn2.microsoft.com/en-us/library/ms378956.aspx

  • What should be the reason for " ERROR 1004" ? Any means to sort this issue. It comes up on my screen when i try downloading any application through my ipfone 4

    Hi guys,
    I find diffficulty downloading applications from appstore to my fone directl
    Each and every time it shows " ERROR 1004 "
    Cant understand what to be done.

    shaminsharaf wrote:
    Hi guys,
    I find diffficulty downloading applications from appstore to my fone directl
    Each and every time it shows " ERROR 1004 "
    Cant understand what to be done.
    I think this is your fix...
    http://support.apple.com/kb/TS1275

  • ALL IP SLAs to dmVPN spokes give invalid RTT=1 . Nodes use NTP. What can be the reason for this?

    IP SLA Measurements are invalid. RTT should be 20 to 60ms, but IP SLAs deliver RTT=1ms. This applies for UDP Jitter and UDP echo IP SLAs.
    Nodes use NTP time.

    you can use any router you want - I use a netgear others belkin - up to you.
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • What is the reason for this error, in printing

    HI,
      when I print the label,  in the system log it showing this error message.
    character converter active when first problem occurred****  Any one explain me what could be the reason for this error. 
    Thanks and Regards,
    Surya

    Hi Surya,
    Check out
    http://www.sapfans.com/forums/viewtopic.php?t=247433&sid=ea0c61e87af526fe4c83fe256efe0721

  • What should be the host mailserver

    Hi everyone,
    I am testing the odisendmail. It throws an error
    avax.mail.SendFailedException: Sending failed;
    nested exception is:
         javax.mail.MessagingException: Unknown SMTP host: smtp.mail.xx.com;
    nested exception is:
         java.net.UnknownHostException: smtp.mail.xx.com
         at javax.mail.Transport.send0(Transport.java:218)
         at javax.mail.Transport.send(Transport.java:80)
         at com.sunopsis.dwg.tools.SendMail.actionExecute(SendMail.java)
         at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    I know that there is a problem with my host server. My question is if i need to test this thru my laptop what should be the values for host: from and to:
    Please suggest.
    Regards
    Babul

    host : mail.yourcompany.com
    to : [email protected]
    from : [email protected]
    The above assumes that your mail server allows unauthenticated emails.
    Also read this article to test if a mail server is reachable using any computer:
    http://asktom.oracle.com/pls/asktom/f/f?p=100:11:0::::P11_QUESTION_ID:2118740358226

  • When i connect my ipad2 to iTune, it show "iTunes could not check for an update to the carrier settings for your iPad. An unknown error occured (1651)". What should i do to solve this problem? My iTune version is 10.1.4.10 and my ipad is 4.3.5.

    When i connect my ipad2 to iTune, it show "iTunes could not check for an update to the carrier settings for your iPad. An unknown error occured (1651)". What should i do to solve this problem? My iTune version is 10.1.4.10 and my ipad is 4.3.5.

    If you have iOS 7.1 then you must be a developer, so you should be posting in the developer forums : https://devforums.apple.com/index.jspa

  • I can not do the update , what should I do to fix this error ? "There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanks

    I can not do the update , what should I do to fix this error ?
    "There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanks

    Hi,
    Please refer to the help document below:
    Error downloading, installing, or updating Creative Cloud applications
    Regards,
    Sheena

  • A friend of mine downloaded an app from the internet onto my iPod Touch 4 so I could play pokemon on my iPod, I deleted the app but now iTunes and the App Store won't open, they say that the certificate for this server is invalid. What should I do?

    A friend of mine downloaded an app from the internet onto my iPod Touch 4 so I could play pokemon on my iPod, I deleted the app but now iTunes and the App Store won't open, they say that the certificate for this server is invalid. What should I do?

    Try:
    Why does my iPod 4th generation say the certificate for this server is invalid when trying to access iTunes? I've never had an issue until this recently.

Maybe you are looking for