The effect of cube and rollup function

1. For under 500,000 in Oracle 9i, rollup is faster than cube.
But above 1,000,000, cube is faster than rollup.
Right?
2. Why do rollup(a) and cube(a) all have a parameter?
3. Under only one parameter, the compute process of cube and rollup is not the same, right?
Thx.

>
1. For under 500,000 in Oracle 9i, rollup is faster than cube.
But above 1,000,000, cube is faster than rollup.
Right?
>
Rollup summarises data differently to cube, so to say one is faster or slower than the other is not a question one should consider necessarily.
The main consideration should be in what format you would like the result set to be in.
http://download.oracle.com/docs/cd/E11882_01/server.112/e16579/aggreg.htm#DWHSG8609
http://download.oracle.com/docs/cd/E11882_01/owb.112/e10935/dim_objects.htm#WBETL03002
>
2. Why do rollup(a) and cube(a) all have a parameter?
>
The parameter(s) refers to the Grouping against which the data is summarised.
The Oracle documentation states the following:
>
CUBE takes a specified set of grouping columns and creates subtotals for all of their possible combinations
>
So both rollup and cube could summarise across a group of column(s).
>
3. Under only one parameter, the compute process of cube and rollup is not the same, right?
>
Correct, depends what you want to summarise against.

Similar Messages

  • Cube and rollup

    How to use cube and rollup what are they exactly...

    Hi,
    They are aggregate functions.
    Here's a nice explanation:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1512805503041
    See also:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/aggreg.htm#sthref1669

  • I just upgraded to OSX version 10.8.3 and since then all animations are defective. The dock is jerky! The effects of opening and closing windows ranging in shots!  What should I do?

    I just upgraded to OSX version 10.8.3 and since then all animations are defective.
    The dock is jerky!
    The effects of opening and closing windows ranging in shots!
    What should I do?

    You can check the status of your drive's indexing by clicking the Spotlight menu to see if there is a progress bar at the bottom of it, and can also open Activity Monitor and click the "%CPU" column to sort by CPU usage, to see if the processes "mds" or "mdworker" are currently active and using your CPU.
    If so, then wait for them to finish. However, if not then try rebooting and then hold the Shift key immediately after you hear the boot chimes. This will load the system into Safe Mode, which should run some checks and maintenance routines on the system. Then reboot normally to see if the problem persists.
    How much RAM do you have installed on your system? You can see this by choosing About This Mac from the Apple menu.

  • Why do the "SAVE", "SAVE AS" and "UNDO" functions of InDesign CS6 stop working after a short time?

    Why do the "SAVE", "SAVE AS" and "UNDO" functions of InDesign CS6 stop working after a short time?

    Normally they don't. You might have some sort of problem on your system, possibly a conflict with other software, or corrupt ID prefs or application. Trashing the prefs is easy, and good place to start: Replace Your Preferences
    It will help if you tell us the OS version, whther you've installed the 8.0.1 patch, and how you are trying to access the commands, and what happens when you do. Is this isolated to one file, or does it happen with all files?

  • I have a problem. I take photos with camera of my iPod touch 5 with the effects that comes in the iPod and now when I look to my photos I see that the effects go out and the photos looks like I didn´t put the effects. What is that? How can I solve it?

    I have a problem. I take photos with camera of my iPod touch 5 with the effects that comes in the iPod and now when I look to my photos I see that the effects go out and the photos looks like I didn´t put the effects. What is that? How can I solve it?

    Try:
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             

  • Could you please tell me how to turn off the email sign-in and password function when I open Itunes on my computer - I don not wish to sign in every time

    could someone please tell me how to turn off the email sign-in and password function when I open Itunes on my computer - I don not wish to sign in every time

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Does the RT Image create and apply function include FPGA bitfile

    Hi,
        Does the RT Image create and apply function include FPGA bitfile? Does it deploy FPGA bifile to the FPGA target automatically?
        Thanks!
        Tom

    However, can't you do the following:Use open FPGA VI reference within your RT app and point it to a bitfile then build and deploy the RT exe. After this, take an image and shouldn't the RT exe hold all information with regards to the FPGA that you need?
    I may be wrong, but I hope not since I have to allow customers to update the cRIO without the project to deploy any changes
    CLA, LabVIEW Versions 2010-2013

  • How to Delete the Data in Cube and in ODS

    Hi ALL,
            I have a cube and an ODS both the data targets have data from the year 2002 to 2005.now i want to delete the data from both the data targets with respect to data related to the year 2003 only,how can it be done. Any Help Appreciated with rewarding points.
    Regards,
    BW Seeker.

    Hi
    Generally we can delete the data in the request for the data of year 2003 from request tab in manage screen of datatarget. This can be done only when we are sure that that particular request/s belongs to 2003 year data.
    This can be better handled with selective deletion of data for year 2003 with some keyfields like 0CALMONTH etc..
    This is infact only way when you have already compressed the data in Infocube.
    Hope it helps...
    Best Regards,
    DMK
    *Assign points if it helps...

  • How to change the effect of drag and drop from MOVE to COPY in alv tree.

    Hi,
    I am using a tool in which now the behaviour on drag and drop is MOVE. I want to change it to COPY.
    But I do not know which parameter needs to be set and where.
    please help.
    Regards,
    Smita.

    Hi,
    Thanks for quick reply.
    The code goes on like this
    METHOD set_dd_behavior.
      DATA: l_copysrc(1) TYPE c,
            l_movesrc(1) TYPE c,
            l_droptarget(1) TYPE c.
    Set the Drag and Drop Flavors.
      CREATE OBJECT dd_behavior.
      READ TABLE reg_functions WITH KEY name_function = 'COPY'
      TRANSPORTING NO FIELDS.
      IF sy-subrc = 0.
        l_copysrc = 'X' .
      ENDIF.
      READ TABLE reg_functions WITH KEY name_function = 'CUT'
      TRANSPORTING NO FIELDS.
      IF sy-subrc = 0.
        l_movesrc = 'X' .
      ENDIF.
      READ TABLE reg_functions WITH KEY name_function = 'PASTE'
      TRANSPORTING NO FIELDS.
      IF sy-subrc = 0.
        l_droptarget = 'X' .
      ENDIF.
      CALL METHOD dd_behavior->add
      EXPORTING
      flavor = 'MOVE'
      dragsrc = l_movesrc
      droptarget = l_droptarget
      effect = cl_dragdrop=>move.
      CALL METHOD dd_behavior->add
      EXPORTING
      flavor = 'COPY'
      dragsrc = l_copysrc
      droptarget = l_droptarget
      effect = cl_dragdrop=>copy.
      CALL METHOD dd_behavior->get_handle
      IMPORTING handle = dd_behavior_handle.
    ENDMETHOD.
    Here what changes needs to be done.
    As I see once COPY is added and next time MOVE is added.
    I am able to check because I am not able to edit while debugging the value of effect.
    Please suggest.
    Warm regards,
    Smita.

  • How to use the palette or drag and drop functions in netbean?

    Is there anyone who can help me out on using drag and drop function in netbean to design GUI inteface..??
    Is palette is the tool that can be used to drag and drop.??
    thank you in advance.

    I actually really like the GUI builder in netbeans. I used to be a big eclipse user so I am very familiar with coding GUIs by hand, and most of what I do involves GUI's or at least swing.
    At first I hated netbeans, I hated that I couldn't edit the code most. Then I decided to take a deep breath and really examine the issue. What I discovered is that most of the edits I wanted to make but couldn't really weren't the right way to be doing it in the first place, for the rest the code is actually really easy to change you just have to know how.
    Now my palette is huge, probably about 250 objects in it organized into sections that work for me. Basically if I want a object to do something that is not already in the palette I simply write a new object and add it to the palette. I started small like with rounded buttons/progress bars, and as I got comfortable I now have some fairly advanced objects like grids, isometric grids, alpha composits, an animated hourglass countdown timer, and an animated "loading/activity" indicator that is not tied to a progress indicator.
    The main reason I stuck with the netbeans drag and drop GUI builder is it's layout manager is really a very nice layout manager, you couldn't pay me enough to go back to eclipse or codeing GUIs by hand, as I can now do in one day what used to take me several weeks.
    So what I am saying is stick with netbeans and the drag and drop, it sucks at first, but once you get to a point where you are comfortable with it and adding to the palette it will become a great tool.
    JSG

  • The Oracle database engine and forms - functionality query

    I have an interest in establishing how the Oracle System Catalogues cope with particular changes. I have never used Oracle, but I have carried out the same test on another RDBMS. If I had access to Oracle I would have carried out this test myself.
    The test goes as follows.
    Create a new database.
    Create a new simple table, with just a few columns.
    Create a form for the table, and add a few rows.
    Rename the table or a column – if you can’t, then the RDBMS is Code Class.
    If you can rename the table or a column, then do so, and invoke the form that you used before changing the table or column name. If it doesn’t work, the RDBMS is Code Class; if it does then the RDBMS is Identifier Class.
    In an Identifier Class RDBMS changes of column or relation/table name will not interfere with the operation of any form already in place based on that table.
    I'll be very grateful if anybody can give me a definitive answer on this, either through already having explored the issue or by running the test.

    Hello again William,
    now it becomes challenging. The conceptual shift required to get to Identifiers is similar in scale to the shift involved in going from Newtonian Mechanics to Quantum Mechanics or from Cartesian Space-Time to Special Relativity, with the added proviso that the concept of identity built into the Relational Model is implicit rather than explicit as respectively in the cases of Newton and Descartes.
    Your "you are not expecting.." sentence is a perfect statement of where I am - I'm not looking for the RDBMS to have any impact on application code - that would be a truly ridiculous expectation; this would make some crazy version of a cascade update, with remoteness as an extra complication. In IC applications (including RDBMSs) cascade updates are never needed.
    The next sentence also has a very strong aspect ("allow applications ... to .. compilation time) but is weaker in the "simply hoping" and "might". I havn't developed a RDBMS that does that, although I hope to participate in such a development exercise soon, but I have developed an application that does exactly what you say. Binding/joining depends on something permanent rather than something transient, where names and abbreviations are all transient, as are all pure attributes once they have had identity (and relative position) stripped out them.
    In your next paragraph I disagree that there is only a shift of problem. The dropping of whole tables or the deletion of columns is on a different scale from the changes that I am talking about, which do not but could get sensibly reflected in the current Code Class RDBMSs and applications. I'm aware that no application development tool allows what you say, (the problem is actually in the system tables) but I have achieved the completely analogous result in the application that I have developed.
    Your comments about the AREAS table precisely highlight the issues of permanence and transience on which all of my work sits. What are you doing when you drop the table and replace it with a table with the same name? Do you want to think of the "new" table as the SAME as the "old" table or is it something entirely DIFFERENT, in which case giving it the name of a table that you have dropped might easily result in serious confusion.
    If the new table is doing the same conceptual job as the old, then I would certainly want the continuity of its existence to be explicitly preserved, via the enduring identifier value (which reflects the fact that we are thinking of the table as having continuity of existence). So I would alter the table rather than dropping it and recreating it.
    If I have ended up in a cul-de-sac (I've been there) and I have to throw away the table and all its related operators, then that is what happens if I don't get it right first time. I don't want any continuity, and I'll have to junk all the form and report etc operators unless I want to preserve some bits for my next attempt. I certainly won't expect anything to continue to work, because there is nothing to work on.
    Your use of the expression "fancy name-independent code" is disappointing in all respects. I experience your use of "fancy" as sarcastic, and my full expression for "name-independent code" is "attribute independent and relative position independent identifier" whose acronym is "airpii". This is not just name-independent, it's independent of all other attribute and relative position values in the same row. It's certainly not a code: the word does not have a place in Identifier talk, since it has been replaced by abbreviations and acronyms, which are undiluted attribute; they don't have identity mixed up in them as with the "codes" of the "Codes Mistake". (In RDBMSs the mistake is called the "Names Mistake" because table and column names bear identity as well as attribute; there are no codes.)
    I very much hope that our dialogue can continue - other dialogues have stopped at this sort of stage. On my website www.identifiers.org there is a page called "Identifiers - a Visual Representation" that sets out to communicate identifiers visually, that I created to communicate this entirely new concept in a different way after another database professional got stuck. I understand from another forum user that there may be a problem getting hold of the pdf file concerned if using Firefox - please let me know.
    I have an RDBMS application on a SCO partition on a PC that proved identifiers for me. I can input a work instruction successfully using one set of abbreviations (the codes of old) and the stored instruction row makes no reference to the abbreviations that I have input - there's just a single identifier value in the appropriate column of the work instructions relation. The relationship between the abbreviations and the identifier value becomes clear from rows in other relations.
    If I then want for some good reason (some purely operational entity has been renamed) to change one of the abbreviations when also changing the full name, I can do so in the relevant relation - this is an abbreviation rather than a code that I am now dealing with; I can change it because it's not also used for joins.
    When I input the next work instruction I use the new abbreviation rather than the old; the form is entirely happy and works fine, and exactly the same identifier value ends up in the appropriate column of the work instruction relation. So I have input a different set of values to achieve exactly the same result. Is this crazy? No! This reflects the ways in which we naturally think and talk, and at last the application makes sense - I don't have to use a code that does not tie up with the name. The core of the issue is that I have been able to reflect external CHANGE fully and successfully in the database. We are surrounded by change, but RDBMSs and applications currently do not allow us to process it properly.
    I acknowledge that no application development tool works in this way at present, but that's the fault of the architecture of system tables, which I intend to remedy. One can't remove the Codes Mistake from these tables.
    However Identifier Class Applications can be developed using Code Class RDBMSs, because the developer has control over the application relation design, which can be carried out under identifier principles. I redeveloped from relation design scratch a very successful application, so I had a good placebo. In my environment I needed a 4GL form development tool so that I could get identifier values (and other attribute values) from attribute input rather than being limited to searching for a "code" to get other row values.
    If seeing is believing and of interest, then we might arrange for you to see the IC application working.
    Yours,
    George

  • Summary Report with cube and rollup

    hi guys,
    i m working a oracle 9i, i need a summary report after query execution. im using rollup and cube but it is giving me unwanted rows as well. for ex below
    Select
    IRH_REFNO,IRH_TDATE,IRH_BDAMT,IRH_RLOCN, IRH_ILOCN,IRH_EXPECTED_DATE,IRH_ADD_USERID ,
    count(*),
    sum(irh_bdamt)
    from IRH
    where IRH_INTYPE='R'
    and IRH_RLOCN='EDP'
    group by cube(IRH_REFNO,IRH_TDATE,IRH_BDAMT,IRH_RLOCN, IRH_ILOCN,IRH_EXPECTED_DATE,IRH_ADD_USERID )
    Order by IRH_TDATE asc
    i want only two columns to be computed at the end of query. i.e sum of BDAMT and count of rows. i dont want any groupings. any alternate for this.
    thanks n regards
    fkhan

    Please post a create table statement, a few insert statements and the expected output, so we can help you.
    Regards,
    Rob.

  • Word to the wise: title 3d and autorender function

    If you have the auto-render function turned on, open title 3-d and walk away for lunch, you'll freeze FCP.
    You get the little "Auto render complete" box, but you cannot click OK because it comes from FCP, which becomes idle when you open 3d.
    Possible lessons: don't eat lunch. Don't use auto render. Don't leave title 3d open. Eat in the edit room and keep working. Save early, save often.

    I've had this happen and I think I got out of it by pressing return - couldn't click on it, but I could press return or ESC. Nasty trap, tho...
    Patrick

  • Whats the relationship between oppurtunies and Partner function in table?

    Hi,
    I have to generate a dynamic Query for Search to filter based on Partner function.
    I got crmd_partner_fct table which has the codes assigned to the Partners But how do i relate it to
    crmd_orderadm_h so that I can filter based on the partner number i select?
    George

    i have so many partners under pft_5 (Employee) and all are giving value pft_5 in the CRMD_ORDER_INDEX table for the same GUID in header.. How can i  find out the oppurtunities searching by partner function  of PFt_5 group .. (Not sure what to ask since We have this new partner functiions added to the dropdown and i dont see any difference in the table based on the Partner Function selected in the screen.Each function has a different number assigned but I dont see that in the table)

  • What is the difference between SEOK and SEOF function group?

    Best regards,
    Blake Le

    Hi,
    All class data manipulations are done with function modules from SEOK package (ABAP Objects Class Builder Services).  SEOF - ABAP Objects Class Library Database Layer
    The following program will be helpfull to you.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3330a5e1-0701-0010-6e81-e88984de611a
    Regards,
    Jagadsih

Maybe you are looking for

  • My avi video files are no longer supported in PRE9? Help!

    I created a movie in premiere elements 9  several months ago.  My video was imported from avi files on my computer.  The avi files were originally downloaded from my camera.  Everything was fine and I even burned a near finished copy of my project on

  • How do I clear the list of uploaded files when done?

    I use Firefox to upload my Sheet Music to my Ipad by putting in the IP Address of my Ipad and sending wirelessly. I now have to scroll down several screens to add the next song to transmit. I would like to clear the list. Using windows 8.1 (Ugh!), on

  • HT4623 picture of a power cord and arrow going to itunes

    Can someone please help me? My iphone 5 shows a picture of a power cord with an arrow going to a itunes button. I tryed to restart my phone with no luck. I was trying to download an ios 6.0.2 update when this happened.

  • CIM.bat giving error that weblogic lib path not found

    I am using atg 9.1 and weblogic 10.3.2. Installed both s/w and started weblogic server. I am using cim.bat to configure and I am stuck at a point where it asks for the app server I am using and I selected 'Weblogic' and when it asked for the path..I

  • Passbook sync with American Express Card

    I'm having a problem getting an American Express pass for Passbook because their system is saying I have too many iOS devices synced up already.  Apparently they limit the number of devices that are allowed to share a pass for one specific AmEx accou