Two separate queries in one report

Hi Gurus,
Is it possible to make two separate queries in the same worksheet (I need to have a column in my report from a different query from this report). As we can have more than one query in Oracle Reports, similarly, is it possible to have more than one query in Oracle Discoverer Report.
Thanks,
Pooja

The functionality your looking for is not available in Discoverer today. You can have two separate worksheets within Discoverer, one to run each query. Another option is only available in Discoverer Desktop, it is called a subquery which allows you to run one query and then pass the results as a parameter into your workbook. However, I don't believe either of those options resolve the problem your looking to solve.
Matt Topper
TUSC, The Oracle Experts
[email protected]

Similar Messages

  • Two queries in one report?

    I have Three tables like
    Device_table columns are
    d_id, d_name, date
    Software_table
    sw_id, software, version, serial_no, sw_type, d_id(foreign_key)
    hardware_table
    hw_id, hardware, specification, d_id(foriegn_key)
    now in reports i want to attach both hardware and software, I have made two quires like
    SELECT d.d_name, sw.software, sw.version, sw.sw_type from
    device_table d, software_table sw
    where d.d_id = sw.d_id
    and second query is
    SELECT d.d_name, hw.hardware, hw.specification
    from device_table d, hardware_table hw
    where d.d_id = hw.d_id
    Now my problem is that how can I add both queries in one report so that i can get a list of software and hardware attached to one device.
    Regards
    Maz

    I want to see the report as follow.
    d_name: CPU-1
    date: -----------
    Software installed:
    sw_id, software, version, serial_no, sw_type
    (list of softwares attached, can be more then one)
    Hardware attached:
    hw_id, hardware, specification (same like software list, it will contain hardware list attached to specific device),
    Please if you can help me that how will i make a query for this.
    Thanks and Regards
    Maz

  • Multiple Queries in one Report

    What is the best way to show the data of 2 queries in one report?

    Hi Frank,
    It purely depends on the reporting needs I would say. You could simply add the two queries, create joins in Crystal Reports and drag the required fields in the details section.
    The joins in this case, however, would be executed by Crystal Reports, unlike when the report is created off a Relational database.
    -Abhilash

  • OBIEE: Link Two Separate Queries Together

    Hi,
    I am trying to link two separate queries together in BIEE.
    I have a query that will give me the sales value in January 2012 (monthly query)
    But I would need to use the sales value of January 2012 to help derive the weekly sales value in another query (weekly query).
    How would you link up two queries together?
    I tried using union but it doesnt seem to be working.
    Thanks.
    Bill

    Hi Billy,
    Sure, My pleasure. Here are the basic steps what you could go through.
    1. Create an analysis with your Month (January) and Sales.
    2. Save this analysis as Report1.
    3. Create another analysis with Week and Sales.
    4. Create a filter on column:Sales using the option 'Based on Another Analysis'. The analysis editor will provide you an option to browse your other analysis which you want this analysis to be based on and just click on this browse button, and navigate to and select Report1.
    5. Once you have selected Report 1 through browse option, you get down in the same pop-up the relationship and use values in column.
    So sample entries in this pop-up might look like
    Column : Sales
    Operator : is based on results of another analysis
    Saved Analysis : /My Folder/Report1
    Relationship : is equal than
    Use values in Column : Sales
    6. If you run this analysis, you could get all weekly sales figures which are equal to the january sales figures.
    Hope this helps.
    Thank you,
    Dhar

  • Chart from data with two bex queries in crystal reports 4.0 for enterprise

    Hi,
    I'm fairly new to crystal reports and I have a requirement to show the data from 2 bex queries in one single cross table. is it possible ?
    after getting it i should be able to create chart with that data
    Eg: my table would be something like below :
                   calendar day
    Input     : 12      34     50     60
    Output  :  09     23     19     57
    Input Data will be coming from one bex query
    Out put data comes from another bex query
    is it possible to merge the dimensions and then work on ????         
    any help is much appreciated

    Hi Tanveer,
    The only way you can add two BEx queries in a report is using a Subreport. The First BEx query goes in the Main Report and the second one goes in the Subreport.
    You'll not be able to add the dimensions and measures from these two BEx queries in a Crosstab anyway. Perhaps, you could create a mock crosstab and send values (all rows) from the Main Report to the Subreport as a string however, I can see that it's going to get complex.
    -Abhilash

  • HT5620 How can I set up two separate accounts on one iPad?

    How can I set up two separate accounts on one shared iPad?

    The iPad is meant to be a single user device.
    It is possible to use multiple ID's on an iOS device, but when you switch ID's and download content with another ID, you associate the device with that ID for 90 days and lock yourself out of the other ID for that 90 day period.
    So while it is possible, it's not advisable.

  • Getting two selection screen in one report

    Hello Friends,
    I am Making report, In my report on first screen i have given two pushbutton, like this :
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    PARAMETERS : p1_but RADIOBUTTON GROUP g1,
                             p2_but RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK b2.
    now i want when user click on any one pushbutton it shows another selection screen, whose select options are:
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-000.
    SELECT-OPTIONS: so_erdat FOR lf_date,
                    so_vbeln FOR lf_vbeln MATCHCODE OBJECT zvbeln..
    SELECTION-SCREEN END OF  BLOCK b1.
    Please guide me can i use two selection screen in one report?, If yes then how can I use? Please revert back me as soon as possible.........

    Hi,
    you can achieve it only by using two USER_DEFINE_SELECTION SCREEN.
    For detail check the link
    http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dba83d35c111d1829f0000e829fbfe/content.htm
    Regards,
    anirban

  • Two Bex Queries in one web template - drill-down should affect both queries

    Hi,
    I would like to have two Bex Queries in one web template with the same selection screen and free characteristics. When drilling-down on characteristics I want both queries to break down the figures. I cannot get the last part to work. We are using version 7.0.
    Any ideas how to make this work?
    BR,
    Tobias

    Hi,
    Refer these links it may be usefulin you case.
    WAD Pdf
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/749a4622-0a01-0010-36bf-b6b30a2a3a22
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/301db65c-f221-2c10-a9a1-f2236e3cea2c

  • Two data Models in one report

    Hi There,
    I have created two data model for my report. The queries have no relation to each other. Is that possible to put both these in one report with same user parameters. or do u have any better suggestion to do this.
    For Example:
    select count(*) from (select name "Worker" from person
    where start_date between (:P_1) and (:P_2)
    select count(*) from (select name "ADMIN PERSON" from admin
    where start_date between (:P_1) and (:P_2)
    Thanks

    Hi Jagjit,
    I created one report with 2 SQL queries:
    select count(*) from employees where department_id < :P_1
    and
    select count(*) from departments where department_id < :P_1
    And it worked fine. So your report should be OK. By the way, a report has just one "Data Model". It is possible to have 2 or more "Queries" in the data model.
    Navneet.

  • I want to use two separate Lion Time Machine backups and use them to create two separate profiles on one new computer

    This is something I need to do temporarily but I must do it. 
    I have an iMac 27 (end of year 2009) I5.  It has 1 TB internal and I want to replace it with a 2 TB internal.
    I have time machine backups on an external hard drive that has been connected via Firewire. 
    I have another iMac (my son's)Imac 24 Intel Core 2 Duo that has it's own separate Time machine backup to it's own separate firewire connected external drive.  Both machines are completely up to date with the latest version of Lion and all other necessary software updates.
    When the internal hardrive is replaced - I want to use my latest time machine backup to create one profile on the imac and then use my son's latest time machine back up for a second profile.  The end goal being to have everything from my current set up ie: apps, documents, itunes, etc existing in one profile and everything in my son's current set up existing in the other profile.   We can both be administrators for the time being as well.  I should note even though we both have some of the same apps, we both also have other apps that the other does not.
    My profile will be using about 900 gigs of total space.
    My son's profile will be using about 250 gigs of total space.
    This is temporary until the new iMac is released.  Then I will want to transfer my profile to that leaving my son's intact on the iMac 27 I5.
    I realize that during the temporary period that Time Machine will be making backups of this entire two profile setup, which I am now understanding as I write this will create a new issue for me when I want to transfer only my profile to the new computer as well.  But one bridge to cross at a time, I guess.
    I need to do this because we must bring his current computer to my father - as his iMac G5 is inoperable.  We have been doing this round robin hand me down in our family since IMac DV special edition :-)
    Any insight on this would be greatly appreciated.  And any other suggestions as well.
    Thanks very much.

    Hey Shootist000,  Thanks for the replies.  First off, I am actually okay if we both have each other applications so I am not concerned about that. It is still unclear from what you have said as to whether I can in fact, use these two separte time machine backup to create two separate profiles on the new hard drive.  If that in fact can be done, then - will it create two copies of the apps we both have in the ROOT of the drive as well as placing all the ones we each have separately?
    And reading your second reply, makes me think that maybe the partition is the way to go to begin with and then down the road - after I am in the new iMac, I could reformat the iMac 27 with only one partion and restore my son's latest back prior to the reformat thus giving him full access to the 2 TB of the drive.
    If this is still making sense, does this mean :
    replace the 1TB with a 2TB - but have it partitione - 1.5 TB & 500 GB.
    Install(Restore using Time Machine) my latest back up prior to the  1.5 partition
    Install (Restore using Time Machine) my son's latest back up prior to the 500 gig partition
    Lastly, in order for us both to be using the partioned computer - I am assuming Switch user can no longer be used - so would we need to restart and select our respective partions in order to use the computer?   And if so, how would we each be able to be using time machine to back up - two separte external hard drives - with each one dedicated to only one partition? Or ? 
    Thanks so much.
    Ironically, I am only trying to do this so that I don't need to manually install all his apps, setting, games, blah blah for this temporary period.  :-)

  • How do you combine two separate paths into one?

    I have two two separate paths that overlap and I want to combine into one path. How do I do that?

    I've now worked it out thanks it thanks. I highlighted the main path and the outer path to the second one and clicked on merge shape components. Then highlighted the inner path and did the same and this has worked.

  • How can I implement two TCP/IP servers (on two separate machines) and one TCP/IP client (on third machine)

    I have an application where I need to send data via TCP/IP from two separate machines to a third machine. The machines are on a local area network connected through a network switch. The data are generated independently through data acquisition by the two independent machines before are sent to the client on third machine. Each machine has one network card. Thanks.
    Solved!
    Go to Solution.

    If you have three separate machines, you don't need to use separate ports.  They will have three IP addresses.
    Remember this rule: TCP connections are EXACTLY like telephone connections.
    Have your client open two connections: same port on two different IP addresses.
    Each client listens for connections.
    After connections are established, you get to decide the protocol:  maybe the client should explicitly ask for data, maybe the servers just dump it without being asked. It's up to you.
    Read this:
    TCP tips and tricks
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Results of multiple queries in one report

    Hi
    I would like to create one report with multiple rows and each row should display result of a different query.
    I guess I can use multiple report on one region or multiple regions in one place.
    (1)However is there a more elegant way of creating a single report look and feel...eg like it would happen in excel.
    (2)Is it better to have one page with multiple regions or multiple reports in one region.
    Thanks
    Faizi

    I'm not sure if it suite your needs,
    but maybe you can use UNION in your queries to get them together in one report ??
    Second option:
    Denes did great work and he created some how-to about putting mulitple reports in one region:
    http://deneskubicek.blogspot.com/2007/06/multiple-reports-in-one-region.html
    Hope this helps.
    Tomasz K.

  • Create a subquery instead of executing two separate queries

    Hi,
    I need some help with creating a subquery from two different queries:
    query 1 :
    here pkey is jira key and I need to fetch component of a jira project
    SELECT jiraissue.pkey, component.cname
    FROM nodeassociation, component, jiraissue
    WHERE component.ID = nodeassociation.SINK_NODE_ID
    AND jiraissue.id = nodeassociation.SOURCE_NODE_ID
    AND nodeassociation.ASSOCIATION_TYPE = 'IssueComponent'
    AND pkey = 'abc-272';
    result: project_key: abc-272
    cname : def
    query 2:
    in the query I need to get a list of jira items by component, I have component name as 'def'and need to feed pkey as 'abc' means strip (-272) from abc-272.
    Query : select jiraissue.*, co.*
    from jiraissue,project,issuetype,nodeassociation,component,
    customfieldvalue cv
    ,customfieldoption co
    where
    component.cname = 'def' and
    project.pkey = 'abc' and
    issuetype.pname = 'Bug' and
    jiraissue.project = project.id and
    jiraissue.issuetype = issuetype.id and
    nodeassociation.association_type = 'IssueComponent' and
    nodeassociation.source_node_entity = 'Issue' and
    nodeassociation.source_node_id = jiraissue.id and
    nodeassociation.sink_node_entity = 'Component' and
    nodeassociation.sink_node_id = component.id
    and jiraissue.id = cv.issue
    and cv.stringvalue = co.id
    and cv.customfield = 10020;
    how can i make above as a subquery or execute everything in one query?

    Use Oracle function to strip the string e.g. 'XXX-YYY' will be pulled as 'XXX'
    SQL> SELECT SUBSTR('abc-272',1,INSTR('abc-272','-',1,1) -1 )
      2  FROM dual
      3  /
    SUBSTR('ABC-272',1,INSTR('ABC-
    abc
    -- Query
    SELECT jiraissue., co.
    FROM   jiraissue,
           project,
           issuetype,
           nodeassociation,
           component,
           customfieldvalue  cv,
           customfieldoption co
    WHERE  component.cname = 'def'
    AND    project.pkey = SUBSTR(jiraissue.pkey,1,INSTR(jiraissue.pkey,'-',1,1) - 1)
    AND    issuetype.pname = 'Bug'
    AND    jiraissue.project = project.id
    AND    jiraissue.issuetype = issuetype.id
    AND    nodeassociation.association_type = 'IssueComponent'
    AND    nodeassociation.source_node_entity = 'Issue'
    AND    nodeassociation.source_node_id = jiraissue.id
    AND    nodeassociation.sink_node_entity = 'Component'
    AND    nodeassociation.sink_node_id = component.id
    AND    jiraissue.id = cv.issue
    AND    cv.stringvalue = co.id
    AND    cv.customfield = 10020;
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Adding values from two different queries in one query

    Hi,
      I have developed a web template by combining 3 queries ,which were created from the same MultiProvider.These queries are having many different selections .Now I need to get the addition of values from these 2 queries into third query.
    Is there any way to combine the selections from these queries into one instead of recreating them again.I tried to use global strucuture but not successful.
    Kindly let me know is there any workaround for this.
    Thanks & Regards,
    Raja

    Hi ,
    You can do it by excel formula.
    sheet 1 --> 1st query
    sheet2 -->2nd query
    sheet3--> put calculations accroding to your requirement based on sheet1 & sheet2 into sheet3.
    Regards
    Pcrao.

Maybe you are looking for

  • Mapping issue with if else

    Src. Structure: A (0-unbounded)    within A-> p B (0-unbounded)   within B-> p NOTE: at a given instant either A/B can occur, # of K(Target)should b same as # of A/B Target structure K(0-unbounded)     within K---> z(1) now i have done A/B -> K mappi

  • HT3529 Is there a way to exit from a Group text using iphone 5?

    Is it possible to exit a group text message so you don't continue to get responses from all members when they reply?

  • Custom Live Tiles for Third Party Apps

    Hello, how can I create custom live tiles for third party apps? There are a lot of applications which can pin live tile which starts another app - for example Facebook. How can I do that?

  • Bambus - A small and simple GTK Gui to change Wallpapers using feh,...

    It is a old project, which I wrote a year ago. Bambus - A small and simple GTK Gui to change Wallpapers using feh, Esetroot, hsetroot, habak or any other command tool. Aur package: bambus To restore a Wallpaper at a WM start-up (Openbox, Awesome,...)

  • ATI Radeon 2600 XT on Mac Pro 2008 has died

    Hi All, I have recently been having issues with one of my ATI Radeon 2600 XT Graphics cards - choppy graphics, artefacts appearing on the display and endless crashes of the OS. I have read online about a recall program Apple did run which recalled th