Is it possible to add two resultsets???

I have a resultset rs and a resultset rs2. Is it possible to add them together so that all the results is in one resultset resultset rs3.
rs + rs2 = rs3
Br Soren

Not that I know of.
You could iterate through each ResultSet storing the column data in a single collection fo some kind or you could try the SQL UNION keyword in a single SQL statement.
I.E.
select col1, col2 from table1
union
select col1, col2 from table2Col

Similar Messages

  • Is it possible to add two different audio tracks to a clip which can be selected separately in the final clip?

    I'm trying to edit a short clip with two different audio tracks (audio in two different languages). The tracks are not supposed to overlap but rather should be able to be selected individually in the final clip. Do I need special software or is iMovie actually able to accomplish that?

    I seriously doubt that this is possible. I think when you get this kind of option on a DVD, the audio and video streams are encoded separately and you run the language of your choice by choosing it from a menu.

  • Is it possible to add two UIBBs in one tabbed UIBB side by side

    Thank you for your hints!

    Hi Ulrich,
    could you tell me how to do it in OIF?
    We have need to build up a layout with serveral UIBBs in one subview: some Form UIBBs should be underneath each other and some UIBB sidy by side. Using the layout type 'Row Layout' makes it possible but the alginment of the fields in different UIBB is not possible. One alternative could be embeding the UIBBs side by side in one tabbed UIBB and using the 'Standard layout'.
    But if it is not possible which possibility do we have?
    thanks & best regards
    Feng

  • Two resultset objects

    IS it possible to define two resultset objects with two different queries inside the same DB class?java.sql.SQLException: Invalid state, the ResultSet object is closed.
         at net.sourceforge.jtds.jdbc.JtdsResultSet.checkOpen(JtdsResultSet.java:299)
         at net.sourceforge.jtds.jdbc.MSCursorResultSet.next(MSCursorResultSet.java:1123)
         at DB5.getDetails(Daily_Quote_Response_report.java:238)
         at Daily_Quote_Response_report.main(Daily_Quote_Response_report.java:74)
    java.util.List items = null;
            String query;
            String query2;
            try {
                query =
                       "select * from oqrep_except_resp_summary";
                query2 = "select * from oqrep_except_resp_detail";
                Statement state = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
                        ResultSet.CONCUR_READ_ONLY);
                ResultSet rs = state.executeQuery(query);
                ResultSet rs2 = state.executeQuery(query2);
              //cannot create two rs objects // ResultSet rs2 = state.executeQuery(query);
                items = new ArrayList();Edited by: bobz on 03-Dec-2009 11:16
    Edited by: bobz on 03-Dec-2009 11:16

    Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.

  • Adding two ResultSets in java

    How can we add two resultsets in java ?

    screen_simu wrote:
    Is it something we can do in java?OP, if you can do it in SQL, that likely would be better. On the other hand, do you mean that want to add the results from two resultsets that might perchance be different? IOW ... if both ResultSets produce the same columns, then a UNION join in SQL:select
        tableA.empl_name,
        tableA.empl_id
      from tableA
    UNION
    select
        tableB.empl_name,
        tableB.empl_id
      from tableBBut, if you want to select out specific columns from differing RS's, then you might want to do this:
      List<Empl> empList = new ArrayList<Empl>();
      public class Empl {
        private String empl_id;
        private String empl_name;
        private Double empl_wage;
        public void setName(String name) {
          empl_name = name;
    // ... etc, other method implementations ...
    // ... SQL stuff ...
      String sqlA =
         "select"
        +"    tableA.empl_id,"
        +"    tableA.empl_wages"
        +"  from tableA";
    // ... rsA is the ResultSet from the tableA selection
      Empl empl = null;
      while (rsA.next()) {
        empl.setID(rsA.getString(1));
        empl.setWage(rsA.getDouble(2));
        empl.setName(processTableB(empl.getID()));
        empList.add(empl);  // new Empl Object for each employee
      public String processTableB(String id) {
        String name = null;
      String sqlB =
        "select"
        +"    tableB.empl_name"
        +" from tableB"
        +" where tableB.empl_id = ?"
    // ... set up PreparedStatement ... using passed in id
    // ... process ...
      while (rsB.next()) {
        name = rsB.getString(1);
      return( name );
    }Above code untested, but hopefully you get the idea.

  • VL01NO : how to add two fields

    Hi,
    Is there any possibility to add two fields (Format text) for Tcode : VL01NO because i want to enter two other informations ?
    Please help
    Regards.

    Hi jehade el aoumari  ,
    We can add the fields with the help of screen exits (BAdis) provided that , SAP has giving the feature to add to this particular transaction. This is work of ABAPer and they will add the fields , and they will popullate the appropriate database table as well.
    But pls tell me what exactly is your requirement so that we will let you know whether the option is available or not.
    Regards,
    Vvieks

  • Add two case Function

    Hi,
    Please suggest me,is it possible to add two case function
    For Eg:
    SELECT
    ((CASE WHEN (ics_tr_code in (1,5)
    AND ics_mtrl_code BETWEEN '651000' and '651999')THEN
    nvl(sum(ics_trn_val),0))-(CASE WHEN (ics_tr_code in (1,5)
    AND ics_mtrl_code BETWEEN '652000' and '652999') THEN
    nvl(sum(ics_trn_val),0)))) ics2,
    CASE WHEN (ics_tr_code in (1,5)
          AND ics_mtrl_code BETWEEN '655000' and '655999') THEN 
          nvl(sum(ics_trn_val),0)ELSE 0 END ics3,
    CASE WHEN (ics_tr_code in (1,5)
          AND ics_mtrl_code BETWEEN '656000' and '656999') THEN
          nvl(sum(ics_trn_val),0)
          ELSE 0 END ics4
    FROM  sub_ics_trans
    WHERE ics_doc_dt BETWEEN :FROMDT AND :ENDDT
    GROUP BY ics_tr_code, ics_mtrl_codeOr else how can i add this two column like
    recpt1 = ics1 - ics2; plz suggestion
    venki
    Message was edited by:
    hb venki

    Hi,
    Please suggest me,is it possible to add two case
    function
    or Eg:
    SELECT
    ((CASE WHEN (ics_tr_code in (1,5)
    AND ics_mtrl_code BETWEEN '651000' and
    '651999')THEN
    nvl(sum(ics_trn_val),0))-(CASE WHEN (ics_tr_code in
    (1,5)
    AND ics_mtrl_code BETWEEN '652000' and '652999')
    THEN
    nvl(sum(ics_trn_val),0)))) ics2,
    ASE WHEN (ics_tr_code in (1,5)
    AND ics_mtrl_code BETWEEN '655000' and
    '655999') THEN 
    nvl(sum(ics_trn_val),0)ELSE 0 END ics3,
    WHEN (ics_tr_code in (1,5)
    AND ics_mtrl_code BETWEEN '656000' and '656999')
    THEN
    nvl(sum(ics_trn_val),0)
    ELSE 0 END ics4
    FROM  sub_ics_trans
    WHERE ics_doc_dt BETWEEN :FROMDT AND :ENDDT
    GROUP BY ics_tr_code, ics_mtrl_code
    This looks like you are trying to nest more than one case statement. This can be done if you provide the correct syntax ensuring that each case statement follows the case when ... else ... end syntax... e.g.
    SQL> select x,y, y/x from t;
             X          Y        Y/X
             1         97         97
             2         96         48
             3         97 32.3333333
             4        100         25
             5        105         21
             6        112 18.6666667
             7        121 17.2857143
             8        132       16.5
             9        145 16.1111111
            10        160         16
            11        177 16.0909091
            12        196 16.3333333
            13        217 16.6923077
            14        240 17.1428571
            15        265 17.6666667
            16        292      18.25
            17        321 18.8823529
            18        352 19.5555556
            19        385 20.2631579
            20        420         21
    20 rows selected.
    SQL>
    SQL>
    SQL> select x, y, case when mod(x,2)=0 then
      2                 case when y/x < 17 then 1 else 0 end
      3               else
      4                 case when y/x > 17 then 1 else 0 end
      5               end as z
      6  from t;
             X          Y          Z
             1         97          1
             2         96          0
             3         97          1
             4        100          0
             5        105          1
             6        112          0
             7        121          1
             8        132          1
             9        145          0
            10        160          1
            11        177          0
            12        196          1
            13        217          0
            14        240          0
            15        265          1
            16        292          0
            17        321          1
            18        352          0
            19        385          1
            20        420          0
    20 rows selected.
    SQL>
    Or else how can i add this two column like
    recpt1 = ics1 - ics2; plz suggestionAnd this looks like you want to perform a calculation on two of the resultant formula which you would achieve through nesting your query inside another query and performing the calculation on the nested queries columns which you have aliased.

  • Possible to add apps from two different itunes accounts?

    So my family just purchased an iPad and I was wondering if it was possible to add apps from two different user accounts without paying for them twice? My dad synced it up with his computer so all the apps from his iphone were transfered. I noticed that in the app store for the ipad you can switch between different accounts. If I switched to my username would it allow me to add apps that I've already purchased through my iphone or will I have to pay twice?

    Yes. My grandson did that to me and I had a heck of a time upgrading the apps he loaded because I didn't have his password. I ended up deleting them.

  • Is it possible to have two DADs that access the same database?????

    Hello,
    Is it possible to have two DADs that access the same database?
    One DAD would be password protected with Authentication mode Per Package and the other DAD would not require a password/login
    If it is possible can you also give suggestions about how to do this
    Thanks
    Doug

    I HAD THE SAME PROBLEM WITH SHARING MY LIBRARY WITH MY SON. WHAT I DID WIAS CREATED A LIBRARY FOR HIS USE ONLY. IN ITUNES CLICK--FILE--NEW PLAYLIST AND THIS SHOULD ADD AN UNTILED PLAY LIST IN YOUR SIDE BAR. CLICK ON IT AND RENAME IT. HE CAN KEEP ALL OF HIS MUSIC IN THIS LIBRARY. SELECT ALL OF HIS MUSIC FROM YOUR LIBRARY AND DRAG IT INTO HIS. ONCE THIS IS DONE YOU CAN THEN REMOVE HIS SONS FROM YOU PLAY LIST. MAKE SURE YOU ONE REMOVE IT FROM YOUR PLAY LIST AND NOT DELETE THE FILE.
    HOPE THIS HELPS
    G4   Mac OS X (10.3.9)  

  • Is it possible to add PERNR field to MIGO or MB1A transaction screens?

    Hi,
    Ours is a service industry with @ 10000 employees and we have implemented SAP with MM & HR module. We issue uniforms to all the employees when they join (new Joinee) and again once in January every year as reissuance. We intend to keep size information in employee masters in HR along with station code, designation, department and cost centers.
    At present we are using two fields goods recipient and unloading point to mention employee code and type of issue (new joinee or reissuance). This is because employee code (PERNR) field is not there in MIGO_GI screen or MB1A screen.
    Is it possible to add PERNR field to any of these transaction screens?
    If added then we can fetch the relevant information about issuance of information along with station code, designation, department in Z report.
    If possible, then how it can be done?
    Thanks in advance,
    Satish

    Hi ,
    as i understand we can add new fields in a transaction through user exit /field exit. so please discuss with your ABAP consultant & try to find out all the exit available for MIGO/ MB1A. then you have to decide which one will suit you. here you have to consider some factors like whether you need to enter values in the field or the field needs to fatch any value from any other table & should populate here.
    the ABAPer can then write the code & add your required logic here.
    i am not very good in this subject. just tried to share what ever i knew.
    regards,
    anubhab

  • Is it possible to add a field to OKEK in configuration SCREEN?

    Hello SAPPERS,
    I would appreciate if someone could provide some input on the following issue.
    Is it possible to add a field to Define Account Determination for Internal Goods Movements (OKEK)?
    This table determines the GL accounts assigned when inventory is moved between plants.  Is it possible to add another column to the left hand side?  I would add the receiving plantu2019s VGCd, if possible.  Even better would be a profit center group (1100 for all 11xx profit centers for example).
    I know there are two ways to add field to the DB Table. They are INCLUDE and APPEND structure.
    Is it possible to append a field to table V_T8A00, and display it in config screen OKEK?
    Thanks for any advice

    Hello,
    On a transfer, the accounting treatment is different when the move is within the same division VS when it goes to another division. 
    When plant 1101 ships to plant 1102, we donu2019t want to post to account 360100.  When plant 1101 ships to plant 1301, we do want to post to 360100.  Having the receiving profit center group in the mix will enable this distinction.
    Thanks in advance

  • Is it possible to add things to an iPad or iPhone without the use of iTunes?

    My intention is travelling abroad for a year or two, and I don't want to take a laptop because it is too big and heavy.  I have my iPhone, but I'm trying to decide if an iPad would be useful too.  The problem is - because I wont have a computer with me, I wont have iTunes to add books/movies/music to either device.  Is it possible to add stuff from any computer, and not a computer where my iTunes is set up?  If the computer that I use (belonging to someone else) has iTunes on it, will my iPhone/iPad automatically try to connect and sync with that? 
    Thanks
    Karyn

    You can purchase and download content directly onto the device from the iTunes and App stores already on it.
    You can use cloud storage (iCloud for apps that support it, or dropbox, box.net. google drive, sugarsync, 4share, etc) to move files to and from individual apps (things like pdfs, your own notes and so on).
    You only need iTunes to backup really (although that is a very vital thing to do regularly, with any device)
    However, to use a given store, you must have payment information and a billing address in that country associated with your AppleID.  You cannot shop in a country foreign to your payment and billing address information.  And your home store may very well be blocked (by IP address) when attempting to access it from a foreign location.

  • Is it possible to add reverb to vocal mic, without affecting my keyboard sound?

    Hello,
    I am trying to record my vocals and piano simultaneously. I'm using the MBox 2, with Adobe Audition 3.0. Whenever I add reverb to my vocal track (via the fx tab under my vocal track in multi track view), it affects the way my piano sounds while I am recording (it creates a delay on the sound of the keyboard while I am playing...almost like a 'bouncing note' delay). I really want to be able to hear some reverb on my voice while recording, but I cannot seem to figure out how to do it. This is how I have everything set up:
    Piano is plugged in via DI on input 2 on the back of the mbox
    vocal mic is plugged in via cannon on input 1 on back of mbox
    If anybody could help, that would be wonderful. I've spent hours trying to figure this out with no luck. It is a lot more fun to record your singing with a bit of the pretty reverb....but my piano doesn't agree.
    Thank you
    Best,
    Jenny Jo

    Hello Brian,
    Thanks for your help again. I have spent the last 6 hours running into nothing but problems. I tried your advice about recording mono in both separate tracks, and still no luck. I was using a condenser mic, and a keyboard. Both using mono, and I was using the studio reverb. I finally decided to try something simpler, just so I could at least feel a bit satisfied in getting a recording in. I set the condenser mic near my keyboard and speakers, and plugged my keyboard into the speakers. I armed the one mic track for record for phantom power, applied studio reverb, and set up the correct settings for the track by going into Audio Hardware Setup and selecting 'Asio Digidesign Driver' as the audio driver for everything. I simply wanted to play my piano, which would sound through the monitors next to me, and sing into the microphone..which would pick up my vocals with the piano in the background. The only way I could hear reverb on my voice during the recording, was by adjusting the 'mix' knob on the front of the mbox. It seemed to be working okay, and I thought I had found at least a compromise for the moment. But after saving the files, and upon listening to them...I noticed drops and rises/glitches/ in the recording volume. I then did a bunch of tests. I recorded some without any reverb assigned at all, did some recordings with the mix knob up and some with it off...I tried everything I could think of. I saved each one as a wav file, and MP3, just to see if that would affect the sound. Listening to them, they all have those same sound glitches. While doing the recordings, the sound disturbances weren't audible.
    I am wondering if there is a setting that I need to fix...I am not the most savvy technical person, and am rather new to recording. Maybe the buffer size needs to be adjusted? I really have no idea...it is frustrating. I should say that I am using an MBox 2, which is supposed to be used with Pro Tools software. I had problems using Pro Tools as well, I don't think my OS is very compatible with it. Unfortunately, I have windows Vista, which I hear nothing but problems about in regards to recording. I prefer to use Adobe Audition, as I'm familiar with it, and like it.
    Well, I hope this email hasn't put you to sleep. I really hope I can get this figured out, as I'm keen to record.
    Thank you again..
    Best,
    Jenny Jo 
    Date: Tue, 2 Feb 2010 00:35:03 -0700
    From: [email protected]
    To: [email protected]
    Subject: Is it possible to add reverb to vocal mic, without affecting my keyboard sound?
    Out of some disbelief I had to try my own setup suggestion from above, since it's not a thing I do daily anymore. Without wanting to go into any dispute with the above poster, I can only say:
    It works well here.
    Your mileage may vary.
    Setting up two mono tracks with a separate input to each, I was able to record vocals with reverb from Audition in my monitoring headphones, along with recording an electro-acoustic instrument (guitar in my case) on the adjacent track with no reverb at all. I sang/tested with lots of consonants and different monitor levels and reverbs; I used the Studio Reverb, which is the least CPU intensive and recommended in the manual. There was no noticable delay, echo, what have you, which I felt disturbed my precision at all. Now I KNOW technically there is a delay/latency, but for practical purposes it isn't noticable. I've also heard some singers are extremely pecky on this, and for them there is the solution of direct monitoring and an outboard reverb added to their headphone signal. For everyone else however it works well and the latency just a theory - certainly not an audible 'echo' of any kind. With a poor soundcard and a computer low on resources latency will become evident. Also if you don't use ASIO. This type of application is why we have ASIO.
    >

  • Is it possible to add Audio on Demand to an image in Captivate 7 QUIZ for html 5 output in web browsers?

    We are trying to do a simple HEAR IT - SELECT IT type 'quiz' in Captivate 7 for an indigenous language project.  Our target output is html 5 to web browser.
    We have used the multiple choice question mode and have inserted IMAGES in place of text (although we left the question numbers visible)  
    The user should be able to click on a speaker icon to hear the audio file (as many times as they choose)  and then select the correct image answer.
    ALSO -  Is it possible to add sound effects for a correct or incorrect quiz answer?
    Thanks

    Attaching audio could be done to the Success/Failure captions, rather easily.You can put a shape button on a question slide, other interactive objects are not possible (Buttons on Question/Score Slides in Captivate 6? - Captivate blog). And have that shape button pause before the pause of the question slide. Use an advanced action with the Statement 'Play audio'. Don't use a simple action, because it will release the play head: Why choose Standard over Simple action? - Captivate blog
    User will then be able to click that shape button as many times as he wants, because the play head will remain at the pausing point. When he Submits the question, the two step process will use the pausing point of the Question slide: Question Question Slides in Captivate - Captivate blog
    Lilybiri

  • Is it possible to run two different versions of Apple operating system (for ex. 10.6.8 and 10.9) on a MacBook Pro, either on the same disk or from an external hard disk? If so, where would I find the details?

    Is it possible to run two different versions of Apple operating system (for ex. 10.6.8 and 10.9) on a MacBook Pro, either on the same disk or from an external hard disk? If so, where would I find the details? (In order to be able to use the older applications no longer supported in 10.9)

    If you want to add a second partition to the internal drive (in Disk Utility, select the drive, then open the partition tab and just click the + button), you should first be sure that you will have enough room to accommodate whatever the second volume will be. I am currently doing this for Snow and Mountain Lion.
    To get to whatever volume is not the startup disk, restart and hold down option/alt at the chime, which will bring up a selection of the two volumes. Use the left or right arrow keys to select it and then hit enter/return.

Maybe you are looking for

  • Printing PDF from IE9 doesn't honor printer settings

    I am trying to print a PDF from IE 9 and have it honor my printer settings (which are to store to my mailbox on our Canon iR3035 rather than print out).  It used to work fine.  I found the following bug listed in the release notes for Adobe Reader 10

  • Problem in importing idoc metadata

    Hi all, i have problem in loading metadata in idx2. idoc details are AFS/ORDERS05/ZADIORDCONF port: SAPAGS client 003 . i could see an idoc metadata with name ORDERS05 under the corresponding sap system (SAPAGS with client 003) but with out any exten

  • Smartcams as a standalone

    Hi, I consider using NI smartcams for a standalone application with LabVIEW. It's inline,  some 15pcs/second (triggered), I get some information via RS232 and I need a lightning controller and a TTL out. The processing is rather simple (it takes 20 m

  • NOT with reference to PO for credit memo/invoice after invoice is posted

    hi, invoice is posted then vendor come back with correction. 1) if i create credit memo NOT with reference to PO then the treatment is not similar to subsequent credit? 2) if i create invoice NOT with reference to PO then the treatment is not similar

  • Data transfer from Preprod to Prod

    Hi We had an issue in BI where the database table got deleted in production for one of the infocubes. We are doing a restore of Production data back up into Preproduction and then take the data from a praticular infocube to the production. Now ,my qu