Sample XML format that can be used to write a SELECT query

Hello,
I want to use and XML file in the scenario FILE to JDBC where i use the operation as SELECT in which i want to embbed an sql statemnet which is equivalent to
SELECT EMPNO, NAME FROM EMPLOYEE WHERE EMPNO>1
as in the form of XML format like,
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_JDBC_SELECT_JDBC_REQ xmlns:ns0="http://JDBC_SELECT">
<STATEMENT>
<TABLENAME ACTION="SELECT">
<TABLE>EMPTEST</TABLE>
<ACCESS>
<EMPNO></EMPNO>
<NAME></NAME>
</ACCESS>
<KEY>
<EMPNO compareOperation="GT">1</EMPNO>
</KEY>
</TABLENAME>
</STATEMENT>
</ns0:MT_JDBC_SELECT_JDBC_REQ>
Can i do like this?
PLease help me out in using various conditions in the XML file formats like the above.
Thanks,
Soorya.

Hello raj,
I would like to write the query in that format where i mentioned as,
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_JDBC_SELECT_JDBC_REQ xmlns:ns0="http://JDBC_SELECT">
<STATEMENT>
<TABLENAME ACTION="SELECT">
<TABLE>EMPTEST</TABLE>
<ACCESS>
<EMPNO></EMPNO>
<NAME></NAME>
</ACCESS>
<KEY>
<EMPNO compareOperation="GT">1</EMPNO>
</KEY>
</TABLENAME>
</STATEMENT>
</ns0:MT_JDBC_SELECT_JDBC_REQ>
without giving clear SQL statement as you mentioned here like,
<ns0:MT_JDBC_SELECT_JDBC_REQ xmlns:ns0="http://JDBC_SELECT">
<STATEMENT>
<TABLENAME ACTION="SQL_QUERY">
<ACCESS>SELECT EMPNO, NAME FROM EMPLOYEE WHERE EMPNO > '$EMPNO$’</ACCESS>
<KEY>
<EMPNO>1</EMPNO>
</KEY>
</TABLENAME>
</STATEMENT>
</ns0:MT_JDBC_SELECT_JDBC_REQ>
Thanks,
Soorya

Similar Messages

  • How can i use SUM aggregate in select query?

    HI,
    GURUS,
    How can i use SUM function in Select Query and i want to store that value into itab.
    for ex:
    TABLES: vbap.
    types: begin of ty_vbap,
           incluse type vbap,
           sum type string,
          end of ty_vbap.
    data: i_vbap type TABLE OF ty_vbap,
          w_vbap type ty_vbap.
    SELECT sum(posnr) FROM vbap into table i_vbap up to 5 rows.
                            (or)
    SELECT sum(posnr) FROM vbap into table i_vbap group by vbeln.
      loop at i_vbap into w_vbap
    " which variable have to use to display summed value.
      endloop.
    if above code is not understandable pleas give ome sample code on  above query.
    Thank u,
    shabeer ahmed.

    Hi,
    Check this sample code.
    TABLES SBOOK.
    DATA:  COUNT TYPE I, SUM TYPE P DECIMALS 2, AVG TYPE F.
    DATA:  CONNID LIKE SBOOK-CONNID.
    SELECT CONNID COUNT( * ) SUM( LUGGWEIGHT ) AVG( LUGGWEIGHT )
           INTO (CONNID, COUNT, SUM, AVG)
           FROM SBOOK
           WHERE
             CARRID   = 'LH '      AND
             FLDATE   = '19950228'
           GROUP BY CONNID.
      WRITE: / CONNID, COUNT, SUM, AVG.
    ENDSELECT.
    Regards,
    Sravanthi

  • Image formats that can be used directly in PDF

    Hi,
    after severel hours of searching google, discussion boards and the PDF reference, I could not find an answer, so hopefully you guys can help me .
    I have written my own little PDF exporter and want to include images. I figured out to include jpegs directly, with the DCTDecode filter.
    Are there other image formats, which can be included in PDF directly?
    I read somewhere, that GIFs - for example - has to be parsed to get the pixel data and than must be compressed again to be inserted in the PDF file. Therefore it would be easier for me to convert GIF to JPEG with an external program and then insert the JPEG into the PDF. Or is there an advantage, to include the GIF like described above?
    What about BMP, TIFF and other image formats?
    Is it possible to insert image files lossless into PDF?
    I know, lots of questions but i would be really glad if someone can help me .
    Thanks in advance,
    Regards, Maecky

    Hi,
    thanks for your answer.
    What exactly do you mean with "unwrap"? Should i just get the data without header of the image file and put it into the pdf stream? Otherwise i would have to decompress the format, or am I wrong?
    Thanks,
    kind regards, maecky

  • How can i use param in my select query ( see code)

    Hi ,
    I need to use the param instead of hardcoding the value in the select query , when i did that it is working .
    I think the limit of args is only till the end of main and my select query is in a method called Load() .
    How can i use the param in my select query .
    public static void main(String[] args){
    name = args[0];
    class= args[1];
    new Load();
    }//end of main
    public Load()
              try {
                   Class.forName(JDBC_DRIVER);
                   connection = DriverManager.getConnection(DATABASE_URL,"username","pw");
                   statement = connection.createStatement();
                   //First Query : pin and ticket number
                   ResultSet resultSet = statement.executeQuery("SELECT pin , ticketnumber from airport ,year where "+                                                                      "year.year_name= Here i need to use the param (instead of hardcoding) and year.class_year= Here too i need to use param");
    }// end of method Load()Edited by: 1sai on Sep 24, 2008 7:34 AM
    Edited by: 1sai on Sep 24, 2008 7:35 AM

    Might I suggest you change the structure of your program to the following:
    public class Load {
      private Connection conn;
      private PreparedStatement statement;
      public Load(String sql) {
        init(sql);
      protected void init(String sql) throws Exception {
        Class.forName(JDBC_DRIVER);
        conn = DriverManager.getConnection(DATABASE_URL, "username", "pw");
        statement = conn.prepareStatement(sql);
      public ResultSet execute(String p1, String p2) throws Exception {
        statement.setString(1, p1);
        statement.setString(2, p2);
        return statement.executeQuery();
      public void close() throws Exception {
        if (statement != null)
          statement.close();
        statement = null;
        if (conn != null)
          conn.close();
        conn = null;
      public static void main(String[] args) throws Exception {
        String sql = args[0];
        String param1 = args[1];
        String param2 = args[2];
        Load load = new Load(sql);
        ResultSet rs = load.execute(param1, param2);
        while (rs.next())
          System.out.println(rs.get(0));
        rs.close();
        load.close();
    }This allows you to use the same "Load" object for multiple queries with different parameters.
    I do not recommend you actually use the code above in any sort of production application. You should really take a look at Spring Framework along with an ORM tool like Hibernate or Ibatis to simplify your DAO layer.
    Hope this helps,
    David

  • Converting files to a format that can be used in FCE HD

    I am trying to make a home movie. I downloaded a disney movie that I want to use clips from as part as my home movie. With the file in its current format XXX.m4v I can't do it? Any suggestions on how I can get around this?

    FCE only works in DV or HDV, either NTSC or PAL. If the material is small, web format video, it'll have to be scaled up to conform to DV, and it will look pretty ugly.

  • Can I re-convert dng files to psd files (or another format that can be used in Adobe Touch)?

    I am using LR 4.1, CS6, on a PC running Windows 7.  Creative Cloud will accept dng's, but Adobe Touch will not.  I'd hate to have to re-save lots of photos one at a time.  (I'm not generally all that happy with dng format--it makes some files unreadable elsewhere, and any work done on a dng results in its being saved as a psd anyway.)
    Thanks for any ideas.
    Gail

    1. Proprietary formats such as NEF and CR2 are secret.
    2. The universal DNG is an open format.
    By all means stick to the raw files produced by your camera if you intend to do your editing in the software provided by your camera manufacturer. If you do all your editing in Adobe software DNG, imho is a better workflow choice.
    For archiving purposes I would sooner trust Adobe for future support on DNG than individual camera makers who are known to change their raw formats. Also the benefit of embedded data and no sidecar files, plus fast load data (introduced for DNG’s in Lightroom 4) are clear advantages
    If you want to use a tablet with Photoshop Touch tools such as layers, selection tools, adjustments, and filters then a PSD exported from DNG in light room will almost certainly produce an optimum sized file. Tiff will also support layers but the file size will usually be much bigger.

  • What format i should use for my external hard drive that can be used interchangeably between mac and pc?

    What format i should use for my external hard drive that can be used interchangeably between mac and pc?

    Usually Fat32/MS-DOS as mentioned, but that has several limitatiuns, like 4GB filesize limit.
    One option is MacDrive for you PCs... allows them to Read/Write HFS+...
    http://www.mediafour.com/products/macdrive/
    More options...
    NTFS-3G Stable Read/Write Driver...
    http://www.ntfs-3g.org/
    MacFUSE: Full Read-Write NTFS for Mac OS X, Among Others...
    http://www.osnews.com/story/16930

  • Is there a limit to no. of summary fields that can be used in a cross tab?

    Hi,
    While creating a cross tab is there a limitation to number of summarized fields that can be used?
    - The cross tab when uses 184 fields as summary fields leads to Crystal report application to crash at the time of export to excel.
    - Tried with two Datasources: XML and excel
    - If we reduce the number of summary fields used to 102 exactly, export works fine in excel.
    - If 2 cross tabs are used each containing 92 summary fields(in order to show 184) export to excel works fine.
    Please let me know if there is any such limitation which leads to CR application to crash when exporting in excel?
    Thanks
    Regards,
    Nidhi

    I suggest you purchase a case and have a dedicated support engineer work with you directly:
    http://www.sdn.sap.com/irj/boc/gettingstarted
    Or
    http://store.businessobjects.com/store/bobjects/Content/pbPage.CSC_map_countyselector/pgm.67024400?resid=jFmmLgoBAlcAAALO-iYAAAAP&rests=1278687224728
    If this is a bug you'll get a refund, if not post your enhancement request in the Idea Place. Or the Rep will suggest a better way to create your report.

  • Any suggestions for programs that can convert mpeg1 to a format that can be edited in iMovie Version 8.0.6 (821) and/or iMovie HD Version 6.0.3 (267.2) Thanks

    Any suggestions for programs that can convert mpeg1 to a format that can be edited in iMovie Version 8.0.6 (821) and/or iMovie HD Version 6.0.3 (267.2) Thanks

    Hi Mark
    Was just looking for the answer to this exact question and I just found something that worked for me so don't know if it might be of use to you or you might have already solved your problem!  Basically when I was in iMovie and I clicked to import movies from the computer into iMovie and I found the clip I wanted to import, there are a few options.  I think it asked which Event I wanted to add it to but most importantly it asked me what file size I wanted...I had originally been clicking Large because it advised me to because it reduces the file size...but just on a chance there I selected 'Full - Original' for size and it imported perfectly into iMovie in it's original vertical form!
    Hope this helps!
    Bianca

  • XmError: 7000 ODI XML Transformation That Can Be Executed Within a BPEL Pro

    Hi iam sudhakar
    iam using xml file as source and target and one csv file at the source through demo given in oracle site
    facing problem loading data in taget xml file
    source xml file contains
    client_id,
    address
    and othercolums
    csv file source contains
    client_id
    new_address
    row_id
    target xml(same as source) file is
    client_id
    address
    and othe rcolums
    iam just joining xml source and file as left outer join
    problem is unable recive the data from file to the target xml file and it not showing any errpors
    only xml data only storing in target xml file
    and
    set sql to sql
    sql to sql append
    filq to sql
    After that i have created variable the opened sql to sql append
    in detail tab
    ia have written create XMLFILE (NAME OF THE VARIABLE ) FROM SCHEMA geo
    Then I have created package
    i joined variable and interface then excuted
    In operator it showing errors
    Sunopsis.jdbx.xml....
    pls send the solution how to do
    ODI XML Transformation That Can Be Executed Within a BPEL Pro
    thanks
    user11366851

    I tried According to ur suggestion ,it is not working
    Actually Iam doing Second demos in oracle data integrator in oracle site
    http://www.oracle.com/technology/obe/fusion_middleware/odi/ODIxml_BPEL/ODIxml_BPEL.htm
    In this demo iam facing problem with coalesce function it is used in target data shore(address column)
    pls tell the steps from starting onwards.......
    thanks and regards
    user11366851

  • How can I convert my other videos to a format that can be viewed on my iPod

    How can I convert my other videos to a format that can be viewed on my iPod?
    Martin Brossman
    [email protected]

    Click here for instructions; if you find that the movies have no sound, download MPEG Streamclip and use it for the conversion.
    (27741)

  • Does anyone have a sample implementation plan that can be shared?  High level?

    Does anyone have a sample implementation plan that can be shared?  High level?

    You will probably need to inquire with a VMware consultant to get this kind of information.  VMware depends on these people to make sure they keep the reputation of the software at a very high level.  
    They will have access to various free tools to help large and small scale deployments.  Tools like VMware Health Check Script and the ESX deployment tool.
    If you find this information useful, please award points for
    "correct"
    or "helpful".
    Wes Hinshaw
    www.myvmland.com

  • Services that can't use Order on Behalf

    Services that can't use Order on Behalf
    Hi - does anyone know if there is a way to exclude specific services from using Order on Behalf?

    Hi Wendy,
    This use case can be handled by creating an AFC Conditional Rule that is triggered with the onLoad and onSubmit events.  Please see below for the sample conditional rule:
    Type:

  • System Image Restore Fails "No disk that can be used for recovering the system disk can be found"

    Greetings    
                                        - Our critical server image backup Fails on one
    server -
    Two 2008 R2 servers. Both do a nightly "Windows Server Backup" of Bare Metal Recovery, System State, C:, System Reserved partition, to another storage hard drive on the same machine as the source. Active Directory is on the C: The much larger D: data
    partition on each source hard drive is not included.
    Test recovery by disconnecting 500G System drive, booting from 2008R2 Install DVD, recovering to a new 500G SATA hard drive.
    Server A good.
    Server B fails. It finds the backed-up image, & then we can select the date we want. As soon as the image restore is beginning and the timeline appears, it bombs with "The system image restore failed. No disk that can be used for recovering the system
    disk can be found." There is a wordy Details message but none of it seems relevant (we are not using USB etc).
    At some point after this, in one (or two?) of the scenarios below, (I forget exactly where) we also got :
    "The system image restore failed. (0x80042403)"
    The destination drive is Not "Excluded".
    Used   diskpart clean   to remove volumes from destination drive. Recovery still errored.
    Tried a second restore-to drive, same make/model Seagate ST3500418AS, fails.
    Tried the earliest dated B image rather than the most recent, fail.
    The Server B backups show as "Success" each night.
    Copied image from B to the same storage drive on A where the A backup image is kept, and used the A hardware to attempt restore. Now only the latest backup date is available (as would occur normally if we had originally saved the backup to a network location).
    Restore still fails.         It looks like its to do with the image rather than with the hardware.
    Tried unticking "automatically check and update disk error info", still fail.
    Server A  SRP 100MB  C: 50.6GB on Seagate ST3500418AS 465.76GB  Microsoft driver 6.1.7600.16385   write cache off
    Server B  SRP 100MB  C: 102GB  on Seagate ST3500418AS 465.76GB  Microsoft driver 6.1.7600.16385   write cache off
    Restore-to hard drive is also Seagate ST3500418AS.
    http://social.answers.microsoft.com/Forums/en-US/w7repair/thread/e855ee43-186d-4200-a032-23d214d3d524      Some people report success after diskpart clean, but not us.
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/31595afd-396f-4084-b5fc-f80b6f40dbeb
    "If your destination disk has a lower capacity than the source disk, you need to go into the disk manager and shrink each partition on the source disk before restoring."  Doesnt apply here.
    http://benchmarkreviews.com/index.php?option=com_content&task=view&id=439&Itemid=38&limit=1&limitstart=4
    for 0x80042403 says "The solution is really quite simple: the destination drive is of a lower capacity than the image's source drive." I cant see that here.
    Thank you so much.

    Hello,
    1. While recovering the OS to the new Hard disk, please don't keep the original boot disk attached to the System. There is a Disk signature for each hard disk. The signature will collide if the original boot disk signature is assigned to the new disk.
    You may attach the older disk after recovering the OS. If you want to recover data to the older disk then they should be attached as they were during backup.
    2. Make sure that the new boot disk is attached as the First Boot disk in hardware (IDE/SATA port 0/master) and is the first disk in boot order priority.
    3. In Windows Recovery Env (WinRE) check the Boot disk using: Cmd prompt -> Diskpart.exe -> Select Disk = System. This will show the disk where OS restore will be attempted. If the disk is different than the intended 2 TB disk then swap the disks in
    correct order in the hardware.
    4. Please make sure that the OS is always recovered to the System disk. (Due to an issue: BMR might recover the OS to some other disk if System disk is small in size. Here the OS won't boot. If you belive this is the case, then you should attach the
    bigger sized disk as System disk and/or exclude other disks from recovery). Disk exclusion is provided in System Image Restore/Complete PC Restore UI/cmdline. 
    5. Make sure that Number and Size of disks during restore match the backup config. Apart from boot volumes, some other volumes are also considered critical if there are services/roles installed on them. These disks will be marked critical for recovery and
    should be present with minimum size requirement.
    6. Some other requirements are discussed in following newsgroup threads:
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/871a0216-fbaf-4a0c-83aa-1e02ae90dbe4
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/9a082b90-bd7c-46f8-9eb3-9581f9d5efdd
    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/11d8c552-a841-49ac-ab2e-445e6f95e704
    Regards,
    Vikas Ranjan [MSFT]
    ------- This information is provided as-is without any warranties, implicit or explicit.-------

  • When I sync my iphone 4S using iTunes it only syncs 8.5GB of music, not the entore library as specified.  Is there a capcity default limit of the amount of storage that can be used for music and if so how do I change it?

    When I sync my iphone 4S using iTunes it only syncs 8.5GB of music, not the entore library as specified.  Is there a capcity default limit of the amount of storage that can be used for music and if so how do I change it?

    The only limit is that of the device. No restrictions on how much of it you can use for music. Is part of your music library unchecked?
    tt2

Maybe you are looking for

  • Is there a way to add code in SAPLV70A (before going to RSNAST00)?

    Hello, SAP 6.0: I am looking for a way to insert code after processing an output type (before going to RSNAST00). Has somebody an idea? Thanks a lot! Guido Edited by: G. Verbruggen on Mar 12, 2009 5:27 PM

  • What is the best methodology to build modular applications?

    Hello, I am working on a project that uses database access quite heavily. Now, as I am a beginner, I wanted to go a very modular approach by building one module at the time and then assemble it in the overall application. I tried to use <SWFLoader> t

  • Imovie : probleme affichage photo, photo toute verte !

    Bonjour, j'ai un problème avec l'importation de certaine photo d'Iphoto vers Imovie. J'ai juste un cadre vert dans mon projet remplaçant la photo alors que dans iphoto cette dernière s'affiche bien ! Merci de votre aide

  • Error when retrieving oracle clobs

    Here's the sql statement that we are running: SELECT dbms_lob.substr(sql_statement,dbms_lob.getlength(sql_statement),1) sql_statement FROM query WHERE query_tk = [Param.1] If the sql_statement is > 4000 chars, we are getting this error: Fatal Error A

  • Music program not working

    I have a 64g Touch and just the other day when I click the icon, it goes through the motion of starting but just stops. I tried to restore the Touch but thatdidn't help.