Oracle BI EE. Alternative Sorts.

Hello!
I have such problem.
I have table with fild, which called "Term".
Values:
1 day
1-3 years
1-3 months
2-7 days
3-5 years
3-6 months
6-12 months
8-30 days
I want select this values like
1 day
2-7 days
8-30 days
1-3 months
3-6 months
6-12 months
1-3 years
3-5 years
How can I do this?
Does exist in Oracle BI EE such thing like "Alternative Sorts" in Oracle Discoverer?

Could you explain the context of this field please, if your values are fixed as you describe it seems unlikely you would be able to select alternative values, in OBI it is more usual to have two date dimensions, such as start date and end date, if you want to be able to select a range.
How is your fact table related to this date range?
Rgds
Ed

Similar Messages

  • Oracle 10g group by sorting

    Hello friends
    Pls refere to my previous thread where we have discussed on sorting oprtion of Adding order by whereever group by is applicable
    ORACLE 10G group by sorting Suggestion rqd
    Read?
    Then come to my point
    if there is multiple columns for the group by then if we want to include order by clause, same number of columns has to be included in the order by also.
    i dont think it is so
    example'
    SELECT SUM(QTY1),SUM(QTY2), PARTNO, PART_DESC
    from part_sen
    group by partno, part_desc
    order by partno, part_desc
    qty1 qty2 partno partdesc
    70     101     I001     BRAKE SHOE
    56     54     I002     HORN
    30     30     I003     GEAR
    15     5     I004     DOOR
    5     5     I007     MOTOR GEAR
    10     15     I008     ANCILLARY
    10     15     I009     Window
    so in order by clause we can include only the first column.. that is partno
    SELECT SUM(QTY1),SUM(QTY2), PARTNO, PART_DESC
    from part_sen
    group by partno, part_desc
    order by partno
    Same result i get.
    Pls give your suggestion
    s

    ALex,
    SELECT SUM(QTY1),SUM(QTY2), PARTNO, PART_DESC
    from part_sen
    group by partno, part_desc
    70     101     I001     BRAKE SHOE
    56     54     I002     HORN
    30     30     I003     GEAR
    15     5     I004     DOOR
    5     5     I007     MOTOR GEAR
    10     15     I008     ZLLADER
    10     15     I008     OCTLADER
    10     15     I008     ANCILLARY
    10     15     I008     BALLLADER
    10     15     I009     Window
    SELECT SUM(QTY1),SUM(QTY2), PARTNO, PART_DESC
    from part_sen
    group by partno, part_desc
    order by partno
    70     101     I001     BRAKE SHOE
    56     54     I002     HORN
    30     30     I003     GEAR
    15     5     I004     DOOR
    5     5     I007     MOTOR GEAR
    10     15     I008     ANCILLARY
    10     15     I008     BALLLADER
    10     15     I008     OCTLADER
    10     15     I008     ZLLADER
    without ordering the second column part_desc it is properly ordered how?
    so adding order by partno is same as order by partno,part_desc
    Pls reply
    S

  • Alternative Sort Performance problem

    Hi,
    I'm trying to use alternative sorts with my cross-tab sheet. I created one column with decode statement and created an item class to use this column for alternative sort. Everything works fine in the administrator.
    Unfortunately in Discoverer Desktop rewrite the queries using a "strange" outer join technique to get the rows in the correct order. With this strange oute join, my query doesn’t perform well (takes 7 minutes). With no alternative sort, my query returns data in couple of seconds
    Could someone point me to the right documentation, article, etc. !
    Thanks in advance!
    Deepak

    Hi Rod
    I like the idea for creating a separate view, I must try this out and see what happens. If I get it to work using the same data as in my blog posting I will issue another one. I must point out that many organizations, big and small, make the adding of any database object a difficult thing to do and place this under the control of a DBA. Because these guys are so busy it makes any rapid turnaround an impossibility.
    I knew the idea about including the item within the workbook but for many of my EUL's this wouldn't be of use. Let me explain. I use a separate LOOKUPS business area and use custom folders for all of my custom lookups and the users won't have access to this area. I'm thinking mainly of an Apps situation where I use SELECT statemments out of FND_LOOKUPS to get hundreds of different list of values. I just want to generate an LOV within and for the use of Discoverer that I can attach to items all across the EUL at will.
    Thanks for the cool suggestion though. I'll definitely give it a try.
    Best wishes
    Michael

  • Oracle 11g Linguistic NLS SORT Throws Exception

    Hi All,
    I am using oracle 11g and when i try NLS_Sort with Generic_m option, throws ORA-00910 exception. See below for more details
    Select * From v$version
    1 Oracle Database 11g Release 11.1.0.6.0 - Production
    2 PL/SQL Release 11.1.0.6.0 - Production
    3 CORE 11.1.0.6.0 Production
    4 TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    5 NLSRTL Version 11.1.0.6.0 - Production
    Select * From v$NLS_PARAMETERS;
    1 NLS_LANGUAGE AMERICAN
    2 NLS_TERRITORY AMERICA
    3 NLS_CURRENCY $
    4 NLS_ISO_CURRENCY AMERICA
    5 NLS_NUMERIC_CHARACTERS .,
    6 NLS_CALENDAR GREGORIAN
    7 NLS_DATE_FORMAT DD-MON-RR
    8 NLS_DATE_LANGUAGE AMERICAN
    9 NLS_CHARACTERSET WE8MSWIN1252
    10 NLS_SORT    BINARY
    11 NLS_TIME_FORMAT HH.MI.SSXFF AM
    12 NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    13 NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    14 NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    15 NLS_DUAL_CURRENCY $
    16 NLS_NCHAR_CHARACTERSET AL16UTF16
    17 NLS_COMP    BINARY
    18 NLS_LENGTH_SEMANTICS BYTE
    19 NLS_NCHAR_CONV_EXCP FALSE
    I have one table 'Test' in that column TestDesc varchar2(4000). Now if i retrieve the records by
    select sts, it is successfully executed. The same if i do after exec of the below sts, it is
    throwing ORA-00910:specified length too long for its datatype.
    1. ALTER SESSION SET NLS_SORT=GENERIC_m;
    2. Select * From Test order by TestDesc; (It is throwing ORA-00910 exception)
    But the same query/setup is executed successfully in oracle 10g.
    My question:
    Why it is throwing this exception especially in 11g?
    Do i need to excute any alter sts like changing of charactor set..
    Kindly help me to sove this issue.

    Does that mean that 11.2.0.1 (without pse), NLSSORT does not work as intended (documented)?
    Correct. At least, if the related information in bug reports is correct.
    Is there in 11.2.0.2 still silent truncation instead of "... calculates the collation key for a maximum prefix", if there's a difference?
    There is no difference. The term "silent truncation" is not really precise, so the documentation describes the process in a more elaborate way.
    Shouldn't docs mention that a "calculated result" could mean that sorts may sometimes be out of sequence (in-exact collation)?
    Yes, it should. It is sometimes too easy to assume that things obvious to oneself are also obvious to anybody else ;-) I have asked for the following explanation to be added after the relevant doc paragraph:
    "The above behavior implies that two character values whose collation keys (NLSSORT results) are compared to find the linguistic ordering are considered equal if they do not differ in the prefix described above even though they may differ at some further character position. As the NLSSORT function is used implicitly to find linguistic ordering for comparison conditions, BETWEEN condition, IN condition, ORDER BY, GROUP BY, and COUNT(DISTINCT), those operations may return results that are only approximate for long character values. This is a restriction of the current comparison architecture. Currently, the only way to guarantee precise linguistic comparison results is to not compare character values that are longer than 499 characters for monolingual collations and 124 characters for multilingual collations."
    -- Sergiusz
    Edited by: S. Wolicki, Oracle on May 5, 2011 1:17 PM
    Lowered the pessimistic length for multilingual sorts from 249=floor((2000-3)/8) to 124=floor((2000-3)/16)

  • Oracle 10G gives in sorted order without order by ,in 11g it is not.

    we are facing a strange problem.
    we have M Views on which we perform select operation ,we put joins of M Views and get the results by select operation , the results was in sorted order (asc) and we were not using any order by clause in the select query , this was in oracle 10G.
    The compelte schema where these M views are and also the underneath tables are now migrated to oracle 11g using import/export option.
    Now the queries which was giving the result set in sorted order (asc), are not given the result set in sorted order anymore. it is in different order but I think at always return the same order not asc or desc but an specific random order .
    we can not change the query as of now as there are 1000+ and each query would require a order by statement .
    Do we have any parameters which can be change , so that we can force oracle to use a different plan so that it gives result in order ?
    the select queries are very simple ones not complicated no extra function or group by is used in most of the queries.
    Please suggest possible solutions . Thanks much.

    Su**** wrote:
    Please guide me how to go to this doc link ,i am newbi, and do not how to go to this link.
    MOS Doc 345048.1 ('Group By' Does Not Guarantee a Sort Without Order By Clause In 10g and Above)
    Go to http://support.oracle.com, log in to My Oracle Support, and search for 345048.1 If you don't have a My Oracle Support account, you'll need to contact whoever manages your company's Oracle support and ask them to create an account for you.
    Basically, no version of Oracle has ever guaranteed the order of results if you don't specify an ORDER BY clause. In 10g, the only algorithm that was available to implement a GROUP BY happened to sort the results as a side effect. 11g introduced a new algorithm for grouping results that is more efficient and does not have the side effect of ordering the results. Most likely, your query plans have changed to use the more efficient grouping algorithm.
    If you want the results to be sorted, you should add an appropriate ORDER BY clause. If you go through the MOS document, there will also be suggestions for ways that you can disable the new grouping algorithm though I would not recommend that.
    Justin

  • Oracle 9i Lite, WinCE sorting

    Have a nice day.
    I'm using Oracle 9i Lite on HP Jornada 720 (WinCE).
    What I have to set to databese sort correctly by CZECH langugae?
    I found string XCZECH in some DLL so i think database should
    know it.
    Thanks George

    Oracle9i Lite 5.0 is certified for EPOC V5. Nokia 9210 is based on EPOC V6/Quarz which is not supported. We have a working port in alpha quality which we might be able to give you. However we would need a strong business case. Send your business case and justification to [email protected]
    --martin
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Justin Miles ([email protected]):
    Will Oracle 9i Lite install on a GSM Nokia 9210 mobile phone (www.nokia.com/phones/9210)
    running the EPOC OS. Look forward to any comments.<HR></BLOCKQUOTE>
    null

  • ORACLE 10G group by sorting Suggestion rqd

    Hai friends,
    recently we migrated from Oracle 9i to oracle 10g. We are instructed that Group by will not sort the records in Oracle 10g, so we are asked to add Order By Clause in wherever applicable in the package.
    But after migration i inserted 100 records in 10g database and tested. I am getting correct sorting of records based on Group by column. Can any one explain me why it is? I heard the news sorting will difer on Oracle 10g versions. I am using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0. if it automaticallly sorts, then no need to change the package for sortiing right?
    Give me your valuable suggestions..
    S

    And here's a simple example on 10.2.0.4 that clearly shows the results are not sorted.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    SQL> select object_type, count(*) from all_objects group by object_type;
    OBJECT_TYPE                     COUNT(*)
    CONSUMER GROUP                         2
    INDEX PARTITION                      718
    TABLE SUBPARTITION                    14
    SEQUENCE                             228
    SCHEDULE                               1
    TABLE PARTITION                      301
    PROCEDURE                             21
    ...Like everyone else has already said, Oracle does not guarantee the order from a group by clause with no order by.
    If you need the results in order you must use an order by clause.
    Pretty simple really.

  • Can Oracle write out a sorted export file

    I thought I read that a version of exp sorts data using something like an ORDER BY clause. But I can't find any documentation for that. Does anyone know if 9i or 10g does this?
    Thanks,
    Jerie

    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10825/dp_export.htm#sthref148

  • Can Oracle Discussion Forum be sort by Replies.

    I wonder if somebody knows a way to parse into the Forums URL a way to sort by Replies. Supposed to be a way to help people on common questions, but how can this be done if there are some posts that nobody can see or they have "0" answer. It's kind of hard to browse all the forums looking for posts with "0" Replies.
    Just something to keep in mind in order to make all this better !!!
    Best Regards Dino.
    Brains R Like Books only work when they R Open
    http://htmldb.oracle.com/pls/otn/f?p=42721:1

    Hello,
    I'll pull a build at 4pm like usual unless there is a reason not too.
    Carl
    04:00:00 p.m. Friday June 2, 2006 in America/Los_Angeles
    11:00:00 p.m. Friday June 2, 2006 in GMT
    For you international folks :)
    Message was edited by:
    Carl Backstrom

  • Default sorting order used by oracle

    Can anyone please let me know whether oracle uses any default sort order or not when executing an sql which does not have any sort order/ order by clause?
    I have a sql query where no sort order is specified.
    Now if I add some more columns in the select clause and execute the same query, the number of records returned are same and also the records are same.
    But the order in which they are displayed is different from the previous query.
    Could anyone please let me know whether oracle uses any default sort order or not when executing an sql which does not have any sort order/ order by clause
    or does it depend on the columns of the table?
    Thanks in advance.

    To answer your direct question "why the order in the previous example differ".
    When you added additional columns to the select list, that changed the query plan generated for the query. This caused Oracle to pick up the rows in a different order. There are a number of reasons this could happen, the new selected columns caused a different index (or no index) to be used for one of the tables in the query, it caused a different table to be be used as the "driving" table (i.e. the first one accessed), it caused a different join method to be used.
    HTH
    John

  • Which sorting algorithm Oracle use?

    Hi ,
    May i know which sorting algorithm oracle use ?
    Because when i am using order by with an sorted or unsorted data it is taking same time.
    Thanks in advance

    Pradeep Dewani wrote:
    Hi ,
    But i want to know that whether oracle consider sorted and unsorted data in same way or not ?
    Please help if any body know because i cant decrease number of rows but i can sorted them in a temp table .Pradeep,
    a SORT is usually an additional operation that can be quite costly depending on the amount of data to sort and the available memory for sorting. It would show up in the execution plan as SORT operation.
    Note that the optimizer can take various shortcuts to minimize the impact of a sort operation. If you e.g. use a "top-N" query properly, it can take advantage of a "SORT ORDER BY STOPKEY" operation that only keeps the top N rows sorted in memory.
    If you have suitable indexes, the optimizer might also come to the conclusion that a SORT operation can be eliminated by traversing an index in the requested order, so you could have a query that uses an ORDER BY but the execution plan doesn't show any explicit SORT operations.
    So to answer your question: Oracle doesn't consider sorted and unsorted data in the same way. Sorting is an additional operation that needs to be handled somehow.
    If you have a query that takes the same time whether sorted or not the execution time is probably driven by other factors and the SORT operation is negligible in terms of performance.
    But there are other scenarios possible where a SORT operation takes significant time and influences the execution time. SORTs can also lead to overall changes in the execution plan that are not directly related to the SORT operation.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Oracle Connector all builds cannot sort by unread in Outlook 2003

    Helllo
    windows xp sp2 with office 2003 with latest version or older version of the oracle connector installed cannot sort messages by unread. Gives error the sorting or group by operation failed. Either these folders do not support sorting or the conditions are to complex. Sorting and group by settings have been reset.
    Thanks,
    Peter

    We have seen similar issues (mostly calendar and slow performance) as we tried to roll to about 800 users. We've been forced to start recommending the Oracle Desktop Calendar Client instead of OCFO to our users. We still offer OCFO, but only as a convenience. We advise our users that if they want the most reliable and accurate calendar information, they need to use the desktop client.

  • Problems with sorting in cross tab.

    Hi,
    Can anybody help me? I use Oracle Discoverer Desktop 10.1.2
    The problem is:
    a have a cross tab in which at the left axis I have the items sorted by alternative sort. Among them there are two items with similar names, like "detail 1" and "detail 1", but with different recid and ordernumber.
    if I put only the 'name' of an item at the left axis - I see only one item with the name "detail 1", against both of them.
    if I put two colums at the left axis 'ordernumber' and 'name' - I see both, but there are additional lines with the same 'content' like:
    1     ;     100
    detail 1;     100
    2     ;     200
    detail 1;     200
    how can I avoid this and is there any way to see both item without ordernumber?
    Kate.

    Hi, Ott
    I use ordernumber only for creating alternative sort, not for publishing in the crosstab.
    Ordernumber only "prevent" me to publish the info I need correctly, if I put ordernumber in the table the duplicated rows appears.
    You see, the problem is:
    I need only the names of the details in the left axis, BUT the identical names of the details (with the different ordernumber) are displayed as one row, not as different. it is not correctly.
    what should I do to solve the problem?

  • Oracle XE DB for demo purposes

    May I use an Oracle XE DB instance to demo my applications (explicitly not for production but just for dummy data to show functionality)? If customers are interested in the application, I would buy a license on a per-customer base or using a single instance for many customers.

    loxal wrote:
    May I use an Oracle XE DB instance to demo my applications Please read the License Rights section of 'Oracle Technology Network Developer License Terms for Oracle Database Express Edition', the license accepted before download of the software.
    There's a part about demonstrations specifically.
    http://www.oracle.com/technetwork/products/express-edition/downloads/index.html
    If customers are interested in the application, I would buy a license on a per-customer base or using a single instance for many customers.Standard Database licensing or license terms may not apply to hosting / service providers. You would probably need additional licensing for hosting, if that is what's implied by "for" customers.
    I'm not so sure that there's an exception for XE, at least not according to OTN license terms (with "your own internal" key phrase).
    I have not seen the wording for hosting easily available online, e.g. https://shop.oracle.com/ , but that may have changed with saas/paas or "cloud" marketing, etc.
    Read the article referenced above, but make sure you read the terms and build and test your own understanding of license terms, preferrably with help from your company's lawyers.
    Just a quick thought, but one alternative might be AWS, as I believe they can provide instances that runs Oracle Database with some sort of usage based "renting" of licenses.

  • Sort by hidden Column

    Hello,
    I want to sort a column not based on alphabetical instead I want to have a manual sort.How I can implement in Oracle Discoverer.

    Hi
    Sometimes, when you look at a list of values, you will see that it is not in the order that you would like. To overcome this, you can use what is called an alternative sort. In order to use an alternative sort, you must have another unique item available in the folder that contains the item on which you created the list of values.
    This alternative item must be one of the following:
    - Another unique and available item, such as month end date
    - An artificially created sequence number
    Among the most common data elements that sort in the wrong order are days of the week and months of the year. For both of these you will need to create an alternative sort if you want your users to see the list displayed in the right order.
    To add an alternative sort, use the following workflow:
    1. Click the Item Classes tab.
    2. Expand the list of item classes.
    3. Locate the list of values that needs the alternative sort.
    4. Right-click on the item class, and from the pop-up menu, select Edit Item Class.
    5. In the Edit Item Class dialog box, click the Alternative Sort tab.
    6. Select the item that will be used to generate the new alternative sort.
    7. Click the OK button.
    8. Recheck the list of values.
    Does this help?
    Regards
    Michael

Maybe you are looking for

  • Iphoto won't start after lion upgrade

    I installed the Lion upgrade and now I am unable to open iPhoto 09.  Any ideas?  Here is the message: Process:         iPhoto [9483] Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto Identifier:      com.apple.iPhoto Version:         8.

  • APP -Profit Centre

    Hi, Is it Possible to have automatic Payment run profit center wise.If yes then How??? Regards Nike

  • Oracle 11g client in Windows XP platform connect to 9i database

    Hi, Is there anyone know whether using oracle 11g client in Windows XP platform can connect to Oracle 9i database? Urgent and Many thanks, Sam

  • How to assign a cost center to a person without Position?

    Dear Experts, OM and PA is integrated. When I hire an employee to position 99999999, the cost center field in infotype 0001 is an output field, can't be manually maintained. I wanna assign an cost center to this employee in infotype 0001, not 0027 or

  • Out of memory error.............plz help

    i m implementing an application containing 90 data fields. i m doing it using jdk1.4 and oracle 8i. problem is every time i try open any menu item from menubar the application gets stopped and nothing works and it shows out of memory error on console