3 relatively identical queries.  Can we reuse the intial result set.

I have a report... It has 3 queries.. These queries are basically the same except the group by differ in columns. Each query basically rolls up data into higher level aggragates. The underlying returned record set is the same, just a different group by in each query. Is there a way to get the record set once and reuse it in each query so that I dont have to perform the exact same underlying query over again? I ask because these queries can return 100,000 thousads of rows. There is also a dblink in between the query and the data. I know I can make sql records and use the table() command on a collection of sql records. Is that the only way to do something like that? Would that be efficient? Is there a way to give the result a name and then tell the subsequent queries to reuse the result associated with the name? It just seems very wastefull to perform the same query three times when I could do it once and reuse it.

relatively identicalJust a though, two query are identicals, or are not identical.
If I well understand, you need to aggregate differently the queries results, right ? That means, not only the GROUP BY are differents, but also the SELECT clauses. Do you have queries samples ?
If you are getting the data through a db-link, a way could be to replicate the remote data locally (with in a MVIEW for example), you could save a lot of time to transfer the data over the network only once instead of three times.
Nicolas.

Similar Messages

  • How can I reuse the BC4J database connection?

    How can I reuse the BC4J database connection?
    I want to use the application module connection without opening another in a custom code. At this level I can’t access de ADF code, that’s why I can’t get the DBConnection from the application module.
    Now, I have a “data-sources.xml” in my project and the application module is configured to access the database from this xml file.

    I found the solution in other Forum. I worked ok.
    Here the code:
    If the Connections-Navigator connection is DBConnection1, the corresponding datasource is jdbc/DBConnection1DS.
    1. Create a JSP page.
    2. In the web.xml of the JSP add
    <resource-ref>
    <res-ref-name>jdbc/DBConnection1DS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    3. In the JSP page obtain a connection with the datasource.
    InitialContext initialContext = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource)initialContext.lookup("java:comp/env/jdbc/DBConnection1DS");
    java.sql.Connection conn = ds.getConnection();

  • In iTunes 11.0.2.26, an Albums search by track names returns albums as if they only have one track on them, but I still want to access the entire album. How can I have the search results show the entire album (with just the searched for name highlighted)?

    Hello, all.
    In iTunes 11.0.2.26, an Albums search by track names returns albums as if they only have one track on them, but I still want to access the entire album. How can I have the search results show the entire album (with just the searched for name highlighted)? For instance, I'm wanting to play an album with a particular track on it or I'm searching for albums that include that track. iTunes incorrectly assumes that all I'm after is that one track and then incorrectly displays the album as if there is only one ttrack on it. This is a bonkers default setting. Can I change this?

    Click the search magnifying glass and uncheck "Search entire library".
    Type in the name of the track.
    Click the album of interest to show tracks.
    Select the track.
    Press the X in the search box to clear the search.
    Double click the track you want to start playing first.
    tt2

  • Does OS Lion 10.7.5 support Airplay mirror of Apple TV 3? I can't find the option in Setting Display on my mid 2012 MacBook Pro.

    Does OS Lion 10.7.5 support Airplay mirror of Apple TV 3? I can't find the option in Setting>Display on my mid 2012 MacBook Pro.
    I've rebooted all 3 devices, still does not work. Both Apple TV and MBP are on the same wifi. And the Apple TV AirPlay option is on. Can someone help? Thank you.

    About AirPlay and Airplay Mirroring
    AirPlay Mirroring requires a second-generation Apple TV or later, and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer). For non-qualifying Macs you can try using Air Parrot.
    Several Apple Articles Regarding AirPlay
    Apple TV (2nd and 3rd gen)- How to use AirPlay Mirroring
    How to set up and configure AirPort Express for AirPlay and iTunes
    About AirPlay Mirroring in OS X Mountain Lion
    iTunes 10- About playing music with AirPlay
    Troubleshooting AirPlay and AirPlay Mirroring
    Using AirPlay
    Thanks to the $15 Beamer, AirPlay streaming is still possible on Macs  that do not support Airplay and mirroring.
    Another solution is the Air Parrot.

  • Can we include the customize results in the Open Script Result Summary

    hi all
    can we include the customize results in the Open Script Result Summary if we include what is the code.
    customize result i mean
    Scenario: i am checking the concurrent job is completed successfully or not
    result:Concurrent Job Completed Successfully
    i am want to see the above result in the Open Script Result Summary can anybody help me on this.

    You want to launch a concurrent program, right? And to check the result, right?
    Is that for a functional test script or a load test script?
    Let's say it's functional. You have basically 2 options:
    * Do it separately. You create a scenario which launches the program and you write the RequestID in a file, then you create a second script which read the file and then go to the concurrent processing dashboard and search for the RequestID and check the status. You have to desynchronize the 2 scripts. Launch the first one. And then, later on, launch the 2nd one when you are sure the program is finish.
    * You do it in one single script and you wait til you get the status. See the code below I've written for a customer (for a POC);
    This is not the best option in my opinion because you don't know how long you need to wait and therefore you block other scripts execution... But the customer wanted it like this.
                   do {
                        delay(5000);
                        forms
                                  .textField(
                                            "//forms:textField[(@name='JOBS_PHASE_0')]")
                                  .storeAttribute("Batch_Phase", "text");
                        info("Phase du traitement: {{Batch_Phase}}");
                        forms
                                  .button(56,
                                            "//forms:button[(@name='JOBS_REFRESH_0')]")
                                  .click();
                   } while ((eval("{{Batch_Phase}}").equals("Running")));
    But wait, after having written all the stuff above, maybe you just want to check the toolbar status, is that correct?
    Normally, OpenScript automatically insert a "status bar test".
    Then I guess there's a default time-out (30 or 60 sec I think), you can maybe change to adapt.
    Well, looping could also be an option as i describe above.
    Let me know
    JB

  • Can't modify the advanced Java setting

    I can't modify the advanced Java setting in Windows Vista if the UAC is on. If I disable the UAC the setting can be modified but when I turn the UAC on again return the old setting. This is a big problem because the jre in IE7 results deactivate and I can't open the Java applet infact the browser show the message:
    alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason." Your browser is completely ignoring the <APPLET> tag!
    I have installed the latest version: Java Runtime Environment 6 Update 4
    Thanks for the support sorry for the bad English.

    See http://www.google.com/search?q=java+vista+uac+problem

  • I can't remember the password I set up for Certificate-based signatures. How do I request this password?

    I can't remember the password I set up for Certificate-based signatures. How do I request this password?

    The password is yours to keep and remember. Adobe do not have any backdoor to get it back -- because if there were a backdoor, hackers would use it.

  • Mercedez Benz COMAND System not recognizing iPhone 5 after iOS 8 update, can we expect the same result with iPhone 6 or 6 plus?

    Mercedez Benz COMAND System not recognizing iPhone 5 after iOS 8 update, can we expect the same result with iPhone 6 or 6 plus?
    I'm planning to purchase the 6 plus, but I need to know from where.whom will the fix for this problem emerge.

    My new iPhone 6 paired perfectly with my Mercedes system.  That said, on your iPhone 5, reset your network settings and then try to pair it again.

  • TS3899 I can't find the option to set how many emails display on my iphone

    I can't find the option to set how many emails display on my iphone. Help!! This always used to be under settings mail but the option seems to have disappeared.

    That Number of Mail to be Displayed on an iOS Device Option has been removed after the iOS 7 Update, you can find the other users having the similar Question but with No Solution yet.
    https://discussions.apple.com/thread/5321047?start=0&tstart=0

  • HT5622 when i set up my iPhone 5S i did not set it up with my Apple ID  where can i can go into the phone and set it up

    when i set up my iPhone 5S i did not set it up with my Apple ID  where can i can go into the phone and set it up

    That did not work either, I choose that and it never gives me the sign in option.  Also tried the apps from the home screen, no dice. I know I should have put it in during set up but it is a work phone and had to make sure it was okay first.

  • How can I use the work/result generated by quartusii in labview 8.0

    hi ,
    I customized a developing board in quartus ii on the basis of nios ii ,and there are  many customed i/o devices in it, then I want to ask how can I use the work/result  generated by quartusii  in labview? I am new in labview. and I can't find any relationship between quartus ii and libview 8.0.
    tks!

    http://forums.ni.com/ni/board/message?board.id=170&message.id=264457#M264457

  • HT201304 How can i lock the General or setting to prevent other people open it?

    How can i lock the General or setting to prevent other people open it?

    Leliforever, cheek you list of installed add-ons, the Ask toolbar can be installed without the users knowledge.
    For checking other extensions that may cause this, follow the procedure in this link - https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How should i use the two results sets in one single report data region?

    Hi frnz,
     I have to create a report using the below condition...
    Here my given data  set query gives you the two result sets ,so how should i use that two result sets information in single report....when i accessing that data set query it will take the values off the first result set not for the second result set.
    without using sub report and look up functionality..... if possible
    is there any way to achieve this.....Please let me know..
    Thanks!

    You cant get both resultsets in SSRS. SSRS dataset will only take the first resultset
    you need to either create them as separate queries or merge them into a single resultset and return with ad additional hardcoded field which indicates resultset (ie resultset1,resultset2 etc)
    Then inside SSRS report you can filter on the field to fetch individual resultsets at required places. While merging you need to make sure metadata of two resultsets are made consistent ie number of columns and correcponding column data types should be same.
    In absence of required number of columns just put some placeholders using NULL
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Loading the different result sets in the same sequence for the target table

    Dear all,
    I have 5 tables say A,B,C,D as my source and i made 3 joins P,Q,R .the result sets of these 3 joins are loading into a target table X but with 3 different targets with same table name.
    I created one sequence say Y as my target table has primary key and mapped to three different targets for the same target table which i need to load.
    But after deployed and executed successfully ,i am able to load the data from three join result sets with differeent sequence numbers.
    I am looking to load data like this.
    If First Result set P has 10 Records,SEcond Result Set Q Has 20 and the third result set has 30 records then while loading data into first target it creates the seq for the 10 records from 1..10 and while loading the data for second result set ,it creates the sequence from 11 ...20 and while loading the third target with the third result set it creates the sequence from 21 ----30.
    But i am looking to load the three result sets in the sequence 1to 10 but not like creating fresh sequence for each result set.
    how can we achieve this in owb?
    any solution for this will be appreciated.
    thank you
    kumar

    My design is like following
    SRC1
    ---->Join1--------------------------->Target1( Table X)<-----Seq1
    SRC2
    SRC3
    ----> Join2----------->Target2(Table X)<----Seq1
    SRC4
    -----> Join3 -------> Target3(Table X)<-----Seq1
    SRC5
    Here the three 3 targets are for the same Table X as well sequence is same i.e seq1
    If the First Join has 10 rows ,Seq1 generates sequence in 1 to 10 while loading target1
    But while loading second target,Same Seq1 is generating new sequence from 11 but i am looking to load target2 and target 3 starting from sequence 1 but not from 11 or so.
    As per your comments :
    you want to load 3 sources to one target with same sequence numbers?
    yes
    Are you doing match from the other two sources on first source by id provided by sequence (since this is the primary key of the table)?
    No
    can you please tell me how to approach for this?
    Thank You
    Kumar

  • Modifying the Default Result Set on the Results Tab of the SQLWorksheet

    I have found the previous posts indicating that the default result set size is 50, that it is not currently able to be modified and (good news) that an enhancement will be coming to correct this.
    I thought I would give my two cents on how this option might be configured:
    Either in the 'View-Options-(output options)' or the 'Tools-Preferences-Environment' areas, have two options. The first would be something like "Max Rows to Display in Results Window" and the second would be sometihng like "Max Rows to Load when end of Current display is reached."
    The first option is certainly most essential, but the latter option I have to explain a little. Say you set your max rows to display to 500. You scroll (drag bar, arrow down, etc) to record 501. At this point, the setting on the "Max Rows to Load When End of Current Display is Reached" option comes into play. This setting will then be read to determine how many rows are to be loaded each time the user gets to the current end of display. The second option adds some flexility to how data rows will be displayed after the initial data rows are loaded.
    You could just default the number of rows added to the display to the setting set in the "Max Rows to Display in Results Window" setting, although I would say that this would be less flexible. Whatever you do, don't follow the Toad example of loading ALL records when dragging the vertical bar to the bottom of the display grid.
    Thank You for your time.
    Scott Lips

    I like the idea.. please post this on the sister website so that people can vote on it.
    http://sqldeveloper.oracle.com/

Maybe you are looking for

  • External HDD (Internal) Not Showing Up In Finder, But It Is Showing Up In Disk Utility

    Before I start, I know that this question has technically been solved before, but not exactly in my case. Keep in mind that I'm a graphic designer, this is why I am so passionate about fixing this issue. So, here's the story. Yesterday, I sold my Mac

  • Alternative for Open , Fetch cursor command

    Hi Experts, I am populating data from glpca table using Open Cursor statement with hold as shown below:   OPEN CURSOR WITH HOLD cur1 FOR Select data from the purchase order header table.   SELECT runit rprctr sprctr                                   

  • CVI IDE: Is it possible to see list of functions for faster navigation?

    Colleagues, Very simple question about CVI IDE. Is it possible to see whole list of functions for fast and convenient navigation, like in Micro$oft Visual Studio: When I have C code with more than 20-30 functions and 2000+ lines - its a very inconven

  • Can't save my  security settings

    why will itunes not let me save my  security settings

  • Create Standard Folder

    This seems like it should be easy, but I can't seem to get Automator to do it. I have a standard folder structure for each of my projects which consists of Main Folder containing numerous folders within other folders. Each of my projects has a unique