Issue with ROW_NUMBER() OVER (PARTITION)

Hi,
Please read the Thread completely, I have created a Report to see Yearly Turnover%, The report works fine but when I take Quarter and Months in it, it restricts the result to only 1 line(i.e., my first year's Turnover) and when I opened the Physical query, I saw the BI Server is using
ROW_NUMBER() OVER (PARTITION BY)
which is not at all necessary.
*I tried disabling WITH_CLAUSE_SUPPORTED and PERF_PREFER_MINIMAL_WITH_USAGE but didn't get any resolution, Could anybody help me out?
thanks in Advance,
Anand

You said 'it restricts the result to only 1 line' means the value is nor drill down to next level?
In that case Yearly Turnover% is set to Year level?

Similar Messages

  • Issue with  OBIEE ROW_NUMBER() OVER (PARTITION BY)

    Hi All,
    I am facing some issue with the ROW_NUMBER() OVER (PARTITION BY function in the query that is being generated. I am currently on version 11.1.1.6. I have 1 FACT and 1 Dimension table. Within the dimension I have create a level based hierarchy namely REGION -> GROUP - DIVISION etc. Now the problem is that the OBIEE automatically applies *"ROW_NUMBER() OVER (PARTITION BY T9.PRODUCT_TYPE_DESC, T130.DIVISION_DESC, T130.REGION_DESC ORDER BY T9.PRODUCT_TYPE_DESC ASC, T130.DIVISION_DESC ASC, T130.REGION_DESC ASC) "
    to the query where in it is not required at it returns with 3 different row numbers. If i remove this line and the where clause I am able to get correct results however its not working whatever I do in the RPD. Please advise.
    WITH
    SAWITH0 AS (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    D1.c6 as c6
    from
    (select sum(T157.PL_GRAND_TOTAL) as c1,
    sum(T157.TRANSACTION_AMT) as c2,
    T130.DIVISION_DESC as c3,
    T130.REGION_DESC as c4,
    T130.GROUP_DESC as c5,
    T9.PRODUCT_TYPE_DESC as c6,
    ROW_NUMBER() OVER (PARTITION BY T9.PRODUCT_TYPE_DESC, T130.DIVISION_DESC, T130.REGION_DESC ORDER BY T9.PRODUCT_TYPE_DESC ASC, T130.DIVISION_DESC ASC, T130.REGION_DESC ASC) as c7
    from
    DIM_ALL_MODULES_REF T9,
    DIM_MIS_TREE_REF T130,
    DIM_DATE_SERIES T123,
    FCT_ALL_MODULES_TRANS T157
    where ( T9.SGK_MIS_ID = T130.SGK_MIS_ID and T9.SGK_MODULE_ID = T157.SGK_MODULE_ID and T123.SGK_TIME_ID = T157.SGK_TIME_ID and T123.TRANS_DATE between TO_DATE('2011-01-01 00:00:00' , 'YYYY-MM-DD HH24:MI:SS') and TO_DATE('2011-03-31 00:00:00' , 'YYYY-MM-DD HH24:MI:SS') )
    group by T9.PRODUCT_TYPE_DESC, T130.DIVISION_DESC, T130.GROUP_DESC, T130.REGION_DESC
    ) D1
    where ( D1.c7 = 1 ) ),
    SACOMMON42934 AS (select T130.DIVISION_DESC as c2,
    T130.REGION_DESC as c3,
    T130.GROUP_DESC as c4,
    T9.PRODUCT_TYPE_DESC as c5,
    sum(T258.BEG_NMK_EQ_COST_AMT) as c6,
    T123.TRANS_DATE as c7,
    sum(T258.END_NMK_EQ_COST_AMT) as c8
    from
    DIM_ALL_MODULES_REF T9,
    DIM_MIS_TREE_REF T130,
    DIM_DATE_SERIES T123,
    FCT_MODULES_BEG_END_BAL T258
    where ( T123.SGK_TIME_ID = T258.SGK_TIME_ID and T9.SGK_MIS_ID = T130.SGK_MIS_ID and T9.SGK_MODULE_ID = T258.SGK_MODULE_ID and T258.PRODUCT_TYPE_ID = 2 and T123.TRANS_DATE between TO_DATE('2011-01-01 00:00:00' , 'YYYY-MM-DD HH24:MI:SS') and TO_DATE('2011-03-31 00:00:00' , 'YYYY-MM-DD HH24:MI:SS') )
    group by T9.PRODUCT_TYPE_DESC, T123.TRANS_DATE, T130.DIVISION_DESC, T130.GROUP_DESC, T130.REGION_DESC),

    Hi Dhar,
    Thanks for replying back. But the ROW_NUMBER thing is inserted with the "WITH SUPPORTED" clause only but that is something which are the default settings. However, I notice that ROW_NUMBER() OVER (PARTITION BY) lines are erratic and are not consistent. So sometimes the drill works properly when no ROW_NUMBER() OVER (PARTITION BY) is generated but other times data is wrong. I am not sure why this behaviour is erratic even though I select the same values.
    This is surely a product problem as the condition where c7 = 1 filters the result and does not take into account all values.
    Even when I do not use WITH_SUPPORTED clause the stitch does not happen properly. Please advice if this is ever going to be by Oracle or any work around for this?
    Thanks

  • ROW_NUMBER() OVER (PARTITION

    hi, can anyone explain, especially this part
    ROW_NUMBER() OVER (PARTITION BY A.USER_ID ORDER BY A.TNP_TRACK_ID DESC) RN
    Thanks
    newbie
    SELECT A.TNP_TRACK_ID, A.USER_ID, NVL(A.DELETED,0) DELETED, A.CREATE_TIME, A.DELETE_TIME, B.PRODUCT_CODE, C.LOGIN_NAME,
    ROW_NUMBER() OVER (PARTITION BY A.USER_ID ORDER BY A.TNP_TRACK_ID DESC) RN
    FROM MISPNA.TNP_TRACKABLE_' || TO_CHAR(p_reporting_month, 'YYYYMM') || ' A
    JOIN TMP_VRZ_LATEST_SOC B ON A.TNP_TRACK_ID = B.TRACK_ID
    JOIN MISPNA.TN_LOGIN C ON A.USER_ID = C.USER_ID
    WHERE A.DELETED<>1

    Hi,
    949523 wrote:
    thank you very much, the whole original script is
    SELECT TNP_TRACK_ID, USER_ID, DELETED, CREATE_TIME, DELETE_TIME, PRODUCT_CODE, LOGIN_NAME
    FROM (
    SELECT A.TNP_TRACK_ID, A.USER_ID, NVL(A.DELETED,0) DELETED, A.CREATE_TIME, A.DELETE_TIME, B.PRODUCT_CODE, C.LOGIN_NAME,
    ROW_NUMBER() OVER (PARTITION BY A.USER_ID ORDER BY A.TNP_TRACK_ID DESC) RN
    FROM MISPNA.TNP_TRACKABLE_' || TO_CHAR(p_reporting_month, 'YYYYMM') || ' A
    JOIN TMP_VRZ_LATEST_SOC B ON A.TNP_TRACK_ID = B.TRACK_ID
    JOIN MISPNA.TN_LOGIN C ON A.USER_ID = C.USER_ID
    WHERE A.DELETED <>1
    WHERE RN != 1';I assume the single-quote near the end is just an editing typo.
    >
    so seems like with specified user_id, it will pick greatest tnp_track_id ? ( as it asks RN=1)That's what it would be doing if the last line read
    WHERE  rn = 1; for each user_id, that query (with = on the last line) would display all the SELECTed values from the row with the greatest tnp_track_id.
    Since you're using != , however, then it's doing just the opposite; it's displaying all rows except the row with the greatest tnp_track_id.
    The sub-query is necessary here. All analytic functions, including ROW_NUMBER, are evaluated after the WHERE clause has been applied. To use the results of an analytic function in a WHERE clause, you have to compute the function in a sub-query first.
    Edited by: Frank Kulash on Jan 7, 2013 8:08 PM
    Just noticed you're saying "WHERE RN != 1" ( not equals)

  • Convert SQL Server ROW_NUMBER() OVER(PARTITION BY() Query to Access

    Hi,
    I am having trouble with converting this SQL Server query to Access. If anyone can give me help I would appreciate it.
    SELECT B.AMOUNT_REQUESTED, B.INIT_OFF, B.MBR_NBM, B.STATUS, B.APPLICATION_NBR
    FROM
    SELECT AMOUNT_REQUESTED, INIT_OFF, MBR_NBM, STATUS, APPLICATION_NBR, ROW_NUMBER() OVER(PARTITION BY MBR_NBM ORDER BY MBR_NBM) RN
    FROM LOAN_DATA
    WHERE APPLICATION_DATE BETWEEN '20150420' AND '20150425'
    ) B
    WHERE RN = 1
    ORDER BY B.MBR_NBM

    While there is no equivalent to ROW_NUMBER(), it appears that you are just wanting the first row of each group, and that CAN be accomplished in Access, but I do wonder why you would WANT to do that in Access if your data is stored in SQL Server.  As
    Tom indicated a Pass Through query object is likely your best bet -- or a View in SQL Server, then create a Linked Table object that points to it.
    To get the first of each group ... which is essentially a TOP n, where n = 1 ... so .. the first thing you will want to indentify is a second field to use as a Key in order to define the "first" row you want in the group.  In your SQL
    statement, you are ordering my mbr_nbm, so the secondary sort is unknown -- likely predicable, but unknown with out knowledge of the schema ... so, I will provide samples by using APPLICATION_DATE as the sort key.
    This one is the "first" of a series with the assumption that the one you want is the one with the "biggest"/"most recent" APPLICATION_DATE. 
    SELECT vLoanData.AMOUNT_REQUESTED, vLoanData.INIT_OFF, vLoanData.MBR_NBM, vLoanData.STATUS, vLoanData.APPLICATION_NBR
    FROM LOAN_DATA As vLoanData
    INNER JOIN
    (SELECT MBR_NBM, Max(APPLICATION_DATE) As LastAppDate
    FROM LOAN_DATA As vLast
    GROUP BY MBR_NBM) As vLastApp ON vLoanData.MBR_NBM = vLastApp.MBR_NBM And vLoadData.APPLICATION_DATE = vLastApp.LastAppDate
    Or ... the following is a TOP n query where n = 1.
    SELECT vLoanData.AMOUNT_REQUESTED, vLoanData.INIT_OFF, vLoanData.MBR_NBM, vLoanData.STATUS, vLoanData.APPLICATION_NBR
    FROM LOAN_DATA As vLoanData
    WHERE (vLoanData.MBR_NBM & '|' & vLoanData.APPLICATION_DATE)
    IN (SELECT TOP 1 (vCorrelated.MBR_NBM & '|' & vCorrelated.APPLICATION_DATE) As Key
    FROM LOAN_DATA As vCorrelated
    WHERE vCorrelated.MBR_NBM = vLoanData.MBR_NBM
    ORDER BY vCorrelated.MBR_NBM, vCorrelated.APPLICATION_DATE DESC)
    This second example is not going to win you any points with respect to speed, but is truly a closer model to the TOP N type thing you are doing in SQL Server.
    Hope that helps!
    Brent Spaulding | Access MVP

  • Qualify row_number over(Partition by col order by col) and char2hexint() functions in informatica

    How to implement qualify row_number over(Partition by col order by col) and char2hexint in informatica in a way that is supported by pdo?
    Apart from sql overriding or using stored procedure ,is there any other solution?Can rank transformation help here? ....But, I guess rank transformation cannot be pushed down..
    help please !

    Hi Saichand,
    The links were helpful. But i am not getting how it is working in test and not in live.
    I found one difference while deploying . The column names of the object both in Test and Production had spaces.For E.g: Full Name
    When this column Full Name is pulled to the repsository in test , it automatically put double quotes for the column names in the physical sql when it hits the database.
    But, In production , when I pulled the column the report gave error as Invalid Identifier since OBIEE generated column name as Full Name without double quotes.
    Then I changed the column in Phyiscal Layer repository by having double Quotes for all columns. Afte that report worked fine.
    Whether this has caused any issue in Row Partition.
    Is there any setting to have column name in Double Quotes ?
    Thanks,
    Johnny

  • Performance issues with version enable partitioned tables?

    Hi all,
    Are there any known performance issues with version enable partitioned tables?
    I’ve been doing some performance testes with a large version enable partitioned table and it seems that OCB optimiser is choosing very expensive plans during merge operations.
    Tanks in advance,
    Vitor
    Example:
         Object Name     Rows     Bytes     Cost     Object Node     In/Out     PStart     PStop
    UPDATE STATEMENT Optimizer Mode=CHOOSE          1          249                    
    UPDATE     SIG.SIG_QUA_IMG_LT                                   
    NESTED LOOPS SEMI          1     266     249                    
    PARTITION RANGE ALL                                   1     9
    TABLE ACCESS FULL     SIG.SIG_QUA_IMG_LT     1     259     2               1     9
    VIEW     SYS.VW_NSO_1     1     7     247                    
    NESTED LOOPS          1     739     247                    
    NESTED LOOPS          1     677     247                    
    NESTED LOOPS          1     412     246                    
    NESTED LOOPS          1     114     244                    
    INDEX RANGE SCAN     WMSYS.MODIFIED_TABLES_PK     1     62     2                    
    INDEX RANGE SCAN     SIG.QIM_PK     1     52     243                    
    TABLE ACCESS BY GLOBAL INDEX ROWID     SIG.SIG_QUA_IMG_LT     1     298     2               ROWID     ROW L
    INDEX RANGE SCAN     SIG.SIG_QUA_IMG_PKI$     1          1                    
    INDEX RANGE SCAN     WMSYS.WM$NEXTVER_TABLE_NV_INDX     1     265     1                    
    INDEX UNIQUE SCAN     WMSYS.MODIFIED_TABLES_PK     1     62                         
    /* Formatted on 2004/04/19 18:57 (Formatter Plus v4.8.0) */                                        
    UPDATE /*+ USE_NL(Z1) ROWID(Z1) */sig.sig_qua_img_lt z1                                        
    SET z1.nextver =                                        
    SYS.ltutil.subsversion                                        
    (z1.nextver,                                        
    SYS.ltutil.getcontainedverinrange (z1.nextver,                                        
    'SIG.SIG_QUA_IMG',                                        
    'NpCyPCX3dkOAHSuBMjGioQ==',                                        
    4574,                                        
    4575                                        
    4574                                        
    WHERE z1.ROWID IN (
    (SELECT /*+ ORDERED USE_NL(T1) USE_NL(T2) USE_NL(J2) USE_NL(J3)
    INDEX(T1 QIM_PK) INDEX(T2 SIG_QUA_IMG_PKI$)
    INDEX(J2 WM$NEXTVER_TABLE_NV_INDX) INDEX(J3 MODIFIED_TABLES_PK) */
    t2.ROWID
    FROM (SELECT /*+ INDEX(WM$MODIFIED_TABLES MODIFIED_TABLES_PK) */
    UNIQUE VERSION
    FROM wmsys.wm$modified_tables
    WHERE table_name = 'SIG.SIG_QUA_IMG'
    AND workspace = 'NpCyPCX3dkOAHSuBMjGioQ=='
    AND VERSION > 4574
    AND VERSION <= 4575) j1,
    sig.sig_qua_img_lt t1,
    sig.sig_qua_img_lt t2,
    wmsys.wm$nextver_table j2,
    (SELECT /*+ INDEX(WM$MODIFIED_TABLES MODIFIED_TABLES_PK) */
    UNIQUE VERSION
    FROM wmsys.wm$modified_tables
    WHERE table_name = 'SIG.SIG_QUA_IMG'
    AND workspace = 'NpCyPCX3dkOAHSuBMjGioQ=='
    AND VERSION > 4574
    AND VERSION <= 4575) j3
    WHERE t1.VERSION = j1.VERSION
    AND t1.ima_id = t2.ima_id
    AND t1.qim_inf_esq_x_tile = t2.qim_inf_esq_x_tile
    AND t1.qim_inf_esq_y_tile = t2.qim_inf_esq_y_tile
    AND t2.nextver != '-1'
    AND t2.nextver = j2.next_vers
    AND j2.VERSION = j3.VERSION))

    Hello Vitor,
    There are currently no known issues with version enabled tables that are partitioned. The merge operation may need to access all of the partitions of a table depending on the data that needs to be moved/copied from the child to the parent. This is the reason for the 'Partition Range All' step in the plan that you provided. The majority of the remaining steps are due to the hints that have been added, since this plan has provided the best performance for us in the past for this particular statement. If this is not the case for you, and you feel that another plan would yield better performance, then please let me know and I will take a look at it.
    One suggestion would be to make sure that the table was been recently analyzed so that the optimizer has the most current data about the table.
    Performance issues are very hard to fix without a reproducible test case, so it may be advisable to file a TAR if you continue to have significant performance issues with the mergeWorkspace operation.
    Thank You,
    Ben

  • How can use row_number() over partition by plz provide some doc.

    row_number() over (partition by)
    what is this and how can use it in sql query.
    if ur have any documentation of it. plz give...me..
    thanx sir
    thanx in advance.

    http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96540/functions105a.htm
    SELECT empno, deptno,
    row_number() over (partition by deptno order by empno) rn
    from scott.emp
         EMPNO     DEPTNO RN                                    
          7782             10     1
          7839             10     2
          7934             10     3
          7369             20     1
          7566             20     2
          7788             20     3
          7876             20     4
          7902             20     5
          7499             30     1
          7521             30     2
          7654             30     3
          7698             30     4
          7844             30     5
          7900             30     6Regards
    Dmytro

  • Issue with STO over delivery

    I am sure this topic has been taken up so many times before. I have browsed through almost all of them. I still do not have a way of restricting STO over delivery! Require your expertise!!.
    My requirement is that STO over deliver should not occur when using VL10* transactions alone.
    We tried to export a flag (say delv_flag)from program 'RVV50R10C'  to shared buffer and import the same into BADI LE_SHP_DELIVERY_PROC (DELIVERY_FINAL_CHECK) to capture error message when STO over delivery is created. The entire logic is built based on this flag alone.We are deleting the flag in V50R_MAIN of the program 'RVV50R10C'.
    There are some issues with this method:
    1. In some cases the delete flag statement gets executed before importing from memory and hence an STO over delivery gets created. (I don't know how or why!).
    2. When VL10* transaction is executed, the delivery flag is set. At this point in time, if the user tries to delete delivery without exiting the transaction, the BADI will get triggered and error message will be displayed. This is not correct functionality since error message should be displayed only for VL10* transactions.
    Suggestion:
    If I change the location of exporting the flag to include 'LV50R_VIEWF43' (form delivery_create), do you suppose it would work? Would Idocs trigger this?
    If anybody has worked on similar requirement please share your inputs. Urgent!!!!
    PS:
    I have read about delivery tolerances too "The overdelivery tolerance functionality is available only for the deliveries created with reference to sales orders and not for deliveries created with reference for PO's or STO's".

    Dear Sapna Morey
    I think OMCQ T.Code-- Select message M7--024 Change from Waring to error
    Please try once with this it may work To control over delivery tolarency in STO
    Dear  Lakshmipathi G sir
    i have one doubt please clear me sir please
    To control Over delivery tolarance in sap standard  is not available , then what is the use of the above one.
    Because i have searched a lot , i didnt find the logic about this
    Thanks a lot sir please help me sir
    Thanks

  • Sorting does not work  with ROW_NUMBER () OVER (ORDER BY

    CREATE OR REPLACE PROCEDURE SP_SALES (
    p_sales_id IN VARCHAR2,
    p_rownnum_from IN NUMBER,
    p_rownnum_to IN NUMBER,
    p_sort_by IN VARCHAR2,
    p_query OUT SYS_REFCURSOR,
    AS
    v_query VARCHAR2 (32000);
    v_sort_list VARCHAR2(32000) ;
    BEGIN
    IF p_spv_sort_by IS NULL THEN
    v_sort_list := 'given_name ASC ' ;
    ELSE
    v_sort_list :=p_spv_sort_by;
    END IF ;
    DBMS_OUTPUT.PUT_LINE ('v_sort_list '||v_sort_list);
    OPEN p_query FOR
    SELECT sales_id,
    item_id,
    order_num,
    employee_name
    ,given_name
    dept_id,
    manager_name,
    ROW_NUM
    FROM
    (SELECT x.*,
    ROW_NUMBER () OVER (ORDER BY v_sort_list ) ROW_NUM
    FROM (sales_id,
    item_id,
    order_num,
    employee_name
    ,given_name
    dept_id,
    manager_name,
    FROM order rvw,
    sales pol,
    emp ca,
    WHERE pol.id = rvw.pr_order_id
    AND ca.empid =pol.employee_id
    AND status = 'SUP') x )
    WHERE ROW_NUM BETWEEN p_rownnum_from AND p_rownnum_to;
    -- ORDER by v_sort_list ;
    DBMS_OUTPUT.PUT_LINE ('v_sort_list '||v_sort_list);
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE ('EX ');
    END;
    END;
    SHOW ERRORS
    Sorting does not work. Am I doing something wrong here?
    executing procedure using below
    declare
    x SYS_REFCURSOR;
    y number;
    BEGIN
    SP_SALES('70159_502',1,5, 'GIVEN_NAME'||' ASC' ,:x);
    --dbms_output.put_line (:x);
    END;

    Hello
    Depending on how many different columns you can sort on and the data types of them, it may be feasible for you to include the conditional logic in the existing statement without the need for dynamic sql...
    DTYLER_APP@pssdev2> var p_spv_sort_by varchar2(100)
    DTYLER_APP@pssdev2>
    DTYLER_APP@pssdev2> exec :p_spv_sort_by:='some other column'
    PL/SQL procedure successfully completed.
    P_SPV_SORT_BY
    some other column
    DTYLER_APP@pssdev2>
    DTYLER_APP@pssdev2> WITH source AS
      2  (   SELECT 'a' given_name, 'z' other_column from dual UNION ALL
      3      SELECT 'b' given_name, 'y' other_column from dual UNION ALL
      4      SELECT 'c' given_name, 'x' other_column from dual
      5  )
      6  SELECT
      7      given_name,
      8      other_column,
      9      ROW_NUMBER ()
    10     OVER (
    11        ORDER BY
    12           CASE
    13              WHEN :p_spv_sort_by IS NULL THEN given_name
    14              WHEN :p_spv_sort_by = 'some other column' THEN other_column
    15           END)
    16        ROW_NUM
    17  FROM
    18      source
    19  /
    G O    ROW_NUM
    c x          1
    b y          2
    a z          3
    3 rows selected.
    DTYLER_APP@pssdev2> exec :p_spv_sort_by:=NULL;
    PL/SQL procedure successfully completed.
    P_SPV_SORT_BY
    DTYLER_APP@pssdev2> WITH source AS
      2  (   SELECT 'a' given_name, 'z' other_column from dual UNION ALL
      3      SELECT 'b' given_name, 'y' other_column from dual UNION ALL
      4      SELECT 'c' given_name, 'x' other_column from dual
      5  )
      6  SELECT
      7      given_name,
      8      other_column,
      9      ROW_NUMBER ()
    10     OVER (
    11        ORDER BY
    12           CASE
    13              WHEN :p_spv_sort_by IS NULL THEN given_name
    14              WHEN :p_spv_sort_by = 'some other column' THEN other_column
    15           END)
    16        ROW_NUM
    17  FROM
    18      source
    19  /
    G O    ROW_NUM
    a z          1
    b y          2
    c x          3
    3 rows selected.
    DTYLER_APP@pssdev2>But that would depend on the columns you're sorting on being of the same data type or at least having the ability to convert them to the same data type without loosing the sort order.
    DTYLER_APP@pssdev2> WITH source AS
      2  (   SELECT 'a' given_name, sysdate - 2 other_column from dual UNION ALL
      3      SELECT 'b' given_name, sysdate - 1 other_column from dual UNION ALL
      4      SELECT 'c' given_name, sysdate  other_column from dual
      5  )
      6  SELECT
      7      given_name,
      8      other_column,
      9      ROW_NUMBER ()
    10     OVER (
    11        ORDER BY
    12           CASE
    13              WHEN :p_spv_sort_by IS NULL THEN given_name
    14              WHEN :p_spv_sort_by = 'some other column' THEN other_column
    15           END)
    16        ROW_NUM
    17  FROM
    18      source
    19  /
                WHEN :p_spv_sort_by = 'some other column' THEN other_column
    ERROR at line 14:
    ORA-00932: inconsistent datatypes: expected CHAR got DATE
    DTYLER_APP@pssdev2> WITH source AS
      2  (   SELECT 'a' given_name, sysdate - 2 other_column from dual UNION ALL
      3      SELECT 'b' given_name, sysdate - 1 other_column from dual UNION ALL
      4      SELECT 'c' given_name, sysdate  other_column from dual
      5  )
      6  SELECT
      7      given_name,
      8      other_column,
      9      ROW_NUMBER ()
    10     OVER (
    11        ORDER BY
    12           CASE
    13              WHEN :p_spv_sort_by IS NULL THEN given_name
    14              WHEN :p_spv_sort_by = 'some other column' THEN TO_CHAR(other_column,'YYYYMMDDHH24MISS')
    15           END)
    16        ROW_NUM
    17  FROM
    18      source
    19  /
    G OTHER_COLUMN            ROW_NUM
    a 12-SEP-2011 15:04:19          1
    b 13-SEP-2011 15:04:19          2
    c 14-SEP-2011 15:04:19          3
    3 rows selected.HTH
    David

  • Issue with voice over narration for a presentation

    When I record a voice over narration (Keynote 09) and then play back - the slides do not always play back with the sound. It seems to be an issue with slides using a build-up ... although it finishes - it then sticks and the sound for the next slide carries on out of sync to the visual - EG - every time I try it happens on the same slides - A good example is one that is followed by a .mov built into a slide. The sound track runs before the new slide image appears - Also I have problems with the movie - as the sound from the .mov file does not come through, so I have to record the movie sound on the narration rack .. confused!?

    It sounds like you are making too many assumptions and not actually testing anything.
    For instance, emoji may not cause issues for other contacts (maybe it is and you don't know it) but if I were testing this issue, the first thing I would do is remove the emoji from the contact info.
    Next thing I would do is make a fake contact called "Home Other". And see if the Voice Control asks you to pick between Home and Home Other
    Another thing I would do is add multiple numbers for your home contact (real or fake) And see if you can get the Voice control to find the contact and ask you what number you want to pick. (home or mobile)
    And last thought that I had....You mentioned that the Voice Control dials a random person every time, but how random is it really? Are you sure that part of these people's names don't phonetically sound similar to the word Home?

  • Issues with WebDav over SSL via Terminal Server when Accessing SharePoint 2013

    Hi All,
    We have deployed a terminal server from which multiple users access and heavily use SharePoint 2013 (hosted on a separate server). The SharePoint site is published to the internet and is operating over an SSL certificate. Over the last few months we have
    been encountering a randomly occurring issue where all the users become unable to use Open with Explorer or mapped drives to access the site. During this time they can still access the site through the browser OK and download files etc. This issue sometimes
    reoccurs every few days, although at points it hasn't occurred for a couple of weeks before resurfacing.
    Current Terminal Server Config
    TS 2008 R2 Enterprise
    Site added to Trusted Sites. (have checked during broken time and still recognized as trusted)
    Using IE 11, site added as compatibility view
    Registries updated as below
    reg add HKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters /v AuthForwardServerList /t REG_MULTI_SZ /d "*.clientsite.com"
    reg add HKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters /v BasicAuthLevel /t REG_DWORD /d 2 /f
    reg add HKCU\Software\Microsoft\Office\14.0\Common\Internet /v BasicAuthLevel /t REG_DWORD /d 2 /f
    registry added for tabprocgrowth added to 2
    My test result are below:
             Restarting the SharePoint server or the terminal server will resolve the behaviour
    until the issue occurs again.
    Users on the terminal server can still open the
    ttps://clientsite2.harrierhc.com
    URL (this url is bound to the same UCC cert) with open with explorer during this time.
    While users are unable to access the ttps://clientsite.harrierhc.com
    URL, if they access the same site from WebDAV with a separate binding (e.g. ttp://clientsite the behaviour works fine.
    All other users not on the terminal server can still use the open with explorer behaviour during this time.
    IIS reset on the SP Server & restarting the web client service on the terminal server have no impact
    Reimporting the IIS certs have no impact
    There are numerous errors in both server’s event logs but none at the time of the issue instigation.
    Clearing the IE cached certificates has no impact
    Going to IE properties for the site and clicking the ‘Install Certificate’ has no impact
     Any ideas or suggestions would be much appreciated. If you need any more info let me know. (sorry for the ttps:// links cant be posted until my account is verified?
    Thanks again

    Hiya,
    are there any load balancers involved?

  • Having an issue with creating a partition for Windows 8?

    Hey, all. I'm trying to make a partition for Windows 8, but now it's stuck on the "shrinking the disc" phase of the partition. It's been over two, and it's only about 25% through. It's been there for a good hour and a half. Should I let it sit through the night, or do a full reboot?

    Likely you have already figured it out by now and this is just a guess.
    I suspect that if the flash skin is linking to it's embedded assets (not embedded) or is using css (same difference) then the flash player is not able to access the assets from the context of the page in which it is being included.  Check for problems with the way that the paths were defined to those assets.
    -Joe

  • Bootcamp issue with MacOS system partition

    I started a thread earlier today but was referred here:
    https://discussions.apple.com/message/20236917#20236917
    In a nutshell: Bootcamp will not accept my newly installed SSD, where I already cloned the Mountain Lion installation to. The issue probably is that I used Disk Utility to format and partition the SSD, already designating a partition for Windows.
    What is new since the last thread: I let Bootcamp partition part of my HDD and then installed Windows, which is up and running. The idea was to clone this new partition to the partition on my SSD, but Carbon Copy Cloner let me down. At the moment I see 3 options:
    1. Clone the Win partition to the SSD by some other means. I understand that there are other programs such as Clonezilla or EaseUS, but those are either rather expensive or too technical
    2. Manage to install Windows cleanly onto the SSD partition (preferred option)
    3. Backup MacOS, format the SSD, revert the MacOS installation and pray that Bootcamp will accept it this time. This is pretty much out of the question for me, as Bootcamp refuses to install Windows while both my SSD and HDD are hooked up and I have to keep dis-/connecting SATA cables. Running on a Mac Mini, this is a major inconvenience for me.
    I appreciate any suggestions

    Thanks, but missing the point.
    In the end, I went for option 3, which went fine.

  • Arch PPC issue with creating bootstrap partition

    On second thought, I'm doing good.
    Last edited by Kebertx (2012-01-13 22:35:32)

    On second thought, I'm doing good.
    EDIT: Didn't want to be a help vampire. Something I recently learned about, and felt bad to identify as.
    So, in case anyone is trying to install Arch on a PowerMac G4, and messed up around the mac-fdisk step, I stumbled upon a thing that you shouldn't do.
    After you hit i to initialize the partition map
    DON'T hit p too early to print the table. You're supposed to enter the full block size. Doing this causes fdisk to believe you are setting up a 4 block partition. The bootstrap partition has to be 64 blocks, so that will just be completely non-working.
    A very simple foolhardy mistake. Forgive me forum, I did not see. That little letter p in the wrong line... nightmarish, now that I look back on it.
    The Wiki will lead you well until you get to the kernel.
    # type name length base
    ( size ) system
    /dev/hda1 Apple_partition_map Apple 63 @ 1
    ( 31.5k) Partition map
    /dev/hda2 Apple_Bootstrap bootstrap 1600 @ 64
    (800.0k) NewWorld bootblock
    /dev/hda3 Apple_UNIX_SVR2 root 31457280 @ 1664
    ( 15.0G) Linux native
    /dev/hda4 Apple_UNIX_SVR2 swap 3072000 @
    31458944 ( 1.5G) Linux swap
    /dev/hda5 Apple_UNIX_SVR2 home 121770544 @
    34530944 ( 58.1G) Linux native
    Block size=512, Number of Blocks=156301488
    DeviceType=0x0, DeviceId=0x0
    For the kernel the wiki is giving you something outdated. When you're installing the base, do this:
    pacman -r /mnt -S base --ignore linux-pmac64 --ignore linux-pmac
    And installing the kernel is like this:
    pacman -r /mnt -S linux-pmac
    pacman -r /mnt -S linux-pmac64
    ^If you are using x64.^
    Am I a helpful community member now?

  • IPhone issues with pics over iMessage

    Our iphones are telling us that our pics we are tring to send are not delivered. But the other person can see it. Also I was using my iPad and it was having the same problem. Then when I checked my iPhone, the pics didn't sink with the message i had delivered. All the texts were there, but no photo. Also it's taking a really long time to sync with iCloud on our computer.

    backup the device with itunes.
    Restore the device with itunes and set up as new.
    Sign into the facetime and imessage to activate it.
    After that is done and activation is good.
    Restore from the backup.
    Then make sure to sign into facetime and imessage again and you should be good to go

Maybe you are looking for

  • How to use multiple iPods in iTunes??

    Had existing iPod touch and bought a second one, need to know how to setup in iTunes and have different libraries if possible

  • How to track changes in a text editor

    How can I track text change events in JTextField? Events: insert, delete, simple typing. I want know what text was before event and what it get after.

  • HT4847 iCloud storage and backup is full

    I just received a message saying my iPhone storage is full and in order to open up some space I need to follow these instructions. Go to settings, tap" iCloud" and then tap "storage and backup". I have not upgraded my phone past 4.3 because of proble

  • DAQmx on Debian

    First off, I am not using LabView. I am running Debian 3.1 (sarge) on kernel 2.4.20. I downloaded the DAQmx base from NI's site, and tried to install it. I had to convert each individual RPM to a .deb using alien, then install the .deb's using dpkg.

  • Maintenance Schedule Approval

    Hi Experts There is a particular requirement at my client side wherein a preventive maintenance schedule has to be approved by maintenance incharge. How can this be mapped into system? I tried exploring user status for maintenance plan. In SPRO maint