Problem is fetching one row having min diff in date

Hi All,
I have a requirement like from below query's result, I want to pick the row having minimum DIFF only. But when I tried putting min around trunc(sysdate) - trunc(rsh.shipped_date) "DIFF", it is giving me error of "Not a single-group Group function"...
select rsh.shipment_num "ASN_NUMBER",
rsh.shipped_date "SHIPMENT_DATE",
trunc(sysdate) - trunc(rsh.shipped_date) "DIFF",
rsl.po_header_id,
pha.segment1
from rcv_shipment_lines rsl,
rcv_shipment_headers rsh,
po_headers_all pha
where rsl.item_id = 701879
and rsl.shipment_header_id = rsh.shipment_header_id
and rsh.shipment_num is not NULL
and pha.po_header_id = rsl.po_header_id
and pha.org_id = 586
Please help me. I have tried group by function also, but it is not helping...
Thanks
Nidhi

Hi Guys,
The problem is solved, now I am using following query to get the required result.
select rsh.shipment_num "ASN_NUMBER",
rsh.shipped_date "SHIPMENT_DATE",
trunc(sysdate) - trunc(rsh.shipped_date) "DIFF",
rsl.po_header_id,
pha.segment1
from rcv_shipment_lines rsl, rcv_shipment_headers rsh, po_headers_all pha
where rsl.item_id = 701879 and
rsl.shipment_header_id = rsh.shipment_header_id and
rsh.shipment_num is not NULL and pha.po_header_id = rsl.po_header_id and
pha.org_id = 586 and
trunc(sysdate) - trunc(rsh.shipped_date) =
(select min(trunc(sysdate) - trunc(rsh.shipped_date))
from rcv_shipment_lines rsl,
rcv_shipment_headers rsh,
po_headers_all pha
where rsl.item_id = 701879 and
rsl.shipment_header_id = rsh.shipment_header_id and
rsh.shipment_num is not NULL and
pha.po_header_id = rsl.po_header_id and pha.org_id = 586)
and rownum<2
Thanks and Regards,
Nidhi

Similar Messages

  • Query to split one row to multiple based on date range

    Hi,
    I need to split single row into multple based on date range defined in a column, start_dt and end_dt
    I have a data
    ID      From date             End_dt                measure
    1        2013-12-01         2013-12-03            1
    1        2013-12-04         2013-12-06            2
    2        2013-12-01         2013-12-02            11
    3        2013-12-03         2013-12-04          22
    I required output as
    ID      Date                      measure
    1        2013-12-01              1
    1        2013-12-02              1
    1        2013-12-03              1
    1        2013-12-04              2
    1        2013-12-05              2
    1        2013-12-06              2
    2        2013-12-01             11
    2        2013-12-02             11
    3        2013-12-03             22
    3        2013-12-04            22
    Please provide me sq, query for the same
    Amit
    Please mark as answer if helpful
    http://fascinatingsql.wordpress.com/

    Have a calendar table for example and then probably using UNION ALL from date  and stat date JOIN the Calendar table
    SELECT ID,From date  FROM tbl
    union all
    SELECT ID,End_dt FROM tbl
    with tmp(plant_date) as
       select cast('20130101' as datetime)
       union all
       select plant_date + 1
         from tmp
        where plant_date < '20131231'
    select*
      from  tmp
    option (maxrecursion 0)
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Problem with fetching a row after creating a standard form

    ORA-02291: integrity constraint (TICKET_DEV.MAILALERTTEXT_MAILALERTTY_FK1) violated - parent key not found
    Unable to process row of table MAILALERTTEXT.
    I have created a form on the table mailalerttext with the intention of beeing able to put in new mailalert texts. I have taken all the fields of that table:
    MAILALERTTEXTID,MAILSUBJECT,MAILCONTENT,APPLICATIECD,MAILALERTTYPEID
    and linked it to the mailalerttype table:
    MAILALERTTYPEID,OMSCHRIJVING,CODE
    I've deleted the field applicatiecd. I've made the mailalerttypeid field a select list using a lov_mailalerttypes, with the following query:
    select maty.omschrijving display_value, maty.mailalerttypeid return_value
    from mailalerttype maty
    order by 1
    All the processes are just standard, nothing has been changed to them.
    Any ideas what could cause this ? Meanwhile I'll keep trying.
    Floris

    I have created a different form on a similar table with the same comments. dropped the mailalerttype column, and added a mailalerttypecode column.
    Inserting now works, with one quirky fact, is that it did one insert, and then it always overwrites the last record. Even if I chose different types, it just changes the last record. So I know now that at least it inserts data, it just doesn't seem to think or make the action, add one count to the sequence and take the next number, which should be 65, which in a way is good if i want to make a difference between the default texts and new ones. So I'm still doing something wrong, or I forgot to do something. Has anyone an idea what ?
    Its just that if I can get this to work, then maybe I can find out, how to get it to work on the mailalerttext table and just keep the maillalerttextbis table as backup.

  • Problem to get one row from multiple rows

    Hi,
    i have master detail form.
    for one entry in master, i have multiple in detail table.
    and in report i want to join both to get the single row.
    is it possible in D2k forms(Oracle)
    Eg.
    I have table hotel
    id name location
    101 taj delhi
    and another table hoteldetail
    id roomtype price
    101 single 1000
    101 double 2000 etc
    now in d2k report i want to show data as
    id 101
    name taj
    location delhi
    single 1000
    double 2000
    please help if there is any way
    Thanks
    kammy
    Edited by: user629129 on Dec 16, 2009 5:03 AM
    Edited by: user629129 on Dec 16, 2009 5:05 AM

    hi
    if i got u then
    try something like this.
    SQL> select emp.empno,emp.ename,dept.deptno,dept.loc from emp,dept where emp.deptno=dept.deptno;
         EMPNO ENAME          DEPTNO LOC
          7369 SMITH              20 DALLAS
          7499 ALLEN              30 CHICAGO
          7521 WARD               30 CHICAGO
          7566 JONES              20 DALLAS
          7654 MARTIN             30 CHICAGO
          7698 BLAKE              30 CHICAGO
          7782 CLARK              10 NEW YORK
          7788 SCOTT              20 DALLAS
          7839 KING               10 NEW YORK
          7844 TURNER             30 CHICAGO
          7876 ADAMS              20 DALLAS
         EMPNO ENAME          DEPTNO LOC
          7900 JAMES              30 CHICAGO
          7902 FORD               20 DALLAS
          7934 MILLER             10 NEW YORK
    14 rows selected.sarah

  • Fetch Multiple row in repor to insert data with multiple rows .

    Hi Friends
    i want to Insert emp attendance .
    There are 10 emp in company .they enter there arival time in attendance register .
    i have two item
    1--p1_att_date
    2--p1_status
    ATTEN_STATUS are PRESENT by default in selectlist .
    i want, when i enter date in p1_att_date item and Press submit then generate a report with 10 employee and insert in_time in report and when press enter then data with 10 emp should insert in to table ABC .
    i don't want to use tabularform for this .actully i don't want to use ADD_ROW option to ADD attendance for second emp.so please give me some solution.
    Emp_ID     ATTEN_DATE     ATTEN_STATUS      IN_TIME     OUT_TIME
    101     22-JAN-2009     PRESENT          
    102     22-JAN-2009     PRESENT          
    103     22-JAN-2009     PRESENT          
    104     22-JAN-2009     PRESENT          
    105     22-JAN-2009     PRESENT          
    106     22-JAN-2009     PRESENT          
    107     22-JAN-2009     PRESENT          
    108     22-JAN-2009     PRESENT          
    109     22-JAN-2009     PRESENT          
    110     22-JAN-2009     PRESENT     
    My table is :-
    table Name --ABC
    emp_id number;
    atten_date date;
    atten_status varchar2(12);
    in_time timestemp;
    out_time timestemp;
    How can i do this.
    Thanks
    Manoj

    Hi Manoj,
    You can create multiple records easily using a single, simple, form. However, you would surely have to enter in the times individually using a tabular form (otherwise, you would have to use the same form 10 times). You do not have to keep the Add Row option on the page - this functionality can be removed.
    Andy

  • How to submit multiple information in one request - having issues in passing data

    Hello Everyone,
    I tried creating a service that use Deep entity to post some data to SAP. That works well from test service option, but when i am trying to code from java script it is failing and getting" Http Request failed "
    Following is the snippet i use for my testing to pass the data, is there anything wrong with my passing of parameters, please suggest.
    var itemO = [{ID:24, Name:"xyz"}, {ID:45,Name:"tze"}];
    var itemT = [{ID:24, Name:"xyz"}, {ID:45,Name:"tze"}];
    var head = [{ID:24, Name1:"xyz", Name2:"abc"}];
    var headerCont = [{Header:head, HeadItemT:itemT, HeadItemO:itemO}]
    alert(requestUri);
    var request = 
    { headers: {"X-Requested-With": "XMLHttpRequest", 
                    "Accept": "application/atom+xml,application/atomsvc+xml,application/xml", 
                    "Content-Type": "application/atom+xml", 
                    "DataServiceVersion": "2.0" }, 
    requestUri: requestUri, 
    method: "POST", 
    user: "user123", 
    password: "welcome", 
    data: headerCont }; 
    // Send the request and define callback methods.
    OData.read(
    requestUri,
    function (data) {
    var html = "";
    for (var i = 0; i < data.results.length; i++) {
    alert("Hello" + data.results[i].ID;
    document.getElementById("container").innerHTML = html;
    function (err) {
    alert("Error occurred " + err.message);

    var request =
    { headers: {"X-Requested-With": "XMLHttpRequest",
                    "Accept": "application/atom+xml,application/atomsvc+xml,application/xml",
                    "Content-Type": "application/atom+xml",
                    "DataServiceVersion": "2.0" },
    requestUri: requestUri,
    method: "POST",
    user: "user123",
    password: "welcome",
    data: headerCont };
    Is it not sufficient to post or am i missing something. Also i followed the above thread and
    not sure i can use this in my native application as it is not SAP UI5 based.
    oModel = new sap.ui.model.odata.ODataModel('<URL>');
    what will be the way to get the model instance if it is javascript, is there any place where i can refer the documentation for Ajax.  Thank you for the feedback.

  • Abap logic not fetching multiple rows from master data table

    Hi
    I just noticed that my logic is fetching only 1 row from master data table.
    ProdHier table
    PRODHIERACHY            Level
    1000                                  1
    1000011000                      2
    10000110003333              3
    10000110004444              3
    '10000110005555              3*
    logic only fetches one row of level 3, I would like to fetch all level 3 rows.
    DATA: ITAB type table of /BI0/PPROD_HIER,
          wa like line of ITAB.
    Select * from /BI0/PPROD_HIER INTO wa where /BIC/ZPRODHTAS = 3.
    IF wa-PROD_HIER(10) = SOURCE_FIELDS-PRODH2.
         RESULT = wa-PROD_HIER.
         ELSEIF wa-PROD_HIER(5) = SOURCE_FIELDS-PRODH1.
         RESULT = wa-PROD_HIER.
    ENDIF.
    ENDSELECT.
    thanks

    Hi,,
    I have implemented the logic in end routine and it still reads only the first row.
    I am loading only PRODH1 and PROD2 but now I want to get all values of PRODH3 from the master data table.
    The first 5 values are PRODH1 and first 10 values belongs to PRODH2.
    Whenever PRODH2 = 1000011000 in source I should get the following values
    10000110001110
    10000110001120
    10000110001130
    I have multiple rows of 1000011000 so my result should be
      1000011000               10000110001110
      1000011000               10000110001120
      1000011000               10000110001130
    DATA: ITAB type table of /BI0/PPROD_HIER,
    wa like line of ITAB.
    data rp type _ty_s_TG_1.
    Select  * from /BI0/PPROD_HIER INTO table itab where /BIC/ZPRODHTAS = 3.
    LOOP AT RESULT_PACKAGE INTO rp.
    read table itab into wa with key PROD_HIER(5) = rp-PRODH1.
    IF sy-subrc EQ 0.
         rp-PRODH3 = wa-PROD_HIER.
         ELSE.
    read table itab into wa with key PROD_HIER(10) = rp-PRODH2.
    IF sy-subrc EQ 0.
         rp-PRODH3 = wa-PROD_HIER.
    ENDIF.
    ENDIF.
    MODIFY RESULT_PACKAGE FROM rp.
    ENDLOOP.
    Edited by: Bhat Vaidya on Sep 10, 2010 11:27 AM
    Edited by: Bhat Vaidya on Sep 10, 2010 11:37 AM

  • ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate

    ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate a form.
    1) Created a FORM on EMP using the wizards. This creates an AUTOMATIC ROW FETCH
    TABLE NAME - EMP
    Item Containing PRIMARY KEY - P2099_EMPNO
    Primary key column - EMPNO
    By default the automatic fetch has a ‘Process Error Message’ of ‘Unable to fetch row.’
    2) Created a HTML region. Within this region add
    text item P2099_FIND_EMPNO
    Button GET_EMP to submit
    Branch Modified the conditional branch created during button creation to set P2099_EMPNO with &P2099_FIND_EMPNO.
    If I then run the page, enter an existing employee number into P2099_EMPNO and press the GET_EMP button the form is populated correctly. But if I enter an employee that does not exist then I get the oracle error ORA-01403: no data found and no form displayed but a message at the top of the page ‘Action Processed’.I was expecting a blank form to be displayed with the message ‘Unable to fetch row.’
    I can work around this by making the automated fetch conditional so that it checks the row exists first. Modify the Fetch row from EMP automated fetch so that it is conditional
    EXIST (SQL query returns at least one row)
    select 'x'
    from EMP
    where EMPNO = :P2099_EMPNO
    But this means that when the employee exists I must be fetching from the DB twice, once for the condition and then again for the actual row fetch.
    Rather than the above work around is there something I can change so I don’t get the Oracle error? I’m now wondering if the automatic row fetch is only supposed to be used when linking a report to a form and that I should be writing the fetch process manually. The reason I haven’t at the moment is I’m trying to stick with the automatic wizard generation as much as I can.
    Any ideas?
    Thanks Pete

    Hi Mike,
    I've tried doing that but it doesn't seem to make any difference. If I turn debug on it shows below.
    0.05: Computation point: AFTER_HEADER
    0.05: Processing point: AFTER_HEADER
    0.05: ...Process "Fetch Row from EMP": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:EMP:P2099_EMPNO:EMPNO
    0.05: Show ERROR page...
    0.05: Performing rollback...
    0.05: Processing point: AFTER_ERROR_HEADER
    I don't really wan't the error page, either nothing with the form not being populated or a message at the top of the page.
    Thanks Pete

  • Any one else having trouble w/Safari frequently crashing the last week or two?  Any cures?  Mine is 4.1.3  Thanks

    Any one else having trouble w/Safari frequently crashing the last week or two?  Any cures?  Mine is 4.1.3  Thanks

    Most Safari problems are due to unsupported plug-ins, add-ons, custom toolbars, or "input manager" software, some of which you may not know you have acquired.
    You best bet is to ask in the Safari forums:
    Safari
    Save a crash report and post it in that forum. People there are amazing at decoding those reports and finding the culprits,

  • Still problem with single-row subquery returns more than one row

    //i did join each table but query runs forever and fail. looks Cartesian join so comes up the following SQL
    the following query has a problem. would you please help me, please
    Select pe.expense_id
    ,PE.CODE
    ,PE.PROJECT_ID
    ,PE.LDATE
    ,PE.INAMOUNT pe_amount
    ,(SELECT TRX.INV_AMOUNT FROM TRXEXPENSES TRX
    WHERE PE.EXPENSE_ID=TRX.EXPENSE_ID) AS invamount
    ,(SELECT RE.AMOUNT FROM REEXPENSES RE WHERE
    PE.EXPENSE_ID=RE.EXPENSE_ID) AS recogamount
    ,(SELECT MLE.M_AMOUNT FROM MATEXPENSES MLE
    WHERE PE.EXPENSE_ID=MLE.EXPENSE_ID) AS matamount
    from EXPENSES PE
    where pe.expense_id=5600
    group by expense_id,CODE,PROJECT_ID,LDATE,inamount
    //get error message
    ora-01427:single-row subquery returns more than one row
    //check database
    select expense_id,count(*) from TRXEXPENSES
    where expense_id in(select expense_id from
    expenses)
    group by expense_id
    having count(*)>1
    //here is duplicate record a lot
    EXPENSE_ID     COUNT(*)
    4176     2
    5600     3
    9572     2
    9573     2
    9574     2

    Yes, Expense_id has so many returning rows for trx.inv_amount from trxexpenses in subquery.
    I want to show Expense_id with retruning rows using the above query.
    ex)The result of the query is like that;
    Expense_ Id project_id Ldate InvAmount RecogAmount MatAmount
    5600 123 3/2/02 $100(InvAmount)
    5600 432 3/12/02 $200(recogAmount)
    5600 432 4/12/02 $250(MatAmount)
    Thank you so much
    Message was edited by:
    user524064
    Message was edited by:
    user524064

  • HT1222 Having a problem with iMessage on my iPad mini.

    Bought my Ipad from the US &amp; presently using it in Nigeria.I'm having a problem with iMessage on my iPad mini, I've been trying to activate it and I've been receiving an error message saying my password is incorrect which I'm pretty sure isn't because I still buy apps on the iTunes Store with it. What can I do?

    Have you looked at some of the 3rd party apps that will do this for you? Some of them are iPodAgent for Windows, copypod, yamipod. Most of them can be found on versiontracker.com, if not try to "google" them. Also, if you have purchased music, you can now import that off your iPod to your new system. Hope this helps.

  • OCI - Array-Fetch vs. One-row-per-fetch

    Hello guys,
    i have a question about the OCI and the possibilities about fetches.
    Is it possible to get only one row per fetch without setting the array size to 1?
    I have a third party application that shows this behaviour which i have rebuild in sqlplus.
    SQL> create table mytest (a number);
    SQL> begin
      2  for i in 1 .. 1500 loop
      3  insert into mytest values (i);
      4      end loop;
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL> commit;
    Commit complete.
    SQL> set autotrace traceonly;
    -- Now with the default array size of 15 with sqlplus
    SQL> select * from mytest;
         118  consistent gets
         101  SQL*Net roundtrips to/from client
         1500  rows processed
    -- Now with a bigger array size (150)
    SQL> set arraysize 150
    SQL> select * from mytest;
         17  consistent gets
         11  SQL*Net roundtrips to/from client
         1500  rows processed
    -- Now the behaviour of the third party application
    SQL> set arraysize 1
    SQL> select * from mytest;
         757  consistent gets
         751  SQL*Net roundtrips to/from client
         1500  rows processed
    SQL> set arraysize 2
    SQL> select * from mytest;
         757  consistent gets
         751  SQL*Net roundtrips to/from client
         1500  rows processedThe third party application is a c program and i can not take a look at the code.
    So as you can see the consistent gets are the same with arraysize 1 and 2. The sql statement which is executed of the c-program is returning a huge amount of data and it seems like it is run with arraysize 1 or 2 or it is executing a different OCI call.
    So now is my question:
    Which methods does the OCI interface provide to recieve (fetch) data?
    - Is it only array fetching (like sqlplus do) or is it possible to return only one row per fetch with a specific call.
    I can speed up the query by setting the bigger array-size in sqlplus .. but i want to point the programers to the possibilities with the OCI.
    Thanks and Regards
    Stefan

    The following call in OCI can be used to control the fetched rows
    MAX_PREFETCH_ROWS is number of rows you want to fetch in one round trip.
    (void) OCIAttrSet((dvoid *)DBctx->stmthp, (ub4) OCI_HTYPE_STMT,
    (dvoid *)&MAX_PREFETCH_ROWS,(ub4)sizeof(MAX_PREFETCH_ROWS),(ub4) OCI_ATTR_PREFETCH_ROWS, DBctx->errhp);

  • SQL*Plus two fetches for getting one row.

    Hi all.
    I have tested following script.
    alter session set events '10046 trace name context forever, level 12';
    select * from dual;And achieved such results (extract from .trc file).
    SQL*Plus: Release 11.2.0.1.0; (Oracle Version 10.2.0.4.0, 11.2.0.1.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        2      0.00       0.00          0          0          0           1
    total        4      0.00       0.00          0          0          0           1SQL*Plus: Release 8.1.7.0.0; (Oracle Version 8.1.7.0.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      2      0.00       0.00          0          0          0           0
    Fetch        2      0.00       0.00          0          1          4           1
    total        5      0.00       0.00          0          1          4           1Allround Automations PL/SQL Developer 8.0.4; (Oracle Version 10.2.0.4.0, 11.2.0.1.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          0          0           1
    total        3      0.00       0.00          0          0          0           1Allround Automations PL/SQL Developer 8.0.4; (Oracle Version 8.1.7.0.0)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          0          1          4           1
    total        3      0.00       0.00          0          1          4           11) I can't figure out why sqlplus does TWO fetches for getting ONE row (instead of pl/sql developer).
    8i raw trace
    PARSING IN CURSOR #1 len=31 dep=0 uid=0 oct=3 lid=0 tim=0 hv=3549852361 ad='4a0155c'
    select 'hello world' from dual
    END OF STMT
    PARSE #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=0
    BINDS #1:
    EXEC #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=0
    WAIT #1: nam='SQL*Net message to client' ela= 0 p1=1111838976 p2=1 p3=0
    FETCH #1:c=0,e=0,p=0,cr=1,cu=4,mis=0,r=1,dep=0,og=4,tim=0
    WAIT #1: nam='SQL*Net message from client' ela= 0 p1=1111838976 p2=1 p3=0
    FETCH #1:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,tim=0
    WAIT #1: nam='SQL*Net message to client' ela= 0 p1=1111838976 p2=1 p3=0
    WAIT #1: nam='SQL*Net message from client' ela= 0 p1=1111838976 p2=1 p3=0
    STAT #1 id=1 cnt=1 pid=0 pos=0 obj=195 op='TABLE ACCESS FULL DUAL '11g raw trace
    PARSING IN CURSOR #3 len=30 dep=0 uid=96 oct=3 lid=96 tim=1581355246985 hv=1158622143 ad='b8a1bcdc' sqlid='5h2yvx92hyaxz'
    select 'hello world' from dual
    END OF STMT
    PARSE #3:c=0,e=130,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=1388734953,tim=1581355246984
    EXEC #3:c=0,e=40,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=1388734953,tim=1581355247154
    WAIT #3: nam='SQL*Net message to client' ela= 7 driver id=1111838976 #bytes=1 p3=0 obj#=-1 tim=1581355247252
    FETCH #3:c=0,e=18,p=0,cr=0,cu=0,mis=0,r=1,dep=0,og=1,plh=1388734953,tim=1581355247324
    STAT #3 id=1 cnt=1 pid=0 pos=1 obj=0 op='FAST DUAL  (cr=0 pr=0 pw=0 time=0 us cost=2 size=0 card=1)'
    WAIT #3: nam='SQL*Net message from client' ela= 193 driver id=1111838976 #bytes=1 p3=0 obj#=-1 tim=1581355247735
    FETCH #3:c=0,e=2,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,plh=1388734953,tim=1581355247800
    WAIT #3: nam='SQL*Net message to client' ela= 5 driver id=1111838976 #bytes=1 p3=0 obj#=-1 tim=15813552478552) Is there any possibility to view data provided by each fetch?
    Thanks in advance!
    P.S.
    SQL> sho arraysize
    arraysize 15

    Thanks.
    I have tested two statements.
    select 'hello world' from dual where 1=1;
    select 'hello world' from dual where 1=0;When query returns no data, there is only one SQL*Net roundtrip (and one fetch)
    SQL> set autot on statistics
    SQL> select 'hello world' from dual where 1=1;
    'HELLOWORLD
    hello world
    Statistics
              0  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            528  bytes sent via SQL*Net to client
            492  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processed
    SQL> select 'hello world' from dual where 1=0;
    no rows selected
    Statistics
              0  recursive calls
              0  db block gets
              0  consistent gets
              0  physical reads
              0  redo size
            329  bytes sent via SQL*Net to client
            481  bytes received via SQL*Net from client
              1  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              0  rows processedBut in both cases i found in client trace this sequence of bytes:
    ] nsprecv: 00 00 36 01 00 00 00 00  |..6.....|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 90 19 43 13 00 00  |....C...|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 00 00 00 00 00 00  |........|
    ] nsprecv: 00 00 19 4F 52 41 2D 30  |...ORA-0|
    ] nsprecv: 31 34 30 33 3A 20 6E 6F  |1403:.no|
    ] nsprecv: 20 64 61 74 61 20 66 6F  |.data.fo|
    ] nsprecv: 75 6E 64 0A              |und.    |In first case - it was in 2nd packet and in second case (query returns no data) - part of 1st packet.

  • Problem with one row filter - images are messed up

    I am trying to use Theme 15 and have found that the one row filter is messed up. Some of the image components are repeated over and over creating a very large filter region.
    Look here to see what I mean.
    I have tried to edit the template, but that didn't work.
    Thanks, Tony

    Well I put an example up on apex.oracle.com and found that the problem wasn't there.
    I had modified my page template to include a second stylesheet. When I removed the reference to the second style sheet the filter row returned to normal. Odd.
    I guess I need to dig into why this is the case now, but at least I know where to look.
    Thanks, Tony
    Edit: the problem was that my second stylesheet had "spacer" defined in it which was over-ridding the properties of the apex-finder class.
    .spacer
    {height: 350px;
    background-color: #F2F2f0;
    color: #CC6600;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 85%;
    vertical-align: middle;
    padding: 15px 15px;
    }Removing this from my second stylesheet solved the problem
    Edited by: T on Dec 5, 2008 8:53 AM

  • Problem in fetching row code...

    Hi there,
    I have a bit of a problem setting up automatic row processing. The Apex processing is causing an error, but I'm not sure what PL/SQL code is being run (obviously, I don't have access to the Apex code) and all I get is the error following:
    0.03: Processing point: AFTER_HEADER
    0.03: ...Process "Fetch Row from VMS2_VU_VEHICLE_DETAILS": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:VMS2_VU_VEHICLE_DETAILS:P21_ID:ID
    0.05: Show ERROR page...
    0.05: Performing rollback...
    0.05: Processing point: AFTER_ERROR_HEADER
    and then the following exception report on the page:
    ORA-06550: line 1, column 17: PL/SQL: ORA-00936: missing expression ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignored
    Can anyone tell me how I can diagnose the problem?
    please ,
    Thanks in Advance
    Ahmed ,

    Go to apex.oracle.com, use the Request a Workspace link, submit a request, wait for approval, then import your app into your workspace.
    Create a table in your workspace schema using the SQL Workshop so that you can get the same error message when you run that form page that's giving you trouble.
    When you get to that point, just tell me your workspace name and application ID.
    Scott

Maybe you are looking for

  • Modifyg data type in view

    Dear all I need a solution to modify the data type in view.I am herewith the example Create table T1(F1 Number(20)) create materialized view t1_view as select f1 from t1; sql>desc t1_view ------------------=------ F1 NUMBER(20) I need the output like

  • How to have Infopath form use Sharepoint Domain credentials

    I have built a for in infopath which is published to a library on Sharepoint 2013. This form is filled out by certain users and when its completed it gets moved into a subfolder. We then provide a link to a client who has a domain account with restri

  • How to hide the canvas

    At times I just want to deal with the time line and hide the canvas. Is there a way to do this?  I imagine it must be a simple thing that I'm just overlooking. Thanks. david

  • Integration between organizational management and personnel administration

    Dear Sirs/Madams, I am trying to integrate organizational management and personnel administration to have see positions, jobs, and units which are assigned in PPOME. I made some configuration in T77SO and correct the needed integration in PLOGI posit

  • MacBook Pro with Retina Display Image

    Hello, I have built an image I deploy to my Macs (the image was built on a late 2011 MacBook Pro 17"). Will this image work with the retina MacBook Pro? Thanks, Steven