In Report How To Execute Query Two Times in One Layout

hi
All
In My Report i have creating on main Query and then query run two type with Defrent Parameter how is possible in Oracle Report 6i
example
my Query is
For Example First time query run defrent parameter and again run some other parameter in same layout help me
select decode(art_mkt,'1',art_brc,art_mkt) art_mkt,
&f1 art_prd,
sum(nvl(art_amt,0)) art_amt,
     sum(nvl(art_net,0)) art_net,
nvl(substr(art_vou_ser,2,1),' ') art_mfg_type,
nvl(substr(art_vou_ser,3,1),' ') art_src_code
from art
where art_rec_ty = 58
and art_ml in (:art_ml1,:art_ml2)
and art_dt between to_date(:start_dt,'dd-mm-yyyy')
and to_date(:end_dt,'dd-mm-yyyy')
and art_vou_dt between to_date(:dt1,'dd-mm-yyyy')
and to_date(:dt2,'dd-mm-yyyy')
group by decode(art_mkt,'1',art_brc,art_mkt),
substr(art_vou_ser,2,1),
substr(art_vou_ser,3,1),
&g1
order by decode(art_mkt,'1',art_brc,art_mkt),
substr(art_vou_ser,2,1),
substr(art_vou_ser,3,1),
&g1

That would be a great question in the [url http://forums.oracle.com/forums/forum.jspa?forumID=84]Reports Forum wouldn't it ;)
Tony

Similar Messages

  • Why JRC executes query two times? (reports.queryengine(?:?) - Executing query: ...)

    Hello! Using JRC. While creating the report for viewing, I noticed one interesting thing. Why JRC executes query two times AND first time is executed with default parameters AND if default parameters are NULL the query can be invalid (even if it is marked to convert all database NULLs to defaults in Report Options).
    <!break>
    1. Why do you need to execute query the first time with these default parameters, which are later set to the others? We need to make some valid default parameters to make everything work. Also it is not efficient to execute unnecessary query.
    2. If I'm wrong could you explain please? If I'm right, is it a bug and when do you fix it?
    Waiting for answer,
    Anton Stalnuhhin
    Java-developer, Webmedia AS

    .

  • Only firefox executing mysql query two times. but other browser works perfect why?

    i am a web developer. and i am facing a problem only with firefox. every time i use MySQL query in my php code fire fox execute it two times. but same query is working fine on other browsers.

    Yes, the problem is seen without extensions and also in safe mode.
    But, I am starting to think that firefox is running low on memeory or CPU.
    Without extensions the possibility of failing is 1 in 3.
    I am still unable to explain why closing the browser or aborting the request can cause the stuck request to immediately reach the server.
    Is there a way to collect Firefox logs and post it here ?

  • How to measure query run time and mnitor performance

    Hai All,
                   A simple question. How to measure query run time and mnitor performance? I want to see the parameters like how long it took to execute, how much space it took etc.
    Thank you.

    hi,
    some ways
    1. use transaction st03, expert mode.
    2. tables rsddstat*
    3. install bw statistics (technical content)
    there are docs on this, also bi knowledge performance center.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3f66ba90-0201-0010-ac8d-b61d8fd9abe9
    BW Performance Tuning Knowledge Center - SAP Developer Network (SDN)
    Business Intelligence Performance Tuning [original link is broken]
    also take a look
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/31b6b490-0201-0010-e4b6-a1523327025e
    Prakash's weblog on this topic..
    /people/prakash.darji/blog/2006/01/27/query-creation-checklist
    /people/prakash.darji/blog/2006/01/26/query-optimization
    oss note
    557870 'FAQ BW Query Performance'
    and 567746 'Composite note BW 3.x performance Query and Web'.

  • How to get query execution time without running...?

    Hi ,
    I had one requirement .... as follows ......
    i had 3 sql statements . I need to execute only one sql which execution time is very less.
    Can any one help me , how to get query execution time without running that query and without using explain plan..?
    Thanks,
    Rajesh

    Kim Berg Hansen wrote:
    But you have ruled out explain plan for some reason, so I cannot help you.OP might get some answers if query was executed before - but since restart. Check V$SQL dynamic performance view for SQL_TEXT = your query. Then ROUND(ELAPSED_TIME / EXECUTIONS / 1000000) will give you average elapsed time.
    SY.
    Edited by: Solomon Yakobson on Apr 3, 2012 8:44 AM

  • I have two time capsules, one for work and one for home, how do I set up the work time capsule to only back up my work files?

    I have two time capsules, one for work and one for home, how do I set up the work time capsule to only back up my work files?  Also, how do I add co-workers to my work time capsule and wife to my home time capsule?  Thank you!

    You cannot have two different TC setups.. at least until Mountain Lion.. it did introduce some changes but I am not sure if you can setup two different configurations for TM.. you can use two different devices to back up to. I doubt this will help you.
    You might be better using a real backup software.. superduper, CCC, chronosync etc.
    The TC by default is available to any Mac in the network to do backups. TM will sort itself out and put each computer on a different backup. These are kept in separate sparsebundles.. so that is all fine.

  • How do I combine two regents into one in Logic Pro Arrange?

    how do I combine two regents into one in Logic Pro Arrange?

    Thanks for your input kcstudio. I would still be left with 2 regions although one after the other, on one track.
    I am trying to save steps of the way I am combining the info of 2 seperate regions into one: bouncing the 2 tracks then re-importing that audio back into the project. It would save a lot of time if you could just drag one region on top of the other
                                W.W.

  • Re: How to create More two class with one object

    haii,
             i have small information How to create More two class with one object,
    bye
    bye
    babu

    Hello
    I assume you want to create multiple instance of your class.
    Assuming that you class is NOT a singleton then simply repeat the CREATE OBJECT statement as many times as you need.
    TYPES: begin of ty_s_class.
    TYPES: instance   TYPE REF TO zcl_myclass.
    TYPES: end of ty_s_class.
    DATA:
      lt_itab      TYPE STANDARD TABLE OF ty_s_class
                     WITH DEFAULT KEY,
      ls_record  TYPE ty_s_class.
      DO 10 TIMES.
        CLEAR: ls_record-instance.
        CREATE OBJECT ls_record-instance.
        APPEND ls_record TO lt_itab.
      ENDDO.
    Regards
      Uwe

  • This VI is part of a LabVIEW class. No part of the class is executable at this time because one of the member VIs is missing. However I am not missing a vi

    I only have 1 vi and its not missing.  The 1 vi claims the owning library has blocked the execution of the VI.  The class has the error "This VI is part of a LabVIEW class. No part of the class is executable at this time because one of the member VIs is missing. Find the missing member VIs on disk and load them into memory or delete them from the class definition in the project tree."
    But there is only 1 member vi!!??
    I had lots of other vi's as part of this class but somehow this class got botched with this error.  I removed all vi from the directory and from the class definition and re made just the one assessor vi and still got the error message.
    I have attached my ridiculously simple class.
    I have other classes that work fine but somehow this one seems to have gotten botched.  I really need to understand what happened here and how to recover/avoid this error or I will not have the confidence to develop large applications using classes.
    In other words...PLEASE HELP!
    Solved!
    Go to Solution.
    Attachments:
    Tree class.zip ‏14 KB

    I cannot tell you why.  Only what it is missing.
    If you look in the Tree.lvclass file using something like Notepad, towards the bottom you will see some XML that looks like:
    <Item Name="Untitled 1" Type="VI">
            <Property Name="NI.ClassItem.ConnectorPane" Type="Bin">#1#!!!!!!!)!"1!&amp;!!!-!%!!!@````]!!!!"!!%!!!$H!!!!#1!-1#%'=X2B&gt;(6T!!!,1!-!"'.P:'5!!""!-0````]'=W^V=G.F!!!71&amp;!!!Q!!!!%!!AFF=H*P=C"P&gt;81!"!!!!#*!=!!?!!!/$&amp;2S:75O&lt;(&lt;'&amp;T=Q!!#&amp;2S:75A&lt;X6U!!!A1&amp;!!!Q!!!!%!!B.F=H*P=C"J&lt;C!I&lt;G]A:8*S&lt;X)J!#"!=!!?!!!/$&amp;2S:75O&lt;(&lt;'&amp;T=Q!!"V2S:75A;7Y!0!$Q!!Q!!Q!%!!1!"1!%!!1!"!!%!!9!"!!%!!=#!!"Y$1A!!!!!D1M!!!!!!!!!!!A!!!!!!*!!!!!!!1!)!!!!!!</Property>
            <Property Name="NI.ClassItem.ExecutionSystem" Type="Int">-1</Property>
            <Property Name="NI.ClassItem.Flags" Type="Int">0</Property>
            <Property Name="NI.ClassItem.IsStaticMethod" Type="Bool">false</Property>
            <Property Name="NI.ClassItem.MethodScope" Type="UInt">1</Property>
            <Property Name="NI.ClassItem.Priority" Type="Int">1</Property>
            <Property Name="NI.ClassItem.State" Type="Int">1342841344</Property>
        </Item>
    Delete this block.  Make a backup of the file before you do that.  Start up LV and load the class again.
    My guess is that something probably did not save properly when LV shut down.  I have a large OO project and have had more than one occasion where I have corrupted the project but could ot figure out why. 
    Today I had a similar message which is why your post caught my eye.  In doing some troubleshooting I found that it no longer 'knew' where one of my files was but it never complained when it loaded the project.  I went back to the original project and tried to open that vi from the project.  That is when it told me that the vi was not in the expected location, do you want to correct it.  I said yes and all was better. 
    Trying to open all of the VIs in the class might have worked, but this can be cumbersome to say the least in a large class.
    Good luck,
    Kurt

  • How do I sync two iPhones to one computer?

    How do I sync two iPhones to one computer?

    if you want to keep same content on both you can sync them to same itune account
    else create different itunes account for the other phone
    syncing with itunes
    http://support.apple.com/kb/HT1386

  • In my class i am suppose to do a before and after shot, how do i have two photos on one page

    before and after shots..how do i put two photos on one page?? please help

    Good day!
    As Photoshop is not a page layout application but primarily image editing software the concept of "page" has limited relevance.
    Anyway, you could increase the canvas (Image > Canvas Size) and place the other image (File > Place …) or drag and drop it.
    Or create a new image and place both images. Whether doing so as Embedded or Linked Smart Objects makes more sense depends on your workflow, I guess.
    File > Automate > Contact Sheet II would be another option.
    Regards,
    Pfaffenbichler

  • HT1347 How do I run two libraries from one computer?

    How do I run two libraries from one computer? One library is on the computer's hard drive, the second library is on an external hard drive. The computer that had the external hard drive crashed and I need to fix the iTunes library on it. How can I do this without corrupting the library on my internal hard drive?

    Launch iTunes with the Shift key held down and either create a new library or choose the one on the external drive. Any rented movies downloaded from another computer won't play.
    (81212)

  • How do i play two sound file one after another

    Hi All,
    How do i play two sound file one after another using single AudioClip Component?.
    Advance in thanks
    Manivel

    AudioClip gives you very little control over what happens to the sound, it also isn't capable of playing long clips or waiting until a clip ends. It will play multiple clips over top of each other.
    To do what you want you should use the facilities of javax.sound. Here's a post with an example: http://forum.java.sun.com/thread.jspa?forumID=513&threadID=450768
    There is also a tutorial, but its example fails for long clips.

  • How can I make two Canvas in one Window ?

    I want in the main window ( that is only window in the module ) press button to appear another canvas.
    but that I can't make it , I just made two window until the another window appear.
    that's all
    I tried with :-
    show_view('canvas_name');
    but didn't work with me Sad
    the another canvas made it stacked Canvas .... but also didn't work Sad
    so please , How can I make two Canvas in one Window only ?
    and thanks in advance

    this code work with me :-
    show_view('canvas name');
    go_block(block_name');
    execute_query;
    for HIDE button u have to write...
    hide_view('canvas_name');
    but
    that not exactly what I want ...... I want the stacked canvas appear like second window , and could control on it like window .... it could be possible ????

  • TS1424 Hello! Tell me, why I paid two times for one game? Stray Souls: Dollhouse Story - Collector's Edition HD, Collector's Edition???

    Hello! Tell me, why I paid two times for one game? Stray Souls: Dollhouse Story - Collector's Edition HD, Collector's Edition???

    Check your purchase history. The second charge may be for unlocking someting in the game or might be in-game items.

Maybe you are looking for

  • No Data Found for SQL query

    Hello, I have a simple SQL query in a report. select       null as "Complete",          a.col1,          a.col2,          a.col3,          a.col4,       b.col2 from      TableA a, TableB b where   a.id = b.idThere is a known issue in apex 4.0 that is

  • Create row as next row on click of add another row button not on top of it

    My af:table is based on a transientVO (all the attributes are transient) This is just for data entry and not for data retrieval So i have placed add another row button on my af:table After i enter data in the first row and click add another row butto

  • Installing driver hp deskjet 1180c using window 8

    Is it any compactibility driver that i can use or any update driver. please advised

  • New to macs and need help with os9.2

    hi guys im new to mac,s as in never used one before.i got a powerbook g4 running on mac os 9.2 active enabler mac os rom 9.7.1 virtual mem is off built in mem 768mb processor info powerpc g4 machine speed 666mhz(666-866mhz) have 1 40 gig hd 6 % full

  • Reading Excel data through java servlets

    I am doing a project in jsp and servlet. During the project i have to read some excel data from the excel sheet and store them to DB2 database. While reading from the data from the excel sheet a problem occurred. I have used the poi package to read t