Fetch multiple rows using cross-join technique

Hello.
Can anyone suggest a method to return 3 rows from a query when only one row would otherwise be returned?
I'm trying to achieve the Logical SQL analog to this -
SELECT x.foo, p.id, p.name FROM people p CROSS JOIN (SELECT 1 AS foo UNION ALL SELECT 2 UNION ALL SELECT 3) x;Reason: I want to force a three (n) row result and use GROUP BY with case statements to create 3-level summary.
Here is a simple Logical SQL expression that works for my OBI setup -
SELECT
     "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number saw_0,
     "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".SR_Operating_Unit_Name saw_1
FROM
     "[Noetix-NoetixGlobalRepository] NoetixViews for Oracle Service"     
WHERE
     ("- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number = '338246')But I think I cannot do this -
SELECT
     "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number saw_0,
     "- Nx_CSDG0_Repair_Orders (Depot Repair Views)".SR_Operating_Unit_Name saw_1
FROM
     "[Noetix-NoetixGlobalRepository] NoetixViews for Oracle Service"
     CROSS JOIN (SELECT 1 AS foo UNION ALL SELECT 2 UNION ALL SELECT 3)
WHERE
     ("- Nx_CSDG0_Repair_Orders (Depot Repair Views)".Repair_Number = '338246')But what can I do?
Thank you.
-cs

Hi CSeelig ,
The BI Server uses the ANSI SQL standard. Then all SQL that follows this specification will in OBIEE work.
I have made an example with a densification:
http://gerardnico.com/wiki/dat/obiee/logical_sql/obiee_sql_densification
You will see a cross join to make a densification.
Cheers
Nico

Similar Messages

  • Inserting multiple rows using a single Insert statement without using dual

    Hi all,
    i am trying to insert multiple rows using a single insert statement like the below one.
    The below one works fine..
    But is there any other change that can be done in the below one without using dual...
    insert all
    into ps_hd_samp (num1,num2) values (1,1)
    into ps_hd_samp (num1,num2) values (2,2)
    into ps_hd_samp (num1,num2) values (3,3)
    select 1 from dual;

    NiranjanSe wrote:
    Hi all,
    i am trying to insert multiple rows using a single insert statement like the below one.
    The below one works fine..
    But is there any other change that can be done in the below one without using dual...
    insert all
    into ps_hd_samp (num1,num2) values (1,1)
    into ps_hd_samp (num1,num2) values (2,2)
    into ps_hd_samp (num1,num2) values (3,3)
    select 1 from dual;
    SQL> create table ps_hd_samp (num1 number,num2 number);
    Table created.
    SQL> insert all
      2  into ps_hd_samp (num1,num2) values (1,1)
      3  into ps_hd_samp (num1,num2) values (2,2)
      4  into ps_hd_samp (num1,num2) values (3,3)
      5  select count(*)
      6  from ps_hd_samp;
    3 rows created.
    SQL> select * from ps_hd_samp;
          NUM1       NUM2
             1          1
             2          2
             3          3

  • SQL Server 2005 64BIT Linked Server Cannot fetch a row using a bookmark

    We get the following error SOMETIMES when trying to delete a row from an Oracle 10g database table via the SQL 2005 64BIT linked server.
    DELETE [edwdev]..SYSTEM.SAIC_ARTIFACT_LOG FROM tblArtifactLog src WHERE src.source_seq_no = SAIC_ARTIFACT_LOG.art_seq_no and src.source_name = 'edwdev' [SQLSTATE 01000] (Message 0) Cannot fetch a row using a bookmark from OLE DB provider "OraOLEDB.Oracle" for linked server "edwdev". [SQLSTATE 42000] (Error 7333). The step failed.
    They keyword here is SOMETIMES. The job would fail 100% of the time before applying ODAC 10.2.0.3.0, after the ODAC install the job fails about 40% of the time. We have this setup in a test enviornment and yes there are rows of data in the table everytime the job runs.
    As far as the OraOLEDB10.dll install we have a date of 2/20/07 but a version of 10.2.0.2. I am wondering if this shouldn't be a new version.

    LearnMoreAgile wrote:
    so does that mean no one at oracle can guide me in this issue before i goto microsoft ?How has the Linked Server been created in MSSQL? OraOLEDb.Oracle is the class name for the Oracle OLEDB provider which should appear in your list of OLEDB providers in your favourite windows dev tool or when creating the linked server. If it doesn't appear likely you didn't choose to install it. I don't know if it's a default install with the 64bit client, but the ODAC client contains the .net provider and not the OLEDB provider.
    Niall

  • Update Multiple Rows using Row Selector

    Hi,
    I want to update multiple rows using a tabular form with row selector, and an item in another region of the page, using an update expression and a button.
    The syntax would be like this:
    update MY_TABLE set UPDATABLE_COLUMN = :P10_NEW_VALUE where {row selector = true}
    What is the syntax for the WHERE clause, anyone knows? In the manual there is no information at all for doing this.
    PD. I added the row selector after creating the form, so I don't have any wizard-created MRU processes in the page.
    HTMLDB version is 1.6
    Thanks.

    Hi,
    I want to update multiple rows using a tabular form with row selector, and an item in another region of the page, using an update expression and a button.
    The syntax would be like this:
    update MY_TABLE set UPDATABLE_COLUMN = :P10_NEW_VALUE where {row selector = true}
    What is the syntax for the WHERE clause, anyone knows? In the manual there is no information at all for doing this.
    PD. I added the row selector after creating the form, so I don't have any wizard-created MRU processes in the page.
    HTMLDB version is 1.6
    Thanks.

  • Looping over 1 document to fetch multiple invoices using "Appending"

    Hi gurus ,
                 I'm facing a peculiar problem where in , i use the code -
      SELECT KUNNR REBZG BUDAT DMBTR gjahr XBLNR HKONT UMSKZ SHKZG AUGGJ REBZJ AUGBL
         FROM BSAD
        APPENDING CORRESPONDING FIELDS OF TABLE I_BSAD_CL
        FOR ALL ENTRIES IN I_BSAD
         WHERE kunnr IN s_kunnr
             AND   bukrs EQ p_bukrs
             AND   AUGGJ EQ i_bsad-auggj
             AND   AUGBL EQ I_BSAD-belnr
             AND   shkzg EQ 'S'
         AND ( UMSKZ EQ 'A'
             OR    UMSKZ EQ 'M'
             OR    UMSKZ EQ ' ' ).
    There are 2 internal tables -
    I_BSAD
    I_BSAD_CL
    I need to fetch multiple Invoice documents (REBZG) from BSAD table and place it in I_BSAD_CL , w.r.t. to the document numbers (BELNR) in I_BSAD internal table.
    ( There can be a scenario where in there r 5 invoices for 1 document number as well ).
    So, to perform the task I use "appending corresponding fields of table" and "for all entries" .
    Do u ppl have any other option by which i complete this task ? Because this code takes a while to execute in case of heavy data .
    Thanks and Regards ,
    Prithvi.
    Edited by: Prithvi  Sridhar on Jun 26, 2009 1:13 PM

    >
    Rui Pedro Dantas wrote:
    > Ok, then it is using the index we want.
    > I just noticed that in your original code you have "IN s_kunnr" in the 2nd query, when it should be  "= I_BSAD-KUNNR" (after getting each clearing document, you already know the customer for the corresponding cleared document).
    >
    > Have you changed that along the way?
    > Maybe you can post the code you have at this moment?
    >
    > Anyway, your original question was about making only one query by joining the two tables, and yes, that would be of course possible.
    Oh yeah ! I can also use I_BSAD-KUNNR instead of S_KUNNR. I did the same for BUKRS as well.
    Here's my fresh code -
    SELECT kunnr belnr budat dmbtr augbl rebzg gjahr XBLNR HKONT BUDAT AUGDT UMSKZ SHKZG AUGGJ REBZJ PSWSL BUZEI bukrs
             FROM BSAD
             INTO CORRESPONDING FIELDS OF TABLE I_BSAD
             WHERE kunnr IN s_kunnr
             AND   bukrs EQ p_bukrs
             AND   gjahr EQ p_gjahr
             AND   budat IN s_budat
    *         AND   shkzg EQ 'S'
             AND   blart EQ 'DZ'
             AND ( UMSKZ EQ 'A'
             OR    UMSKZ EQ 'M'
             OR    UMSKZ EQ ' ' )
             AND   HKONT NE '241000'
             AND   HKONT NE '241010'
             AND   HKONT NE '241020'.
    *MULTIPLE INVOICES(CLEARED)
    IF I_BSAD[] IS NOT INITIAL .
      SELECT KUNNR BELNR BUDAT  gjahr XBLNR HKONT UMSKZ SHKZG AUGGJ REBZJ AUGBL BUZEI
         FROM BSAD
        INTO CORRESPONDING FIELDS OF TABLE I_BSAD_CL
        FOR ALL ENTRIES IN I_BSAD
         WHERE kunnr eq i_bsad-kunnr
             AND   bukrs EQ I_BSAD-bukrs
             AND   AUGGJ EQ i_bsad-auggj
             AND   AUGBL EQ I_BSAD-belnr
             AND   PSWSL EQ I_BSAD-PSWSL
    *         AND  ( GJAHR EQ I_BSAD-AUGGJ OR GJAHR EQ I_BSAD-GJAHR )
    *        AND  BUDAT EQ I_BSAD-AUGDT
    *         AND   AUGDT EQ I_BSAD-BUDAT
             AND   shkzg EQ 'S'
         AND ( UMSKZ EQ 'A'
             OR    UMSKZ EQ 'M'
             OR    UMSKZ EQ ' ' ).

  • Import xml data in Access when multiple rows use the same fieldname

    HI.
    First of all sorry for my english :-) I have a LiveCycle Designer ES form with multiple rows that I send via e-mail as XML data.
    example:
    Row 1
    Firstname: John  Lastname: Dow
    Row 2
    Firstname: Steve  Lastname: Austin
    The exported XML is OK but when I want to import it into my Access database, only one row is imported. I pretty sure that the problem comes from the fact that may exported XML use the same fieldname (what is important if I want to import data in the correct Access field) but I don't know what to do to be able to import all the rows of the same Form.
    Any idea?
    Thanks a lot
    Frederic

    Hi Viktor,
    In case of order recognition rules you should increase the relevancy in the newer version of the cartridge so appropriate ORR will be triggered. In other xqueries, you can try using new namespace as a model variable for each and every version of the cartridge
    Regards,
    JP

  • 2.1.0.62: Bug editing text columns in multiple rows using editor-window

    Hello Forum,
    I hope this is not a double post, but I did not come up with the right keywords to search for.
    So here is the bug/strange annoying behavior:
    When I edit multiple rows of a table using the extra edit-window, it shows the text of the previous row I edited and not the text of the actual row.
    Well, sounds quit complicated so I'll give an example:
    Suppose you have a table with two columns and two rows. One column is of type varchar2. Say it contains the values "one" and "two".
    Now I click into the row containing "one", open the extra-edit-window and change the value to "one-1".
    Then I click into the second row and also open the extra-edit-window. The window shows "one-1" instead of "two" as it should.
    This is very annoying because I don't have autocommit activated and when I edit a couple of clob fields, the editor just shows the text of the previous field. I have to say commit for every row in order not to scramble the contents of multiple fields. I have to use the edit-window because the inplace editor is not very useful when editing large texts.
    I observed this bug with varchar2 and clob fields but it may not be restricted to those.
    I run Windows XP and conect to Oracle 10.2.0.4
    Regards,
    dhalek

    Hello -K-,
    setting "Post edits on row change" indeed does prevent this bug, but leads to another problem:
    When I click the rollback-button, the table data is not reverted to its original state. In fact the changes are not commited, but rolling back, does not give the old data back. I can enter "rollback;" into the worksheet and then refresh the table data to show the old values but internally SQL Developer still thinks it has uncommitted changes in the table.
    I, for now, uncheck "Post edits on row change" and use the inplace editor wherever possible. That has some strange cursor bugs (sometimes puts the cursor to the end making it impossible to enter text in the middle of the field) but that does not affect other rows.
    Regards,
    dhalek
    Edited by: dhalek on 30.10.2009 15:08

  • Selecting multiple rows using column header with checkbox in it.

    Dear All.,
    I am trying to select multiple rows with checkbox in column header but it doesnot works...
    Following is my codel
    <af:table value="#{bindings.xx.collectionModel}"
                          var="row"
                          rows="#{bindings.xx.rangeSize}"
                          emptyText="#{bindings.xx.viewable ? 'No data to display.' : 'Access Denied.'}"
                          fetchSize="#{bindings.xx.rangeSize}"
                          rowBandingInterval="1"
                          filterModel="#{bindings.xx.queryDescriptor}"
                          queryListener="#{bindings.xx.processQuery}"
                          varStatus="vs" partialTriggers="sbcSelectAll sbcChkFlag"
                          selectedRowKeys="#{bindings.xx.collectionModel.selectedRow}"
                          selectionListener="#{bindings.xx.collectionModel.makeCurrent}"
                          rowSelection="none" id="tCdMast" width="400"
                          columnStretching="column:c4" inlineStyle="height:200px;">
                  <af:column sortProperty="ChkFlag" filterable="true"
                             sortable="true"
                             headerText="#{bindings.xx.hints.ChkFlag.label}"
                             id="c2" width="55"
                             inlineStyle="#{row.ChkFlag ? 'background-color:#9CACC9;' : ''}">
                    <af:selectBooleanCheckbox simple="true" value="#{row.ChkFlag}"
                                              selected="#{row.ChkFlag}" id="sbcChkFlag"
                                              autoSubmit="true" immediate="true"/>
                    <f:facet name="header">
                      <af:selectBooleanCheckbox simple="true"
                                                autoSubmit="true"
                                                valueChangeListener="#{xxBean.onTableChkAllCheckChanged}"
                                                id="sbcSelectAll"/>
                    </f:facet>
                  </af:column>
    </af:table>
    Managed Bean
        public void onTableChkAllCheckChanged(ValueChangeEvent valueChangeEvent) {
            Boolean newValue =
                Boolean.valueOf(u.nvlString(valueChangeEvent.getNewValue(),
                                            "false"));
            Boolean oldValue =
                Boolean.valueOf(u.nvlString(valueChangeEvent.getOldValue(),
                                            "false"));
            if (newValue.equals(oldValue))
                return;
            int rowIndex=0;
            ViewObject vo = u.findIterator("xxIterator").getViewObject();
            vo.reset();
            while(vo.hasNext()){
              Row row;
              if(rowIndex==0)
                  row=vo.first();
              else
                  row=vo.next();
                 row.setAttribute("ChkFlag", newValue.booleanValue());
              rowIndex=1;
            u.addPartialTargets(tableDocuments);
        }Please help!!.
    Thanks & Regards,
    Santosh.
    jdeve 11.1.1.4.0

    Can you check this sample in the blog post?
    http://sameh-nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html
    Thanks,
    Navaneeth

  • 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

  • How Do I Present Result of Multiple Rows Using JavaBean

    How do I present to my users multiple rows that returned by a query using JavaBean?

    Well you're getting everything back in a ResultSet, right? It's not really a good idea to do much with that ResultSet beyond taking all the data it contains and sticking it in some other sort of data structure. ResultSets rely on a connection to retrieve the data, and once the connection is lost, so is the data they contain.
    So, if you have a ResultSet that contains the results of a query on a table, let's say Users, then you could put the results into a collection of some sort.. Vector maybe... and return that Vector. Then you could loop through your Vector to display multiple rows to the user.

  • Get ORA-32157 when dml on multiple rows using iterations

    I've used setMaxIterations() of oracle::occi::Statement to insert 50 rows successfully but sometimes throws exception: "ORA-32157: Infinity not supported". I don't know clauses. Please help me to fix it.

    Hi,
    I try test with Non Oracle Spatial no problem. But i inserted multiple rows include geometry value, this occurs errors "ORA-32157: Infinity not supported"
    According code:
    // I has table in Oracle Spatial 10g: PARCEL(ID, NAME, AREA, VARCANT, CREATEDDATE, SHAPE)
    //conn is instance of oracle::occi::Connection
    // ID: NUMBER(10,0):
    // NAME: VARCHAR(255)
    //AREA: NUMBER(20,8) // double
    //VACANT: VARCHAR(255);
    //CREATEDDATE: DATE
    // SHAPE: MDSYS.SDO_GEOMETRY
    conn ->OCCI_CreateStatement("INSERT INTO PARCEL(ID, NAME, AREA, VACANT, CREATEDDATE, SHAPE) VALUES (:1, :2, :3,:4, :5,:6)");
    oracle::occi::Statement* occi_stm=NULL;
    occi_stm->setMaxIterations(200);
    occi_stm->setMaxParamSize(2,255);
    occi_stm->setMaxParamSize(4,255);
    int count = 200;
    for(int i=0; i< count; i++)
    occi_stm->setInt(1, i+1);
    occi_stm->setString(2,"PARCEL");
    occi_stm->setDouble(3,100);
    occi_stm->setString(4,"FALSE");
    oracle::occi::Date val(conn ->GetOcciEnvironment(),2008,4,1,12,0,0);
    //set date = 01/04/2008 12:00:00
    occi_stm->setDate(5,val);
    //sdogeom is oracle::occi::PObject*. it stores shape data
    cci_stm->setObject(6,sdogeom);
    if (i<count-1)
    occi_stm->addIteration();
    int update_num = occi_stm->executeUpdate();
    conn ->OCCI_TerminateStatement(occi_stm);
    conn ->OCCI_Commit();
    //End code.
    Please help me. Thanks.

  • Joining multiple tables using ANSI join

    Hi,
    I need to join 4 tables using ANSI join. Lets say they are A,B,C adn D. A and B has a common column called x. C and D had a common column called y. I wrote a query like this
    select * from A left outer join B on (A.x=B.x),
    C left outer join D on (C.y =D.y)
    its not working!!!
    I need to use ANSI join.
    can any body help me please???

    Hi,
    But is there is any common column between A,C or B,C or D,A?
    Let me know.

  • FETCH multiple rows into different variables

    Dear all,
    i would like to have a loop to fetch 2 rows into 2 separate variables at a time. Does anybody have a clue how could I do this?
    Thanx

    You can't do it with a FOR record IN cursor LOOP. You'll have to do it the old-fashioned way, something like this:
    DECLARE
       CURSOR c1 IS SELECT blah....
       r1 C1%ROWTYPE;
       r2 C1%ROWTYPE;
    BEGIN
       OPEN c1;
       LOOP
          FETCH c1 INTO r1;
          IF C1%NOTFOUND THEN
             EXIT;
          END IF;
          FETCH c1 INTO r2;
          IF C1%NOTFOUND THEN
             EXIT;
          END IF;
          do_some_stuff;
       END LOOP;
       CLOSE c1;
    END;
    /Cheers, APC

  • Updating multiple rows using join condition

    Hi All,
    CREATE OR REPLACE
    PROCEDURE update_t
    IS
    BEGIN
    FOR emp_rec IN (SELECT EMPLOYEE_ID,FIRST_NAME,LAST_NAME FROM hr.employees)
    LOOP
    UPDATE
    hr.employees1
    SET
    FIRST_LAST= (
    select concat(FIRST_NAME,LAST_NAME) from hr.employees where emp_rec.EMPLOYEE_ID=197);
    END LOOP;
    END update_t;
    I am trying to update first_last column in employees1 table. when i execute this procedure , i am getting the error
    Error report:
    ORA-01427: single-row subquery returns more than one row
    ORA-06512: at "SYSTEM.UPDATE_T", line 13
    ORA-06512: at line 1
    01427. 00000 - "single-row subquery returns more than one row"
    Please let me know a solution for this.
    Thanks,
    Manikandan

    Hello Manikandan,
    in your inner SQL the resultset is not restricted to give just one row.
    Try this
    UPDATE hr.employees1 SET
    FIRST_LAST= (select concat(FIRST_NAME,LAST_NAME) from hr.employees where emp_rec.EMPLOYEE_ID=hr.employees.employee_id);Your version did not have any restriction on the rows selected from hr.employees. You gave a where condition that is unrelated to the query.
    The best solution for your problem is to avoid the PL/SQL loop completely. You could try something like this:
    update
       (select
           e1.first_last,
           e.first_name,
           e.last_name
        from
           hr.employees1 e1,
           hr.employees e
        where
           e1.employee_id=e.employee_id) set
       first_last=first_name||last_name;But beware, updates on joins just work under some restrictions. The key of the table to be updated must be the key of the join. (key preserved is the word to look up.)
    Hope that helps,
    dhalek

  • How to filter out multiple rows , using multiple selection criteria ?

    Dear Expert's,
    I am stuck with a problem while designing my dasboard.
    I have data in the following format.
    Year - Quarter - Customer - Division - KF1 - KF2
    2005 - Q1 - SAP - Consulting - 10 - 20
    2005 - Q2 - IDE - Food - 20 - 10
    2005 - Q2 - SAP - Jets - 12 - 11
    2006 - Q2 - RAM - Jets - 11 - 11
    What i wish to do, is to create radio box(for selection) to choose any Year, Quarter , Customer & Division
    eg if the user chooses 2005 , i want to display 3 line entries
    2005 - Q1 - SAP - Consulting - 10 - 20
    2005 - Q2 - IDE - Food - 20 - 10
    2005 - Q2 - SAP - Jets - 12 - 11
    if the user further selects quarter - Q2 (without disturbing the selection on for year ) the result should be
    2005 - Q2 - IDE - Food - 20 - 10
    2005 - Q2 - SAP - Jets - 12 - 11
    If the selection from year is removed (still maintaining the selection on quarter Q2 ) the result should show
    2005 - Q2 - IDE - Food - 20 - 10
    2005 - Q2 - SAP - Jets - 12 - 11
    2006 - Q2 - RAM - Jets - 11 - 11
    Simply i need to create a filer for all the fields.
    The issue that i am facing with filer component is that - 1 - it returns only one desitnation row , 2 - you can only get Key values in result set
    Issue with combo box is i cannot select multiple fields (dimensions) using it .
    Please suggets .
    Thanks in Advance

    Hi Ankit,
    There is a workarround that requires some excel work.
    Here you need to follow the above mentioned steps along with this you need an additional combo box (wont be displayed at runtime, it will fetch the entire data if we select blank for the first combo box).
    Now suppose we are using 2 combobox C1 and C2 and our data is from B3 to F6.
    Now for C1 (one we are using for selection)
    1. select the labels as Sheet1!$B$2:$B$6 (a blank cell is added for all selection)
    2. Insertion type as filtered Rows
    3. Take source data as Sheet1!$B$2:$F$6 (includeing one blank row)
    4. selected Items as none
    5. for C2 labels as Sheet1!$A$3:$A$6 source data as Sheet1!$B$3:$F$6 destination as Sheet1!$B$14:$F$17.
    6. Selected Item : Sheet1!$B$9  (blank  Type dynamic). So it will select the entire table, if nothing is selected.
    7. take a Grid component and map it to Sheet1!$H$9:$L$12. use formula as =IF(IF($B$9="",B14,B9)=0,"",IF($B$9="",B14,B9)) on cell H9. Where we take H6 to L12 as final data set. Tis will become the data for next set fo Combo box for further selection.
    8. follow the same steps for other combobox selections.
    9. control the dynamic visibility of grids on the basis of Destination cell (like B9).
    Revert if you need further clarification.
    Regards,
    Debjit

Maybe you are looking for