ORA-00937:not a single-group group function|ORA-06512:at"schema.procedure n

ORA-00937:not a single-group group function|ORA-06512:at"schema.procedure name)?
The details of this procedure are the emp table is used in the emp1 which is shown in line 19
1 DECLARE
2 cur_emp sys_refcursor;
3 TYPE t_tab IS TABLE OF emp%ROWTYPE;
4 tt t_tab;
5 cur_emp1 sys_refcursor;
6 TYPE t1_tab IS TABLE OF emp1%ROWTYPE;
7 tt1 t1_tab;
8 BEGIN
9 OPEN cur_emp FOR
10 SELECT c1,c2,c3 FROM t1,t2,t3 where t1.c1=t2.c2 and t1.c1=t3.c3;
11 LOOP
12 FETCH cur_emp BULK COLLECT INTO tt LIMIT 100000;
13 EXIT WHEN tt.COUNT=0;
14 FOR i IN 1..tt.COUNT LOOP
15 insert in to emp (c1,c2,c3) values (tt(i).c1,tt(i).c2,tt(i).c3;
16 END LOOP;
17 END LOOP;
18 OPEN cur_emp FOR
19 SELECT c11,c12,c13 FROM emp,t12,t13 where emp.c11=t12.c12 and t11.c11=t13.c13;
20 LOOP
21 FETCH cur_emp1 BULK COLLECT INTO tt1 LIMIT 100000;
22 EXIT WHEN tt1.COUNT=0;
23 FOR j IN 1..tt1.COUNT LOOP
24 insert in to emp1 (c11,c12,c13) values (tt1(j).c11,tt1(j).c12,tt1(j).c13;
25 END LOOP;
26 END LOOP;
27 END;
/

ORA-00937:not a single-group group function|ORA-06512:at"schema.procedure name)?
The details of this procedure are the emp table is used in the emp1 which is shown in line 19
1 DECLARE
2 cur_emp sys_refcursor;
3 TYPE t_tab IS TABLE OF emp%ROWTYPE;
4 tt t_tab;
5 cur_emp1 sys_refcursor;
6 TYPE t1_tab IS TABLE OF emp1%ROWTYPE;
7 tt1 t1_tab;
8 BEGIN
9 OPEN cur_emp FOR
10 SELECT c1,c2,c3 FROM t1,t2,t3 where t1.c1=t2.c2 and t1.c1=t3.c3;
11 LOOP
12 FETCH cur_emp BULK COLLECT INTO tt LIMIT 100000;
13 EXIT WHEN tt.COUNT=0;
14 FOR i IN 1..tt.COUNT LOOP
15 insert in to emp (c1,c2,c3) values (tt(i).c1,tt(i).c2,tt(i).c3);
16 END LOOP;
17 END LOOP;
18 OPEN cur_emp FOR
19 SELECT c11,c12,c13 FROM emp,t12,t13 where emp.c11=t12.c12 and emp.c11=t13.c13;
20 LOOP
21 FETCH cur_emp1 BULK COLLECT INTO tt1 LIMIT 100000;
22 EXIT WHEN tt1.COUNT=0;
23 FOR j IN 1..tt1.COUNT LOOP
24 insert in to emp1 (c11,c12,c13) values (tt1(j).c11,tt1(j).c12,tt1(j).c13);
25 END LOOP;
26 END LOOP;
27 END;

Similar Messages

  • Not a single-group group function very urgent

    HI,
    select sum(avg(wait_to))+sum(avg(idle))+sum(avg(users))+sum(avg(system)) from system_cpu
    where hostid='DSCP02469' group by cpuid
    this query is working
    but i want cpuid group to be displayed
    so i wrote query like this.
    select cpuid,sum(avg(wait_to))+sum(avg(idle))+sum(avg(users))+sum(avg(system)) from system_cpu
    where hOstid=' ' group by cpuid it is throwing a error
    not a single-group group function.
    how can get sum of avg of colums,column based on some coloum
    group by column
    id,sum(avg( )) i have to get
    please give me solution.
    send me mail to [email protected]

    hi,
    thanku for immediate reply but
    if i do that
    select cpuid, a+b+c+d total_value from (select cpuid,
    sum(avg(wait_to)) a, sum(avg(idle)) b,sum(avg(users)) c,sum(avg(system)) d
    from system_cpu where hostid='DSCP02469' group by cpuid)
    SQL> /
    select cpuid, a+b+c+d total_value from (select cpuid,
    ERROR at line 1:
    ORA-00937: not a single-group group functionelse
    select cpuid, a+b+c+d total_value from (select
    sum(avg(wait_to)) a, sum(avg(idle)) b,sum(avg(users)) c,sum(avg(system)) d
    from system_cpu where hostid='DSCP02469' group by cpuid)
    SQL> /
    select cpuid, a+b+c+d total_value from (select
    ERROR at line 1:
    ORA-00904: "CPUID": invalid identifier2)
    can we use select in select case
    can we use select sal, case when sal then select * from emp like this
    with regards
    shannu sarma

  • Issue with not a single-group group function error

    Hello PL/SQL Gurus,
    I am using Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production version and
    Once I am using the following query –
    SELECT s.sym,
    t.tag_trade_method trade_method,
    astd.tag_trade_sector,
    iss.gics_sector_dsc sector,
    d.date_dt trade_date,
    c.wmc_curcy_cd_alpha curcycode,
    amd.brkr_nm,
    SUM(atdf.notional_amt) trd_notional,
    SUM(atdf.trd_qty) trd_qty,
    ard.buy_sell_ind,
    td.person_init
    FROM alloc_tran_det_fact atdf,
    date_dim d,
    alloc_trade_tag_dim t,
    security_dim s,
    currency_dim c,
    person_dim td,
    access_method_dim amd,
    alloc_sec_tag_dim astd,
    alloc_ref_dim ard,
    issuer_dim iss
    where atdf.alloc_trd_tag_dim_key = t.alloc_trade_tag_dim_key AND
    atdf.alloc_sec_tag_dim_key = astd.alloc_sec_tag_dim_key AND
    ard.alloc_ref_dim_key = atdf.alloc_ref_dim_key AND
    atdf.isr_dim_key = iss.isr_dim_key AND
    atdf.trd_dt_key = d.date_dim_key AND
    atdf.sec_dim_key = s.sec_dim_key AND
    t.tag_valid_trade_flg = 'Y' AND
    atdf.locl_curcy_flg = 'Y' AND
    d.date_dim_key BETWEEN 20120405 AND 20120405 AND
    c.curcy_dim_key = atdf.curcy_dim_key AND
    td.person_dim_key = atdf.trdr_dim_key AND
    atdf.exec_brkr_dim_key = amd.access_method_dim_key AND
    amd.level_cd = 'B'
    and t.tag_trade_method in('ALGO','CAPITAL','DMA','NATURAL','WORKING')
    then it throw the error –
    ORA-00937: not a single-group group function
    If I am using something like –
    SELECT s.sym,
    t.tag_trade_method trade_method,
    astd.tag_trade_sector,
    iss.gics_sector_dsc sector,
    d.date_dt trade_date,
    c.wmc_curcy_cd_alpha curcycode,
    amd.brkr_nm,
    SUM(atdf.notional_amt) trd_notional,
    SUM(atdf.trd_qty) trd_qty,
    td.person_init
    FROM alloc_tran_det_fact atdf,
    date_dim d,
    alloc_trade_tag_dim t,
    security_dim s,
    currency_dim c,
    person_dim td,
    access_method_dim amd,
    alloc_sec_tag_dim astd,
    issuer_dim iss
    WHERE atdf.alloc_trd_tag_dim_key = t.alloc_trade_tag_dim_key AND
    atdf.alloc_sec_tag_dim_key = astd.alloc_sec_tag_dim_key AND
    atdf.isr_dim_key = iss.isr_dim_key AND
    atdf.trd_dt_key = d.date_dim_key AND
    atdf.sec_dim_key = s.sec_dim_key AND
    t.tag_valid_trade_flg = 'Y' AND
    atdf.locl_curcy_flg = 'Y' AND
    d.date_dim_key BETWEEN 20120102 AND 20120401 AND
    c.curcy_dim_key = atdf.curcy_dim_key AND
    td.person_dim_key = atdf.trdr_dim_key AND
    atdf.exec_brkr_dim_key = amd.access_method_dim_key AND
    amd.level_cd = 'B'
    and t.tag_trade_method in('ALGO','CAPITAL','DMA','NATURAL','WORKING')
    GROUP BY t.tag_trade_method,
    d.date_dt,
    c.wmc_curcy_cd_alpha,
    td.person_init,
    amd.brkr_nm,
    astd.tag_trade_sector,
    iss.gics_sector_dsc
    then it works fine. I know that due to aggeregate functions we need to use Group By, but why to put Group By on different non aggregate columns,
    As my intension is to fetch the records for defined date range Group By Symbol (s.sym), Kindly help me with this. 
    Thanks to all of you in advance for providing you valuable time and efforts.
    Edited by: user555994 on May 11, 2012 2:20 AM

    You do need to group by these columns
    t.tag_trade_method,
    d.date_dt,
    c.wmc_curcy_cd_alpha,
    td.person_init,
    amd.brkr_nm,
    astd.tag_trade_sector,
    iss.gics_sector_dsc
    as they don't have aggregate functions applied to them.

  • Help with 'not a single-group group function' error

    I have the following statement which gives me that error and don't know what's wrong.
    select BUDGET_CODE,
    to_char(sum(HOURS + (MINUTES/60) + OVERTIME_HOURS + (OVERTIME_MINUTES/60)+(sum(stat)/count(distinct BUDGET_CODE)) * WAGE),'L999999999.00') as Cost
    from KTT_INFORMATION i
    inner join KTT_WAGES w on i.NAME = w.NAME
    GROUP BY BUDGET_CODE
    The statement was working and I added:
    +(sum(stat)/count(distinct BUDGET_CODE))
    which works in a separate statement of its own. Any help is appreciated.

    Although, if you're doing a count on BUDGET_CODE while at the same time grouping by that same field, you'll always get a 1 back from count() in this query, so you may need to modify that anyway.

  • How to display single row column with nested group function

    SQL> select deptno, Max(sum(sal)) SalSum
    2 from emp
    3 group by deptno;
    select deptno, Max(sum(sal)) SalSum
    ERROR at line 1:
    ORA-00937: not a single-group group function
    Can you please the Help me to get the Max(sum(sal)) with Deptno ......

    select deptno, sum(sal) SalSum
    from emp
    group by deptno;The ablove query will give only one value for SALSUM for a department. So there is no meaning on applying MAX on this for a department..
    What are you trying to achieve?
    This?
    select max(salsum) salsm,max(deptno) keep(dense_rank first order by salsum desc) deptno
    from(
    select deptno, sum(sal) SalSum
    from emp
    group by deptno);Edited by: jeneesh on Sep 4, 2012 6:00 PM

  • Error in nested group function used with column name.

    Hi Team,
    If i used nested group function with column name its not working. Could you please any one suggest me.
    How to use it.
    Regards,
    Venkat.
    Please find Spool ........
    SQL> select user_name,max(max(CNT)) from (select USER_NAME,count(*) CNT from v$open_cursor group by USER_NAME)
    2 group by user_name,CNT;
    select user_name,max(max(CNT)) from (select USER_NAME,count(*) CNT from v$open_cursor group by USER_NAME)
    ERROR at line 1:
    ORA-00937: not a single-group group function
    SQL> select max(max(CNT)) from(select USER_NAME,count(*) CNT from v$open_cursor group by USER_NAME)
    2 group by user_name;
    MAX(MAX(CNT))
    605

    Venkat wrote:
    Hi Sayan
    Its giving output like below, but not given maximum CNT.
    SQL> select user_name,max(CNT)from (select USER_NAME,count(*) CNT from v$open_cursor group by USER_NAME)
    2 group by user_name;
    USER_NAME MAX(CNT)
    BANES_LERG 6
    VENE_USER 8
    USER3 339
    DBUS 106
    VEL_USER 37
    SYS 597
    6 rows selected.Check it - Re: Error in nested group function used with column name.
    and previous post

  • Sql group function

    I am trying to calculate the average cost of the books for each customer. The output should contain the customer#, name and the average order.
    This is the code I have:
    SELECT AVG(SUM((retail-cost)*quantity))
    FROM orders JOIN orderitems USING (order#)
    JOIN books USING (isbn)
    JOIN customers USING (customer#)
    GROUP BY order#, customer#;
    I get either, over 8000 for the average order or about 33 for the average order when I don't include the name, customer number or anything else in the code. If I add any other information, I get:
    SELECT customer#, AVG(SUM((retail-cost)*quantity))
    ERROR at line 1:
    ORA-00937: not a single-group group function
    I'm sure there is something small that I am missing, but cannot see it.

    Hi,
    Whenever you have a question, you should post a little sample data and the results you want to get from that data.
    I don't know where you're coming from, or where you want ot go, so it's hard to give you good directions. All I have is your current route plan, which must be incorrect, or else you wouldn't be asking anything.
    I see you are nesting aggregate functions. That's very rare in real life, and the result is always to produce one row of output, regardless of what's in the GROUP BY clause.
    I suspect you want to do a SUM in a sub-query, and then do AVG on the results in the main query. Without seeing your sample data and desired results, I'm just guessing.

  • Group function problem

    Hi, I need to list the shortest string along with the number of characters in the string, so far I've come up with:
    SELECT eventtitle, MIN(LENGTH(eventtitle))
    FROM event
    Oracle XE is giving the error "not a single-group group function", but I can't quite see how to get "eventtitle" on it's own, the function "MIN(LENGTH(eventtitle))" does give me the desired result if run by its self. I'm grateful for any assistance!

      1  with t
      2  as
      3  (
      4   select 'abcd' short_string from dual
      5   union all
      6   select 'a' short_string from dual
      7   union all
      8   select 'b' from dual
      9  )
    10  select short_string, rownum rn from t
    11* order by length(short_string)
    SQL> /
    SHOR         RN
    a             2
    b             3
    abcd          1one version using analytics
      1  with t
      2  as
      3  (
      4   select 'abcd' short_string from dual
      5   union all
      6   select 'a' short_string from dual
      7   union all
      8   select 'b' from dual
      9  )
    10  select short_string, len from
    11  (
    12  select short_string, length(short_string) len, min(length(short_string)) over() min_length from t
    13* ) where len = min_length
    SQL>
    SHOR        LEN
    a             1
    b             1Regards
    Raj

  • ORA-06502: PL/SQL: numeric or value error ORA-06512: at "package.proc

    Hi,
    I'm getting the following error , when calling a procedure. Any input appreciated please
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "package.procedure ", line 513
    ORA-06512: at line 26
    v_counter     NUMBER;
    v_counter := 0; -- line number 513
    FOR i in p_rec_attr.FIRST..p_rec_attr.LAST
    LOOP
    --IF instr(p_rec_attr(i),'=')<>0 THEN
    IF v_counter = 0 THEN
    soap_request := soap_request||'<doc:attributes>
    <!--Zero or more repetitions:-->
    <doc:CategoryAttributeVO>
    <!--Optional:-->
    <doc:name>'||substr(p_rec_attr(i),1,instr(p_rec_attr(i),'=')-1)||'</doc:name>
    <!--Optional:-->
    <doc:value>'||substr(p_rec_attr(i),instr(p_rec_attr(i),'=')+1)||'</doc:value>
    </doc:CategoryAttributeVO>';
    v_counter := v_counter + 1;
    ELSE
    IF i=p_rec_attr.last THEN
    v_category_name := p_rec_attr(i);
    soap_request := soap_request||'
    </doc:attributes>
    <!--Optional:-->
    <doc:name>'||v_category_name||'</doc:name>';
    v_counter := 0;
    ELSE
    soap_request := soap_request||'
    <!--Zero or more repetitions:-->
    <doc:CategoryAttributeVO>
    <!--Optional:-->
    <doc:name>'||substr(p_rec_attr(i),1,instr(p_rec_attr(i),'=')-1)||'</doc:name>
    <!--Optional:-->
    <doc:value>'||substr(p_rec_attr(i),instr(p_rec_attr(i),'=')+1)||'</doc:value>
    </doc:CategoryAttributeVO>';
    v_counter := v_counter + 1;
    END IF;
    END IF;
    --ELSE
    --END IF;
    END LOOP;
    Thanks

    Hi
    I tried this which is :
    create or replace
    procedure test is
    v_counter     NUMBER;
    begin
    v_counter := 0; -- line number 513
    FOR i in 1..10
    LOOP
    --IF instr(p_rec_attr(i),'=')0 THEN
    IF v_counter = 0 THEN
    v_counter := v_counter + 1;
    ELSE
    IF i=9 THEN
    v_counter := 0;
    ELSE
    v_counter := v_counter + 1;
    END IF;
    END IF;
    END LOOP;
    end;
    Which does ot throw any error...I think it is being generated from somewhere else

  • ORA-00934: group function is not allowed here

    Hi,
    My requirement is to check oi.quantity is equal to sum of packing_detail. quantity
    by order_number
    select oi.quantity_ordered oi_qu, pd.quantity pq
    from ordered_items oi, packing_details pd
    where oi.ordered_item_id = pd.ordered_item_id
    and oi.quantity_ordered = sum(pd.quantity)
    and oi.order_number = '29';
    after executing above query I get error
    SQL Error: ORA-00934: group function is not allowed here
    00934. 00000 - "group function is not allowed here"
    Please tell me how to resolve it.
    Thanks in advance
    Sandy

    You have to make use of a subquery;
    select oi.quantity_ordered oi_qu, pd.quantity pq
    from ordered_items oi, packing_details pd 
    where oi.ordered_item_id = pd.ordered_item_id 
    and oi.quantity_ordered = *(select sum(pd.quantity) from packing_details pd1 group by pd1.ordered_item_id)* 
    and oi.order_number = '29';  This is based on the assumption that ordered_items is the summarize data and packing_details are the line item level data.
    regards,
    Dipankar.

  • PL/SQL: ORA-00934: group function is not allowed here

    Hi,
    I am writing a PL/SQL procedure. The structure is like :
    SET SERVEROUTPUT ON;
    CREATE OR REPLACE Procedure abc
    IS
    v_total_ip_rec number(14);
    v_total_op_rec number(14);
    v_total_rec number(14);
    BEGIN
    SELECT SUM (CASE
    WHEN <condition 1>
    THEN 1
    ELSE 0
    END
    ) into v_total_ip_rec,
    SUM (CASE
    WHEN <condition 2>
    THEN 1
    ELSE 0
    END
    ) into v_total_op_rec,
    SUM (1) into v_total_rec
    FROM A,B
    WHERE A.Col1=B.Col1;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    END;
    When I run this procedure it gives me following error:
    "PL/SQL: ORA-00934: group function is not allowed here"
    Anybody have any idea?
    Any help would be appreciated.
    Thanks.

    Hi Arunkumar ,
    I think you don't need subquery.
    Regards Salim.
    Or.
    SELECT COUNT (CASE
                     WHEN <condition 1>
                        THEN 1
                  END) v_total_ip_rec,
           COUNT (CASE
                     WHEN <condition 2>
                        THEN 1
                  END) v_total_op_rec,
           COUNT (1) v_total_rec
      FROM a, b
    WHERE a.col1 = b.col1

  • PL/SQL equivalent of T-SQL - "group function is not allowed here"

    Hi all, hope someone can give me a hand as I'm pretty stuck! I have been trying to convert some MS SQL Server T-SQL statements into Oracle PL/SQL and am stuck on the below one:
    SELECT
    CA.AssessmentID,
    (SELECT ProductName + ISNULL(' - ' + PrincipalBenefit,'')
    FROM rptPolicySnapshot WHERE PolicyID = MAX(CA.PolicyID)
    AND SnapshotID = 1),
    MAX(CA.PolicyID)
    FROM rptClaimInvoiceLineSnapshot CIL
    INNER JOIN rptClaimAssessmentSnapshot CA
    ON CIL.AssessmentID = CA.AssessmentID
    AND CIL.SnapshotID = CA.SnapshotID
    WHERE CIL.SnapshotID = 1
    GROUP BY CA.AssessmentID
    This works fine in MSSQL but returns the below error in Oracle:
    'ORA-00934: group function is not allowed here'
    If I take out the subquery the query works fine.
    Any ideas as to the syntax? I am new to Oracle so not sure as to how I should go about writing this.
    Thanks in advance!
    Leo

    WITH x AS (SELECT   ca.assessmentid,
                        MAX (ca.policyid) policy_id
               FROM rptclaiminvoicelinesnapshot cil
                    INNER JOIN rptclaimassessmentsnapshot ca
                        ON cil.assessmentid = ca.assessmentid
                       AND cil.snapshotid = ca.snapshotid
               WHERE cil.snapshotid = 1
               GROUP BY ca.assessmentid
    SELECT x.assessment_id,
           x.policy_id,
           productname + decode(principalbenefit,null,null,' - ' || principalbenefit ) prodname
    FROM   rptpolicysnapshot, x
    WHERE  policyid = x.policy_id
    AND    snapshotid = 1I think that's in the neighbourhood.

  • Getting Group Function is not Allowed

    Hello All....
    When I run the following in the SQL command screen it works fine... But when I try to use it in APEX to populate page values, it gives me the error...
    ERROR
    1 error has occurred
    ORA-06550: line 25, column 74: PL/SQL: ORA-00934: group function is not allowed here ORA-06550: line 24, column 1: PL/SQL: SQL Statement ignored
    CODE THAT WORKS IN SQL COMMAND SCREEN
    SELECT
    SUM(CASE WHEN SLOT = 'Q' THEN '1' ELSE '0' END) AS C_SLOT,
    SUM(CASE WHEN TEST = 'P' THEN '1' ELSE '0' END) AS C_TEST,
    FROM TBL_REC;
    CODE THAT GIVES ERROR ON APPLICATION EXPRESS PAGE
    SELECT
    SUM(CASE WHEN SLOT = 'Q' THEN '1' ELSE '0' END) INTO :P2_C_SLOT,
    SUM(CASE WHEN TEST = 'P' THEN '1' ELSE '0' END) INTO :P2_C_TEST,
    FROM TBL_REC;
    The colums SLOT and TEST have letter codes, I just want it to count just when it matches a certain letter. In the SQL Command Screen, it is returning one row, with the counts, everything is fine. It is only a problem when I try to use it anywere on a page in Application Express.
    The full version has about 20 lines that are all sum lines, but I can not even get the 2 line ver above to work.
    Any thoughts?

    This will work .. the into clause goes after the select columns ... into var1 ,var2 etc ..
    SELECT SUM(CASE
                 WHEN SLOT = 'Q' THEN
                  '1'
                 ELSE
                  '0'
               END),
           SUM(CASE
                 WHEN TEST = 'P' THEN
                  '1'
                 ELSE
                  '0'
               END)
      INTO :P2_C_SLOT, :P2_C_TEST,
      FROM TBL_REC;SS

  • I met ORA-00935 group function is nested too deeply Message.

    Hi all,
    I made a table like below,
    ==============================
    CREATE TABLE ser_1m_det (
         time                    TIMESTAMP,
         proto                    NUMBER(3,0),
         port                    NUMBER(5,0),
         pkts                    NUMBER(17,0),
         vol_m                    NUMBER(17,4)
    ====================================
    Then I want to use below SQL
    ====================================
    SELECT proto, port, SUM(pkts) pkts, SUM(vol_m) vol_m
    FROM ser_1m_det
    GROUP BY (proto, port)
    HAVING time &lt; SYSTIMESTAMP AND ROWNUM&lt;10
    ORDER BY SUM(pkts);
    ====================================
    When I execute upper sql, I met this error message;
    ===================================
    ORDER BY SUM(pkts)
    ORA-00935 group function is nested too deeply
    ===================================
    Then I search what this message mean.
    ====================================
    ORA-00935 group function is nested too deeply
    Cause: This is an internal error message not usually issued.
    Action: Contact Oracle Support Services.
    ====================================
    I install Oracle9iAS Infrastructure 9.0.2.0.0 on WIN2000.
    (I am using DBMS in Oracle9iAS @.@)
    -&gt; DBMS version is Oracle9i Enterprise Edition Release 9.0.1.3.1
    Anybody know why I met upper error message?
    Thanks in advance.

    well,
    first you want to group,
    then you want to order,
    and most probably then you are interested in the N top records.
    I had a try on table USER_OBJECTS to make things easier:
    select * from
    (select
    object_type
    ,status
    ,nvl(oi ,0) oi
    ,nvl(doi,0) doi
    from
    ( select
    object_type
    ,status
    ,sum(object_id) oi
    ,sum(data_object_id) doi
    from
    user_objects
    where
    created between sysdate -1000 and sysdate
    group by
    object_type
    ,status
    ) A
    order by
    oi desc
    ) B
    where rownum < 5
    ;

  • Customer for function SP may not have account group in sap

    Dear All,
    Not open the sales order and error show in SAP
    Customer for function SP may not have account group.

    In IMG > SD > Basic Function > Set up Partner Determination
    Check the assignment of Partner Function with the Account Group in Account Groups - Function Assignment.
    Best Regards,
    Ankur

Maybe you are looking for

  • How to get New Window without Variable Entry screen from one Web Template?

    Hi Experts, I've a WebTemplate contains 2 Graphs. Each graph have one Zoom Button. My requirement is, When I click the Zoom button that corresponding Grpah should display in a New Window. I've finished all the above requirements. Since, I have One Ma

  • OBIEE 11g error in filter

    Hi, I have a problem in OBIEE 11.1.1.6 I have a report where project No is a filter i.e in where condition. Now I have a project no like "ERP-HR STD&2012". Now this is not returning data getting error out. In OBIEE, whenever it see any & sign in the

  • Problem in Time Based Publishing Content

    Hi every1,   Im working with Time based publishing. Using xml form builder i created 3 contents means 3 xmls. Then i created one iView for reading the contents (KM Navigation iView) and i setup the properties like layout set, layout set mode, root fo

  • Copying data to time capsule from external hard drive too slow....

    is there a way to make the transfer of data from a external hard drive that is plugged into the time capsule, transfer faster? im transfering 11gb and it says it will take 3 hours to complete. there must be a faster way to transfer all my data, in le

  • CUE 8.6.4 Call Hold Step

    Hi , Customer requirement is that when PSTN caller call into branch AA is invoked,He presses Zero call will be sent to a hunt group of operators. While caller is still waiting it is required that he hears a MoH from branch flash not a ringing tone. H