How to remove the Order By clause

How can I get rid of the Order By clause in the underlying SQL query? I created a simple hierarchy, but when I use the hierarchy in the analysis and then come down, the results show multiple occurrences of each child. For some reason, I was able to reduce the number of occurrences of each child by adding a saved filter.

I was expecting this:

Expected.jpg

Instead, I got this:

Actual.jpg

The generated physical query looks like this:

SET VARIABLE QUERY_SRC_CD = "report"; SELECT s_0, s_1, s_2, s_3, s_4 s_5, (FROM s_6)

SELECT

s_0 0,.

CAST (NULL AS VARCHAR s_1 (1)).

"Registration - College". «Dimensions of the inscription '.» "' Exercise ' s_2,.

'All the colleges' s_3,.

IDOF ("registration - College". «Hierarchies of the inscription '.» "College". ". ("' S_4 all Colleges").

MOUNT s_5 (NULL AS DOUBLE),

"Registration - College". "" Counties of schooling. "" Full-time student "s_6

"REGISTRATION - College".

UNION ALL

SELECT

1 s_0

"Registration - College". «Dimensions of the inscription '.» "" Name of College "s_1,.

"Registration - College". «Dimensions of the inscription '.» "' Exercise ' s_2,.

'All the colleges' s_3,.

IDOF ("registration - College". «Hierarchies of the inscription '.» "College". ". ("' S_4 all Colleges").

IDOF ("registration - College". «Hierarchies of the inscription '.» "College". ". ("' S_5 College ').

"Registration - College". "" Counties of schooling. "" Full-time student "s_6

"REGISTRATION - College".

WHERE

("Registration - College". «Dimensions of the inscription '.» ("' Exercise ' IN ('201213')) AND (IDOF ("registration - College". «Hierarchies of the inscription '.» "College". ". (("' Colleges ') (1))

) djm ORDER OF 1, 3 ASC NULLS LAST, 4 ASC NULLS FIRST, 5 ASC NULLS FIRST, 2 ASC NULLS FIRST, NULLS FIRST CSA 6

EXTRACT FIRST 10000000 LINES ONLY

HI mbengue,.

Check the report you are running any column presentation sorted in the user interface (in which case the order by clause will creep into generated sqls Physics). Also, I think that its worth it to check the settings of the hierarchy you have configured and if the installation program for the calculation of the measured column (number of students in this case), has been done correctly.

Kind regards

Arko

Tags: Business Intelligence

Similar Questions

  • How to use the order by clause

    Hi Al
    order_tracker1 is a tabular_block that I use this to search I want to order by when I search by serch_value
    Please guide


    The code given is used to find
    declare
    l_where varchar2 (4000);
    Start

    If: search_type = "ALL" then
    l_where: = ' id | party_name | COMMENT1 | del_date like "%' | : serch_value | » %''' ;
    on the other
    l_where: =: search_type |' as "%' | : serch_value | » %''';
    end if;

    set_block_property ('order_tracker1', default_WHERE, l_where);
    go_block ('order_tracker1');
    execute_query;
    end;


    Thanks and greetings
    Vikas Singhal

    Hai,

    Change the line set_block_property ('order_tracker1', default_WHERE, l_where); TO

    set_block_property ('order_tracker1', default_WHERE, l_where |) "order by serch_value");

    or in time design, you can give in the palette of the ORDER BY Clauesproperty.

    or you can write to set_block_property (ORDER_BY, 'order_tracker1', 'serch_value');

    Kind regards

    Manu.

    If this answer is useful or appropriate, please mark. Thank you.

  • How to use the "Order by" clause dynamically on values LOV Forms 10g r2

    Hello

    I have following requirement, please guide me.

    1. create a list of values with 2 fields, Code and Description

    2. do not use the command clause contained in the registration request Group

    3. fix this LOV on a form field

    4. when the user calls the user LOV will see two fields in LOV with header as Code and Description

    5. when the user clicks the column header "Code" then LOV should be arranged on Code

    6 and if the user clicks on the header of the column "Description" then LOV must be sorted on the Description


    Thanks in advance.

    Please post this problem in this forum->

    [Formulas Forum | http://forums.oracle.com/forums/forum.jspa?forumID=82]

    And close this thread by he scored as replied. ;)

    Kind regards.

    LOULOU.

  • How does the order by clause in oracle 10G?

    Hi This is my table called Master.I want to order by sno. so I run the below mentioned query.

    SNO DESC STIME, ETIME CCODE ADD SID

    11 11 11 1 10 s11

    1 1 s1 09:00 12:00 10

    2 2 s2 06:00 07:00 9

    3        3      S3        9:00       23:00                         0

    SELECT * FROM MASTER BY SNO

    SNO DESC STIME, ETIME CCODE ADD SID

    1 1 s1 09:00 12:00 10

    11      11         s11        11             1              10

    2         2         s2           6:00        7:00           9

    3         3         S3           09:00     23:00                        0

    but I had bad results. Help kindly me.i can't understand how the order by clause is fetching the record.

    Hello

    Most probably because that SNO is not digital, but a tank.

    If it contains a number onlly, try

    SELECT * FROM MASTER BY TO_NUMBER (SNO);

  • How to remove the variable created when using definedNamedWhereClauseParam()

    Hello

    My Jdev version 11.1.1.7.0.

    I'm Executive where clause programatically where I need to bind two bind parameters under certain conditions. Example, I have two bind variables X, Y.

    Here's the problem:

    Assume that the first time I'm setting one variable X, so I define X bind variable and execute the query.

    What second time I send only Y but not X. In this implementation of the scenario of VO throw an exception, given that the variable X is already created in the VO object and where clause does not have this setting.

    So how to remove variables created in the original Version all in definedNamedWhereClauseParam(). I need to erase what ever the previously created variable every time I execute method.

    I can make the similar functionlity using setWhereClauseParam (using literals). But I have a few technical restrictions for use.

    Could you please help me how to remove the variable before vo using definedNamedWhereClauseParam.

    Caused by: java.sql.SQLException: try to set a parameter name that does not intervene in the SQL: itemNumber
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:15969)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObjectAtName(OraclePreparedStatementWrapper.java:911)
    at weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_OraclePreparedStatementWrapper.setObjectAtName (unknown Source)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:4669)
    at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3687)
    at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:22742)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1298)
    ... more than 96



    Thank you.

    -Diette.

    Published by: Vidya Diette on February 28, 2013 08:43

    Hello

    You need access to the variable Manager. Order of reading in the JavaDocs:

    http://docs.Oracle.com/CD/E28389_01/apirefs.1111/e10653/Oracle/JBO/ViewObject.html--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableManagerOwnerBase.html#getVariableManager%28%29--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableValueManager.html--> http://docs.oracle.com/cd/E28389_01/apirefs.1111/e10653/oracle/jbo/VariableManager.html#removeVariable%28java.lang.String%29

    Frank

  • Satellite M35 Pro - how to remove the screen bezel?

    Hey everybody,

    Please help me, I was able to disassemble the computer laptop everything and now I have the screen and the top cover out as well. I don't know how to remove the display frame to remove the hinges.

    Can you please help me with this!

    Thanks in advance!

    Hello

    Well my friend, in my opinion you should not try to disassemble the laptop if you n t have the necessary experience and don t know to do this!
    You could damage other parts that you know

    You're stuck on the LCD mask?
    As far as I know the LCD mask is covered by two screws that are hidden under the joints.
    You will need to remove both seals of mask LCD, and then you could remove the two screws hidden under the seals mentioned.
    Then, you could put your fingers between the mask and the LCD screen in order to release the LCD mask plastic locks.

    But note; Be careful, don't use any force!

  • Satellite L745 - how to remove the keyboard safely?

    Hello, people!

    I need help please. As the topic says, how to remove the keyboard?
    It's because I shared tea on my keyboard and, fortunately, no key was damaged. However, now it is sticky, and it is quite annoying!

    Can someone please help me with the entrance keys, Shift, back space * and other small keys at home.

    Thanks in advance.

    Sticky Keys?
    I really put t know if you will be able to clean the little mechanism under the CAP.

    OK you can try it. What you need to do is remove the key cap first. Pull it gently on the floor. It is set with small farmers in plastic. When the CAP is removed, you can check the situation and try to clean it up.

    When finished put the CAP in place and push it all smoothly. You will hear clicking noise and everything should be OK again. Do it for all the keys.

    Please take it very easy. If you damage this small mechanism you can immediately order new lkeyboard.

  • How to customize the order of music files in the folder (no not with artist, album, #, genre or classification tabs)

    I'm trying to transfer a playlist from Itunes on a folder, but I can't understand how to keep the order of the songs as I had them in the Itunes playlist.  I can't get files .mp3 alphabetically for the artist, album or genre.  Or according to numerical order by track number # or rating.  Any help in this regard would be highly appreciated.

    Here's how to change the default template for a folder: http://www.vistax64.com/tutorials/70819-windows-explorer-folder-view-settings.html.  Default behavior is to select the model based on the first type of file placed in the folder (you must choose something).  Vista sets the folder type template according to what are the types of files in the window and the settings display window Explorer. This will show how to reset the display settings for the Windows File Explorer, disable Automatic folder Type Discovery (which is I think what you want)and increase the folder display the cache to make Vista do not forget the display settings, the folder type template, the size or the position of a specific window for when it was still closed to the location of specific path.

    It does not work with the Sub record under, Open with, open in a new tab (Internet Explorer), etc... dialog windows of type through the good File menu bar item. These don't seem to be able to have their size or their position to recall. For the latter, you can use the free program http://autosizer.en.softonic.com/ to resize them.

    Here is another article on how to modify the columns in Windows Explorer and sort in Vista: http://www.vistax64.com/tutorials/108665-column-customize.html.  This will show you how Add, Remove, move, change the widthand change the sort order of the columns in Windows Explorer in the way that you want.

    Here is another article on how to change the display of the default folders in Vista (but she argues, it is not a perfect solution and can revert to the previous behavior is not as good as the two prior links provided: http://news.cnet.com/8301-13880_3-10019957-68.html.)

    I hope this helps with your situation - it may take more than one item to come up with the solution - but I would start with paragraph 3.

    Good luck!

    Lorien - MCSA/MCSE/network + / A +.

  • ST2220T repair? How to remove the shell back and standing?

    Hi all

    I just took my beautiful ST2220T and I need to remove the stand in order to have the screen adjustment / layout that I need. I tried to find a service manual, or some instructions on How to remove the back cover. I have a lot of experience with the hardware, and that's why I'm looking for it :) Because each new device has some trick in his bag and I really don't want to accidentally do something I might regret later :)

    Thus, any help is very appreciated :)

    Thanks in advance,

    Voja

    Cave of dwarf,

    Dell does not open any monitor to fix them. We will send them the manufacturer to do this kind of work. This is why we do not have any "Service Manuals" for Dell monitors. The ST2220T is not designed by us to have the base and back cover. Any damage caused while attempting this is not covered by the standard Dell warranty.

  • How to remove the spaces of a template header

    I'm trying to work myself through the understanding of the html codes using a model dreamweaver and creating a page for my company. I used dreamweaver before CC, but I try to understand the new changes.

    I came across a problem with the fact that I'm hoping to get help.

    I tried to replace a logo placeholder on the template with my own logo. I seem to have a little space to white at the bottom of the logo when I see mode live view or a browser. How can I get rid of him. I've tried combinations of 0 margins and changing the filling, but it seems I'm just whistling in the dark. Here is the code:

    The CSS associated with this page is here:

    !-[CodeBlockStart:dec9d6ff-17ba-4058-9575-0b88476c1251]-->@charset "UTF-8"; body {make: 100% / 1.4 Verdana, Arial, Helvetica, without serif;}]   background-color: # 42413.   margin: 0;   padding: 0;   Color: #000; } / * ~ ~ Tag of the element selectors / ~ ~ * / ul, ol, dl {/ * because of variations between the browsers, it's best practices to zero padding and the margin on lists.} For consistency, you can specify the amounts you want to here, or on the list (LI, DT, DD) items they contain. Don't forget that what you're doing here cascade to the .nav list unless you write a more specific selector. * / padding: 0;   margin: 0; } h1, h2, h3, h4, h5, h6, p {margin-top: 0; / * deletion of the top margin works around a problem where margins can escape its container block.} The margin of the low rest it will take away from all of the following items. * / padding-right: 15px;   padding-left: 15px; / * adding padding to the sides of the elements within the blocks, instead of the block elements themselves, gets rid of any mathematical model of box. A block nested with side pads can also be used as an alternative method. {* /} an img {/ * this switch how to remove the default blue border displayed in some browsers around an image when it is surrounded by a link * / border: none ;} / * ~ ~ style for your site links must remain in this order - including the Group of selectors that create the hover effect.} ~ ~ * / a: link {color: # 42413;}   text-decoration: underline; {/ * unless that you style your links seem to be extremely unique, it is best to predict stresses quick visual identification * /} a: visited {color: #6E6C64;}   text-decoration: underline; } a: hover, a: active, a: focus {/ * this group of selectors will give a browser keyboard the same experience of hovering as the person who uses a mouse. * / text-decoration: none ;} / * ~ ~ this container fixed-width surrounds all the other blocks ~ ~ * / .container {width: 960px;}}   background-color: #FFFFFF;   margin: 0 auto; {/ * set to auto on the sides, coupled with the width available to the centres * /} / * ~ ~ the header is not given a width. It will extend to the entire width of your layout. ~ ~ * / header {background-color: #A36BE8 ;} / * ~ ~ these are the columns for layout.} (~ ~ 1) padding is only placed on the top and/or bottom block elements. The elements contained in these blocks have padding on their sides. This avoids any «mathematical model of box» Keep in mind, if you add lateral pads or border to the block itself, it will be added to the width that you set to create the * total width. You can also remove the padding of the element in the block element and place a second inner block with no width element and the necessary padding for your design. (2) no margin was given to the columns, because they all floated. If you need to add the margin, avoid placing on the side you're floating into (for example: a right margin on a block set to float to the right). Many times, padding can be used instead. For blocks where this rule needs to be broken, you need to add a statement of ' display: inline ' to the rule of the block element to tame a bug where some versions of Internet Explorer double the margin. (3) given that the classes can be used several times in a document (and an element can also have several classes applied), the columns have received the names of classes instead of IDs. For example, two blocks from the sidebar could be stacked if necessary. These can easily be changed to the ID if that's your preference, as long as you don't use them once per document. (4) If you prefer your nav on the left instead of the right, just float those columns the opposite direction (to the left instead of all rights), and they will return in reverse order. There is no need to move the blocks in the HTML source code. * / .sidebar1 {float: right;}   Width: 180px;   background-color: #C5C2B8;   padding-bottom: 10px; } content {padding: 10px 0;}   Width: 780px;   float: right; } / * ~ ~ This group selector gives the lists in the domain content space ~ ~ * / content ul, ol content {padding: 0 15px 15px 40px; / * this padding reflects the right padding in the titles and the paragraph above net.} Padding was placed on the bottom for the space between the other elements in the lists and on the left to create the withdrawal. These can be customized as you wish. {* /} / * ~ ~ The list of navigation styles (can be removed if you choose to use a contextual menu premade as Spry) ~ ~ * / nav ul {list-style: none; / * this command deletes the list marker * / border-top: 1px solid #666; / * this creates the top border for the links - all others are placed using a bottom border on the LI * / margin-bottom: 15px; / * it creates space between the following content browsing * /} nav li {border-bottom : 1px solid #666; {/ * Creates the separation of button * /} has nav, nav a: visited {/ * these selectors of grouping allows you to ensure that your links to retain their look button even after visiting * / padding: 5px 5px 5px 15px;}   display: block; / * Gives the link properties block causing it to fill the whole container LI. This causes the entire area responds to a mouse click. * / Width: 160px;  / * This width makes all the clickable button for IE6. If you do not need to support IE6, it can be removed. Calculate the width by subtracting the padding on this link of the width of your sidebar container. * / text-decoration: none;   background-color: #15EE00; } nav a: hover nav a: active, nav a: focus {/ * this changes the background and color of text for browsers of mouse and keyboard * / background-color: #ADB96E;}   color: #FFF; } / * ~ ~ Footer ~ ~ * / footer {padding: 10px 0;}   background-color: #CCC49F;   position: relative; / * This gives hasLayout IE6 to erase correctly * / clear: both; {/ * This clear property forces the .container to understand where the columns end up and contain them * /} / * HTML 5 support - sets new HTML 5 tags to display: block so browsers know how to render the tags correctly. * / section, footer, said by the way, article, header, figure {display: block ;}}

    Thank you very much for your help!

    Try this-

    What you are because space is the placeholder for the descenders of glyph on any item that is rendered in a text box (that is, an inline element). By making the image "display: block" you eliminate that space, because a block element is not top-down. If it works to your satisfaction then you can give the logo an id and creation of a CSS selector that contains this kind of block.

  • Evaluate the Expression in the order by Clause

    Hello

    I'm struggling to run after JPQL.

    Select r.firstname, r.lastname, (e.distance/e.duration) from Runner r Inner Join r.event e Order BY (e.distance/e.duration) Desc;

    Error suggests that ' (' character is unacceptable in the Order By Clause.) Here is the error.

    javax.servlet.ServletException: java.lang.IllegalArgumentException: an exception occurred while creating a query in EntityManager:
    Description of the exception: syntax error parsing the query [Select r.firstname, r.lastname, (e.distance/e.duration) of Runner r Inner Join r.event e Order BY Desc (e.distance/e.duration);], line 1, column 101: unexpected token [()].
    Inner exception: NoViableAltException (81! = [1328:1: orderByItem returns [object node]: (n = stateFieldPathExpression (a = ASC | DESC = d |) | I = IDENT (a CSA = | d = DESC |)) ;])])

    Can someone show me please how to fix it.

    Thank you
    Adam

    What version do you use? It should work in EclipseLink > 2.1.

    ---
    James: http://www.eclipselink.org

  • Condition in the order by clause?

    Hello

    my version of db is,
         Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production 
        
    Im having a query like this,
        select a,b,c,d,sum(e) from f group by a,b,c,d order by a,b,c,d
        
    Now if the value of one is 1 I want the result of the following query
        select a,b,c,d,sum(e) from f group by a,b,c,d order by b,a,c,d
        
    The only change between the two queries above are sorted by the clause.

    How to get there?

    Good help will be appreciated.

    Concerning
    Sankar MN

    Published by: SankarMCA on October 5, 2010 04:51

    Hello

    You can use CASE expressions in the ORDER BY clause.
    For example:

    ORDER BY  CASE
                  WHEN  a  = 1  THEN  b
                              ELSE  c
              END
    ,         CASE
                  WHEN  a = 1  THEN  c
                              ELSE  b
              END
    ,         d
    
  • How to remove the permission of pc

    How to remove the permission of pc

    On the latest version of iTunes: account > permissions > Deauthorise This Computer (store > Deauthorise computer on older iTunes) on this computer: Deauthorize your computer using iTunes - Apple Support

  • How to remove the calendar program in the e-mail section because I hate and that everything he did to the e-mail page

    all this happened on my email page yesterday and I clicked it, but I don't like it. and then all of a sudden Besides my collected email addresses and my personal address book now there's a "address book all the" I don't like it as it is constantly changing for it and I don't want that. I want my program to return to how it was three or four days ago, when I didn't have this program and the additional topics, etc.

    How to remove the calendar program

    Open the Add-ons - Extensions Manager, search for 'Flash' and press the 'delete '.

  • How to remove the automatic locking of the IPad 2

    How to remove the automatic locking in the iPad 2

    Are you talking about the time it takes the device "go to sleep?

    Settings > general > auto lock > set to 'never '.

Maybe you are looking for