Combined Queries

Hi
I have a query regarding combined queries. I am using BO XI R2 Deski. When i create combined queries, i have observed that BO is processing theses queries in the order from right to left i.e it is executing the last two queries first and then then the next right most and so on...
For example if i want to calculate (A Union B) minus  (C Intersection D). I am unable to frame this query. When i see the SQL the order is different. Please advise how can i set this preference like first calculate ( A Union B) and ( C Intersection D) and then subtract bothe the result sets.
Thanks,
Raveendra

Hi Raveendra,
I Tried and able to perform operation Separately like (A union B) and (C Intersection D) and also succeed to put the result side by side but not able to succeed in finding the Minus of the results. Because as you said DESKI perform operations from left to right  for each combined query.
I performed union and Intersection operations separately by using 2 data providers.
I used demo universe eFashion  for union and intersection.
The Steps followed are as follows:
1. Select eFashion Take objects Year, Store Name, Sales revenue
2. Click Combine Queries and Take same objects because Union operation requires both queries Must have have same objects.
3. Union these 2 Queries Run The Report you will get the Union of 2 Queries. (A Union B)
4.Select New Data Provider (Data New Data Provider)
5. Select Universe you want  Take objects in Query C, I Took Same objects with different condition like (Year Inlist(2002,2003))
6. Query D with Condition (Year Equalto(2002)) you will get Results (Query C intersection D). Results that contain only Year Equal to 2002.
Now you have objects from 2 data providers together, Drag and Drop Objects from 2 data providers and put them at different places on Report now you can compare the results.
Here we canu2019t Minus the results because when you click Edit Data Provider, DESKI will Prompt you to select the data provider to Edit and hence we can perform edit operation on One data provider one at a time and not together.
I Hope this is useful.
Thanksu2026
Pratik

Similar Messages

  • Re : How to retrieve Combined Queries (RE Bean SDK) -XIR2 SP2

    Hello all,
    Hope all is well. I am kinda stuck here ...trying to retrieve Combined Queries from WebI Document. I just have 1 report , 1 DP, 1 combined query(union) with 2 nodes coming off of universe ( __NO__ Custom SQL).
    Could someone give me sample code as how to retrieve this...I was able get DP and then Query container...then kinda got lost.How do I retrieve individual query and then get more information of an individual query like DataSourceObject.
    QueryContainer qCont = dataProv.getCombinedQueries();
    int operator = qCont ();
    // getQueryContainerOperator
    // then how doi I proceed further to retrieve individual query.
    Thanks in advance,
    Sam.

    I don't have any code for retrieving the combined queries, however I have some code for retrieving the SQL from a dataprovider- it might give you an idea of how to get the combined query
    oInfoObject = (IInfoObject) oInfoObjects.get(0);
    // Initialize the Report Engine
    ReportEngines oReportEngines = (ReportEngines) oEnterpriseSession.getService("ReportEngines");
    ReportEngine oReportEngine = (ReportEngine) oReportEngines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
    // Openning the document
    DocumentInstance oDocumentInstance = oReportEngine.openDocument(oInfoObject.getID());
    DataProvider oDataProvider = null;
    SQLDataProvider oSQLDataProvider = null;
    SQLContainer oSQLContainer_root = null;
    SQLNode oSQLNode = null;
    SQLSelectStatement oSQLSelectStatement = null;
    String sqlStatement = null;
    out.print("<TABLE BORDER=1>");
    for (int i=0; i<oDocumentInstance.getDataProviders().getCount(); i++) {
         oDataProvider = oDocumentInstance.getDataProviders().getItem(i);
         out.print("<TR><TD COLSPAN=2 BGCOLOR=KHAKI>Data Provider Name: " + oDataProvider.getName() + "</TD></TR>");
         oSQLDataProvider = (SQLDataProvider) oDataProvider;
         oSQLContainer_root = oSQLDataProvider.getSQLContainer();
         if (oSQLContainer_root != null) {
              for (int j=0; j<oSQLContainer_root.getChildCount(); j++) {
                   oSQLNode = (SQLNode) oSQLContainer_root.getChildAt(j);
                   oSQLSelectStatement = (SQLSelectStatement) oSQLNode;
                   sqlStatement = oSQLSelectStatement.getSQL();
                   out.print("<TR><TD>" + (j+1) + "</TD><TD>" + sqlStatement + "</TD></TR>");
    out.print("</TABLE>");
    oDocumentInstance.closeDocument();
    Shawn

  • Combine queries dynamically (union?)

    Hello Friends
    I got very tuff problem, plz help me out.
    I want to combine some some query's using "UNION" oprator of SQL Server. Supposed we name it as SET 1.
    Again I have to make UNION of output of SET1 with n number of SET 1 like query set.
    In short dynamically I have to create differnt UNION OF SOME QUERIES & AGAIN MAKE CHAIN of such queries.
    If any one have solution for it . Plz replay immdtly.

    Thanx For Rplay
    Actually I wan to get empids like id from multiple database. & Id Should not be repeated. I have used UNION option. But Dynamically database can be more or less if use more union query become so big. And StringBuffer Become so big. For execution it take time.
    So I got one solution for it. I am fetching id from database & storing it in TreeSet Object.
    Its very good idea to store record in TreeSet bcoz no Id get repeated.
    I got unquie Id & futher I can process. It took very few minutes. If I use UNION it took too much time.
    Thanx For ur response
    Dinesh

  • Combine Queries in one workbook

    Hi guys,
    I am looking for a way to combine multiple queries in one workbook.
    For example: If I set a filter in one query to the month November, the same filter (e.g. November) should apply to all other queries (which are on another worksheet or on the same worksheet).
    How can I do this?
    Many thanks,
    Sabin

    Hi Sabine,
    You have two options:
    1.  the easy one is to use same variables in the refresh screen for all queries in the same workbook; if you do this, then use the "refresh all queries" option, you will get the same restrictions applying to all queries in the workbook simultaneously.
    2.  the more difficult way to do this is to use a lot of Visual Basic.  Using Visual Basic, you can "read" the filter value set on a particular query, then "apply" that filter value to every other query in the workbook.  OR, you can use the "Copy Filter Value" function.  I prefer the latter for a number of reasons.
    From your earlier notes, I assume you want to use option 2.  To help you further, it would be useful to know what version of BW you are using, and how your users typically refresh queries (i.e., with a button in the workbook, or using the Business Explorer toolbar?).
    It would also be helpful to know your level of comfort with VBA in Excel.
    Here are some notes on the "Copy Filter Value" function:
    Function SAPBEXcopyFilterValue(fromCell As Range, Optional atCell As Range) As Integer
    • Return value of zero indicates that no errors were encountered.  Otherwise, function returns number of errors encountered.
    • If atCell is not specified, the active cell is used to determine which characteristic to return information for.  If the active cell is not part of a query definition, then function returns an error state.
    • Characteristics (fromCell and atCell) must have same technical name; for example, cannot copy filters for Ship-to (0SHIP_TO) in Sales cube to Ship-to (YCOCUSSH) in a Shipments cube
    • Queries (copying from and to) must be in same Excel Workbook.
    Sub CopyFilterOnce()
    Dim filterRng1 As Range, filterRng2 As Range
        'in this example, we are copying filters from query on sheet
        'with code name Query1 to query on sheet with code name Query2
        Set filterRng1 = Query1.Range("F10")
        Set filterRng2 = Query2.Range("D13")       
        retVal = Run("SAPBEX.xla!SAPBEXcopyFilterValue", filterRng1, filterRng2
    End Sub
    Hope this helps.
    - Pete

  • Combining queries.

    Hi,
    Is there a code when we can combine the following three queries in one and imprrove performance
    DATA: XAUFPL LIKE AFKO-AUFPL,
          XARBPL LIKE CRHD-ARBPL,
          XARBID LIKE V_QAPO-ARBID.
    SELECT SINGLE AUFPL FROM AFKO INTO XAUFPL WHERE AUFNR = '007200000059'.
    SELECT SINGLE ARBID  FROM V_QAPO INTO XARBID WHERE AUFPL = XAUFPL AND VORNR = '0020'.
    SELECT SINGLE ARBPL FROM CRHD INTO XARBPL WHERE OBJID = XARBID.
    WRITE: / XARBPL.

    you can try this:
    SELECT SINGLE CRHD~ARBPL
    FROM AFKO
    INNER JOIN V_QAPO ON V_QAPOAUFPL = AFKOAUFPL
    INNER JOIN CRHD ON CRHDOBJID = V_QAPOARBID
    INTO XARBPL
    WHERE AFKO~AUFNR = '007200000059'
      AND V_QAPO~VORNR = '0020'.
    WRITE: / XARBPL.
    Hope it will be helpful
    Thanks

  • Combined Queries in BO 4.0 WebI

    Hi,
    I am creating a combined query in the report query panel.  Query 1 has combined query 1 and combined query 2 with UNION Operator.
    The combined query 1 has one dimension from Table1.Col1. The combined query 2 has one dimension from Table2.Col1.
    When clicking the view script i am expecting the query to be as
    select Table1.Col1
    from Table1
    union
    select Table2.Col1
    from Table2
    But the webi is returning the query like below.
    select Table1.Col1
    from Table1, Table2
    where Table1.Col1 = Table2.Col1
    Union
    select Table2.Col1
    from Table1, Table2
    where Table1.Col1 = Table2.Col1
    Can anyone please suggest why it is joining both the tables? Any settings has to be done in the CMC to avoid this join?
    when creating a union query in the universe with these tables no joins are formed.
    Please help me on this. Thanks in advance.

    This is really very strenge could you please check the parameter value in the file<Parameter
    COMBINED_WITH_SYNCHRO
    it should be yes.
    Also, please check if this the universe spacific problem or happening with all the universe. Did you check with taking other dimention value in the combind query.

  • Join/from/where/ combine queries 3

    hello my query below is not working for my cf application can
    you help?
    thanks
    this is my previous question so i tried to do it my self.
    tcase_req.tcase_req_id is added
    tcase.case_id=tcase_req.case_id :note that this is not part of the
    inner join in the from clause. it does not depend on the rest of
    the inner join.
    the reaon for this is that i need to get
    WHERE tcase_req.case_req_typ_cd = cwc and
    tcase_req.case_req_typ_cd = cwnc
    here is the original question
    Hello ,
    I need help again on the inner join/and conditions in the
    where clause
    I have these 2 tables tcase and tcase_req where there common
    field Is the case_id.
    tcase is the parent table and the tcase_req is the child
    table.
    (1)I wanted to add this to the from clause using the inner
    join table . what do I do and where do I put it
    (2)I then need to put a condition in the where clause to
    replace
    WHERE TCASE.CASE_NBR Like '%HPOZ%'
    AND TCASE.CASE_NBR = 'DIR-2004-4269-HPOZ-CCMP'
    by
    WHERE TCASE.CASE_NBR Like '%CWC%' or TCASE.CASE _NBR Like
    '%CWNC%'
    AND TCASE.CASE_NBR = 'DIR-2004-4269-CWC'
    Or TCASE.CASE_NBR = 'DIR-2004-4269-CWNC'
    is this efficient??
    thanks
    SELECT TLA_PROP.PIN,
    TLA_PROP.ASSR_PRCL_NBR,
    TCASE.CASE_NBR,
    TLA_PROP.STR_NBR,
    TLA_PROP.STR_NBR_RNG_END,
    TLA_PROP.STR_FRAC_NBR,
    Tref_plan_area.plan_area_desc,
    TLA_PROP.STR_FRAC_NBR_RNG_END,
    TLA_PROP.STR_DIR_CD,
    TLA_PROP.STR_NM,
    TLA_PROP.STR_SFX_CD,
    TLA_PROP.STR_SFX_DIR_CD,
    TLA_PROP.STR_UNIT_TYP_CD,
    TLA_PROP.UNIT_NBR,
    TLA_PROP.UNIT_NBR_RNG_END,
    TLA_PROP.ZIP_CD,
    TLA_PROP.ZIP_CD_SFX,
    TLA_PROP.CNCL_DIST_NBR,
    TLA_PROP.PLAN_AREA_NBR,
    TLA_PROP.ZONE_REG_CD,
    TAPLC.PROJ_DESC_TXT,
    TCASE.CASE_ID,
    TCASE.CASE_NBR,
    taplc.aplc_id,
    tcase_req.case_req_typ_cd
    FROM TLA_PROP INNER JOIN tref_plan_area ON
    tla_prop.plan_area_nbr = tref_plan_area.plan_area_NBR INNER JOIN
    TLOC ON TLA_PROP.PROP_ID = TLOC.LOC_ID INNER JOIN TAPLC ON
    TLOC.APLC_ID = TAPLC.APLC_ID INNER JOIN TCASE ON TAPLC.APLC_ID =
    TCASE.APLC_ID
    WHERE TCASE.CASE_NBR Like '%CWC%'and
    tcase.case_id=tcase_req.case_id
    (3)To a tcase_req
    Suffix_id are equal to = cwc and cwnc ( in the tcase_req
    table)(Suffix_id is the field that cintains the suffix cwc and cwnc
    for the tcase_req)
    also,
    this is the original query and it works fine
    SELECT TLA_PROP.PIN,
    TLA_PROP.ASSR_PRCL_NBR,
    TCASE.CASE_NBR,
    TLA_PROP.STR_NBR,
    TLA_PROP.STR_NBR_RNG_END,
    TLA_PROP.STR_FRAC_NBR,
    Tref_plan_area.plan_area_desc,
    TLA_PROP.STR_FRAC_NBR_RNG_END,
    TLA_PROP.STR_DIR_CD,
    TLA_PROP.STR_NM,
    TLA_PROP.STR_SFX_CD,
    TLA_PROP.STR_SFX_DIR_CD,
    TLA_PROP.STR_UNIT_TYP_CD,
    TLA_PROP.UNIT_NBR,
    TLA_PROP.UNIT_NBR_RNG_END,
    TLA_PROP.ZIP_CD,
    TLA_PROP.ZIP_CD_SFX,
    TLA_PROP.CNCL_DIST_NBR,
    TLA_PROP.PLAN_AREA_NBR,
    TLA_PROP.ZONE_REG_CD,
    TAPLC.PROJ_DESC_TXT,
    TCASE.CASE_ID,
    TCASE.CASE_NBR,
    taplc.aplc_id
    FROM TLA_PROP INNER JOIN tref_plan_area ON
    tla_prop.plan_area_nbr = tref_plan_area.plan_area_NBR INNER JOIN
    TLOC ON TLA_PROP.PROP_ID = TLOC.LOC_ID INNER JOIN TAPLC ON
    TLOC.APLC_ID = TAPLC.APLC_ID INNER JOIN TCASE ON TAPLC.APLC_ID =
    TCASE.APLC_ID
    WHERE (TCASE.CASE_NBR Like '%CWC%' or TCASE.CASE_NBR Like
    '%CWNC%')

    For guys like us that are not writing queries everyday you
    might try a query
    builder like the one MS Access has.
    "Coldfusionstudent" <[email protected]>
    wrote in message
    news:[email protected]...
    > hello my query below is not working for my cf
    application can you help?
    > thanks
    >
    >
    > this is my previous question so i tried to do it my
    self.
    >
    >
    > tcase_req.tcase_req_id is added
    tcase.case_id=tcase_req.case_id :note
    > that
    > this is not part of the inner join in the from clause.
    it does not depend
    > on
    > the rest of the inner join.
    >
    > the reaon for this is that i need to get
    > WHERE tcase_req.case_req_typ_cd = cwc and
    tcase_req.case_req_typ_cd =
    > cwnc
    >
    > here is the original question
    >
    > Hello ,
    > I need help again on the inner join/and conditions in
    the where clause
    >
    > I have these 2 tables tcase and tcase_req where there
    common field Is the
    > case_id.
    > tcase is the parent table and the tcase_req is the child
    table.
    >
    > (1)I wanted to add this to the from clause using the
    inner join table .
    > what
    > do I do and where do I put it
    >
    > (2)I then need to put a condition in the where clause to
    replace
    > WHERE TCASE.CASE_NBR Like '%HPOZ%'
    > AND TCASE.CASE_NBR = 'DIR-2004-4269-HPOZ-CCMP'
    > by
    > WHERE TCASE.CASE_NBR Like '%CWC%' or TCASE.CASE _NBR
    Like '%CWNC%'
    > AND TCASE.CASE_NBR = 'DIR-2004-4269-CWC'
    > Or TCASE.CASE_NBR = 'DIR-2004-4269-CWNC'
    >
    > is this efficient??
    >
    >
    >
    > thanks
    > --------------------
    >
    > SELECT TLA_PROP.PIN,
    > TLA_PROP.ASSR_PRCL_NBR,
    > TCASE.CASE_NBR,
    > TLA_PROP.STR_NBR,
    > TLA_PROP.STR_NBR_RNG_END,
    > TLA_PROP.STR_FRAC_NBR,
    > Tref_plan_area.plan_area_desc,
    > TLA_PROP.STR_FRAC_NBR_RNG_END,
    > TLA_PROP.STR_DIR_CD,
    > TLA_PROP.STR_NM,
    > TLA_PROP.STR_SFX_CD,
    > TLA_PROP.STR_SFX_DIR_CD,
    > TLA_PROP.STR_UNIT_TYP_CD,
    > TLA_PROP.UNIT_NBR,
    > TLA_PROP.UNIT_NBR_RNG_END,
    > TLA_PROP.ZIP_CD,
    > TLA_PROP.ZIP_CD_SFX,
    > TLA_PROP.CNCL_DIST_NBR,
    > TLA_PROP.PLAN_AREA_NBR,
    > TLA_PROP.ZONE_REG_CD,
    > TAPLC.PROJ_DESC_TXT,
    > TCASE.CASE_ID,
    > TCASE.CASE_NBR,
    > taplc.aplc_id,
    > tcase_req.case_req_typ_cd
    > FROM TLA_PROP INNER JOIN tref_plan_area ON
    tla_prop.plan_area_nbr =
    > tref_plan_area.plan_area_NBR INNER JOIN TLOC ON
    TLA_PROP.PROP_ID =
    > TLOC.LOC_ID
    > INNER JOIN TAPLC ON TLOC.APLC_ID = TAPLC.APLC_ID INNER
    JOIN TCASE ON
    > TAPLC.APLC_ID = TCASE.APLC_ID
    > WHERE TCASE.CASE_NBR Like '%CWC%'and
    tcase.case_id=tcase_req.case_id
    >
    >
    >
    >
    > (3)To a tcase_req
    > Suffix_id are equal to = cwc and cwnc ( in the tcase_req
    table)(Suffix_id
    > is
    > the field that cintains the suffix cwc and cwnc for the
    tcase_req)
    >
    > also,
    > this is the original query and it works fine
    > SELECT TLA_PROP.PIN,
    > TLA_PROP.ASSR_PRCL_NBR,
    > TCASE.CASE_NBR,
    > TLA_PROP.STR_NBR,
    > TLA_PROP.STR_NBR_RNG_END,
    > TLA_PROP.STR_FRAC_NBR,
    > Tref_plan_area.plan_area_desc,
    > TLA_PROP.STR_FRAC_NBR_RNG_END,
    > TLA_PROP.STR_DIR_CD,
    > TLA_PROP.STR_NM,
    > TLA_PROP.STR_SFX_CD,
    > TLA_PROP.STR_SFX_DIR_CD,
    > TLA_PROP.STR_UNIT_TYP_CD,
    > TLA_PROP.UNIT_NBR,
    > TLA_PROP.UNIT_NBR_RNG_END,
    > TLA_PROP.ZIP_CD,
    > TLA_PROP.ZIP_CD_SFX,
    > TLA_PROP.CNCL_DIST_NBR,
    > TLA_PROP.PLAN_AREA_NBR,
    > TLA_PROP.ZONE_REG_CD,
    > TAPLC.PROJ_DESC_TXT,
    > TCASE.CASE_ID,
    > TCASE.CASE_NBR,
    > taplc.aplc_id
    > FROM TLA_PROP INNER JOIN tref_plan_area ON
    tla_prop.plan_area_nbr =
    > tref_plan_area.plan_area_NBR INNER JOIN TLOC ON
    TLA_PROP.PROP_ID =
    > TLOC.LOC_ID
    > INNER JOIN TAPLC ON TLOC.APLC_ID = TAPLC.APLC_ID INNER
    JOIN TCASE ON
    > TAPLC.APLC_ID = TCASE.APLC_ID
    > WHERE (TCASE.CASE_NBR Like '%CWC%' or TCASE.CASE_NBR
    Like '%CWNC%')
    >

  • Combined Queries in Crystal

    I need to create a report that answers multiple questions:
    Step 1: List markets where product is distributed by CompanyA
    Step 2: List top 250 markets based on overall product sales across all companies
    I then wish to create a report which contains a union of markets in Steps 1 and 2.  Is this possible, and if so how?
    All help is appreciated.

    Yes it can be done you need to use a command object in Crystal to create you union
    Select , field1, field2, field3 etc..
    from tablea where company = 'Compnay A'
    Union All
    Select Top 250 field 1, field 2, field 3, from table A
    not sure which database you are using but this could wourk for you with some modifications

  • Combine queries instead of join

    disregard.
    Edited by: Jay on Jan 20, 2011 8:12 AM

    It is always helpful to provide the following:
    1. Oracle version (SELECT * FROM V$VERSION)
    2. Sample data in the form of CREATE / INSERT statements.
    3. Expected output
    4. Explanation of expected output (A.K.A. "business logic")
    5. Use \ tags for #2 and #3. See FAQ (Link on top right side) for details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Combining Photographs in a grid

    How can I create one very large photograph by combining multiple, equally sized photographs in columns and rows with no spacing between the photos? Each photo has a black background. I tried the contact sheet function and it always puts white spacing between the photos even if I uncheck the autospacing option and set the spacing option to 0 pixels. Obviously I want to do this automatically as I have multiple collections, for example I might have 72 high resolution photographs of individual butterflies I want to turn into one large (40 by 50 inch) print. Can anyone help me solve this problem?

    hi pandaa,
      you can combine queries in analyzer, make two different tabs in addition to a default tab which is there when you open excel, two additional are inserted because one tab will be for 2nd query and 3rd will be for result.
    in query2, add design item by going in insert analysis grid, now in properties change the data provider name  and click on create button, slelct the 2nd query
    in the result tab, create a table merger the data from both queries and save the workbook
    hope this will resolve your doubt
    regards
    laksh

  • Query of Queries on 2 datasources

    I'm trying to do a query of queries on 2 different
    datasources. I run a gaming site and have a 2 programs that are
    used for tracking. One is written in php, by someone else, that
    tracks members point status. The other, I wrote in CF, allows
    members to set up treasure priorities. Both are stand alone on my
    server. What I am trying to do is set it up so the program I wrote
    in CF will display the # of points each member has. I know how to
    query the separate tables but how can I combine them? Also, how can
    I set it up so that it only shows the members that match. i.e. I
    want to make sure that if John Smith has 100 points, the query will
    show John Smith's 100 points on my table. Here is what the query
    looks like as I have done it. As you can see, I'm confused about
    the FROM and WHERE statements. I played with it last night and
    couldn't get it to work. Thanks.

    This leads me to a new question.
    How can I output my query in my current table without
    rewriting everything?
    My original query is for the table and if I use the above
    code with #combinedNames.member_earned# the table is 1 number. Like
    this:
    Preview
    It's the 2nd column. Now, If I break the cfoutput and put in
    a new cfoutput with the combined queries, it totally jacks up the
    table all over the page. Hope that makes sense.

  • Can we combine prompt values in Webintelligence Report(Combined Q:Union)

    Hi Every One,
    I had 4 Queries which are combined queries(Union).When i run the report ,displaying prompt values which are there in first Query.Can't we get combined prompt values when i run the report.I will explain with Scenario.
    Eg:
    Q1:Product level Country Information
    Prompt Values:Country(A,B,C,D,E,F,G,H)
    Q2:Component level Country Information
    Prompt Values:Country(A,B,C,D,E,F,L)
    Q3:Product level Source Information
    Prompt Values:Country(A,B,C,D,E)
    Q4:Product level Country Information
    Prompt Values:Country(A,B,C,D,E,F,M)
    When i run the report iam getting prompt values for country as (A,B,C,D,E,F,G,H)
    Could you help .
    Regards,
    Swapna.

    I'm having trouble understanding your scenario as you explain it.
    You are doing a union of the queries?
    So create query A, combine queries, union, create query B, etc.
    All of them use the same prompt message?
    So you either build the condition and reuse the same prompt message or you use a filter from the universe.
    In this case it is not possible to specify something different for each of the various subqueries.
    So you would have only one prompt answer, being whatever you answered to the prompt.
    If you have different prompt messages, you can give different answers, but then you have 4 prompt answers to display.
    It would be logical that only the first one is displayed if that is the one you display, you should display all four.
    If you just want to display the superset of countries which have been retrieved by the query you can put this information in a separate table block. If you make it a horizontal one, without borders, you should be able to come close to a normal prompt layout.
    Good luck,
    Marianne

  • Best Practice: Combine prepared statements with ;

    Hi,
    I would like to know what the best prctice is for combining prepared statements to give the query below
    INSERT INTO my_table (value) VALUES (?); SELECT LAST_INSERT_ID()The reason for this is that i have written a simple DB wrapper to handle my database connections and queries based on a property file containing sql strings. I would prefer not to change this wrapper code, but be able to specify combined queries in the sql string if possible.
    Thanks in advance

    Have you thought about using Batch statements ?

  • Reasons for Add a combined query being grayed out?

    I want to create a combined query but the option is grayed out. This report is a duplicate of an already existing document. I have checked that all the queries in this document are based on the same universe. Are there any other reasons that this may be the case? I have tried creating a document from scratch and the option to combine the queries is available to me.

    Do you perhaps have "scope of analysis" set on the data provider? You can check by counting the number of objects visible on the query panel and then open the SQL and see how many select values there are. I have seen cases where the scope of analysis (which adds extra dimensions to the query in an invisible fashion) interferes with the combine queries option.
    Note that normally you can check the scope by clicking the appropriate button on the query panel toolbar and invoking the scope panel. However, I have seen some cases where objects are in the SQL even without showing up on the scope panel... it's worth a check.

  • Running queries concurrently

    Hi,
    I have a very complicated BI Publisher report that has about 10 queries in a data model, set with the "Concatenate SQL Data Source" option (along with "make row names unique"). These queries are running against an OBIEE server.
    When I look at the queries being submitting in NQQuery.log, I can see that it seems to be running them sequentially. I.e. query #1 finishes before query #2 kicks off, etc.
    I'd like for all 10 queries to get submitted at the same exact time, to improve performance. Is there something I should change to get this to happen?
    Thanks,
    Scott

    Unfortunately, we do not have the option to remove queries. This report is "the" essential report for my client...and it covers lots of different areas. Politically no chance to reduce the scope of the report...and I've already jumped through hoops to combine queries where practical.
    Might have to think about returning to my original design - which was to have Answers queries to pull the data, then source those instead of hitting the BI server directly. At least on a dashboard page, if I have all ten queries, all ten will update simultaneously.
    Thanks for the info, appreciate the help,
    Scott

Maybe you are looking for