View a single table-row as multiple rows in a GridControl

Hi,
is it possible to distribute the entries of a single row of a table/RowSetInfo over multiple lines of a GridControl?
I've seen an example on the Internet (http://www2.gol.com/users/tame/swing/examples/JTableExamples4.html) which does this without database connection but it seems as if it's necessary to replace the default JTable, TableModel and UI by customized ones. As far as I've seen it's not possible to replace the JTable which is used by a GridControl? So is there any other way to do this? (A modification of the JTable-UI itself doesn't suffice as the JTable yields wrong row- and column-numbers on mousclick-events and therefore the components of the second row are not enabled properly).
Thanks in advance
null

|I've seen an example on the Internet |(http://www2.gol.com/users/tame/swing/exampl|es/JTableExamples4.html) which does this |without database connection but it seems as |if it's necessary to replace the default |JTable, TableModel and UI by customized |ones.
You wont be able to replace the JTable. But you can change all the attributes on the internal table which the grid uses (see getTable() method). The datamodel for the grid is impemented by oracle.dacf.control.swing.GridDataSource. You can possibly extend this class. You can also change the Table column model and the renderers used by the Table.
|So is there any other way to do this? (A |modification of the JTable-UI itself doesn't |suffice as the JTable yields wrong row- and |column-numbers on mousclick-events and |therefore the components of the second row |are not enabled properly).
Could you expain how the mapping between cell renderer and the table (row, col) is done in the extended JTable - which class ?.
(http://www2.gol.com/users/tame/swing/exampl|es/JTableExamples4.html)
null

Similar Messages

  • Display values of a single field in a multiple rows in a table region

    Hi Tech-Gurus,
    I want to display values of a single field ( which is in a table region) in multiple rows and also need to restrict the values from decimal number. If i click save, then it will throw exception "Decimal not allowed".
    xxxxxx
    yyyyyy
    Reg.No
    1234
    5678
    7654
    I need to display the values of REG.NO in different rows like,
    1234
    5678
    7654
    and also need to validate as well against Decimal values.
    Please help me with the code how i will iterate ?

    Hi,
    I am assuming you are talking about displaying substrings from the Reg No in different rows. For this you would need to write a query which identifies the substrings and creates a separate row for each (ensure you choose values for all other columns in the table row). Kindly let me know if the understanding is incorrect.
    To validate against decimal value you can use the java code by checking the difference of the number and the number on which modulus has been applied. Hope that helps.
    Regards
    Sumit

  • Split single row in multiple rows based on date range

    I need sql script that can split single row in multiple rows based on start date and end date column in table.
    Thank you

    I agree to your suggestion of having a dates table permanently in the database. Thats how we also do for most of our projects as well
    But in most projects the ownership  of table creation etc lies with the client as they will be the DBAs and will be design approval authorities. What I've seen is the fact that though
    many of them are in favour of having calendar table they dont generally prefer having a permanent table for numbers in the db. The best that they would agree is for creating a UDF which will have
    tally table functionality built into it based on a number range and can be used in cases where we need to multiply records as above.
    Wherever we have the freedom of doing design then I would also prefer creating it as a permanent table with required indexes as you suggested.
    >> many of them are in favour of having calendar table they dont generally prefer having a permanent table
    Those people do not understand about database and are not DBAs :-)
    It is our job to tell them what is right or wrong.
    ** This is a real story! I had a client several years back, who was the CEO of a software company.
    He use the query:
    select * from table_name
    In order to get the last ID!
    The table_name was actually a view that took data from several tables, and the main table that he wanted to get the ID included several string columns, with lot of data!
    he actually pulled all this data to the application, just to get the lat ID in a specific table!
    It is our job as Consultants or DBAs to fix's his misunderstanding :-)
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Split single row into multiple rows containing time periods

    Hi,
    I have a table with rows like this:
    id, intime, outtime
    1, 2010-01-01 00:10, 2010-01-3 20:00
    I would like to split this row into multiple rows, 1 for each 24hr period in the record.
    i.e. The above should translate into:
    id, starttime, endtime, period
    1, 2010-01-01 00:10, 2010-01-02 00:10, 1
    1, 2010-01-02 00:10, 2010-01-03 00:10, 2
    1, 2010-01-03 00:10, 2010-01-03 20:00, 3
    The first starttime should be the intime and the last endtime should be the outtime.
    Is there a way to do this without hard-coding the 24hr periods?
    Thanks,
    Dan Scott
    http://danieljamesscott.org

    Thanks for all the feedback, Dan.
    It appears that the respective solutions provided will give you: a) different resultsets and b) different performance.
    Regarding your 'truly desired resultset' you haven't answered all questions from my previous post (there are differences in the provided examples), but anyway:
    I found that using CEIL or ROUND makes quite a difference, using my 'simple 3 record testset' (30 records vs. 66 records got initially returned, that's less than half of the original). That's quite a difference. However, I must call it a day (since it's almost midnight) for now, so there's room for more optimizement and I haven't thoroughly tested.
    But this might hopefully make a difference performancewise when compared to my previous 'dreaded example':
    SQL> drop table t;
    Table dropped.
    SQL> create table  t as
      2  select 1 id, to_date('2010-01-01 00:10', 'yyyy-mm-dd hh24:mi') intime, to_date('2010-01-03 20:00', 'yyyy-mm-dd hh24:mi') outtime from dual union all
      3  select 2 id, to_date('2010-02-01 00:10', 'yyyy-mm-dd hh24:mi') intime, to_date('2010-02-05 20:00', 'yyyy-mm-dd hh24:mi') outtime from dual union all
      4  select 3 id, to_date('2010-03-01 00:10', 'yyyy-mm-dd hh24:mi') intime, to_date('2010-03-03 00:10', 'yyyy-mm-dd hh24:mi') outtime from dual;
    Table created.
    SQL> select id
      2  ,      max(intime)+level-1 starttime
      3  ,      case
      4           when level = to_char(max(t.outtime), 'dd')
      5           then max(t.outtime)
      6           else max(t.intime)+level
      7         end outtime
      8  ,      level period      
      9  from   t
    10  connect by level <= round(outtime-intime)
    11  group by id, level
    12  order by 1,2;
            ID STARTTIME           OUTTIME                 PERIOD
             1 01-01-2010 00:10:00 02-01-2010 00:10:00          1
             1 02-01-2010 00:10:00 03-01-2010 00:10:00          2
             1 03-01-2010 00:10:00 03-01-2010 20:00:00          3
             2 01-02-2010 00:10:00 02-02-2010 00:10:00          1
             2 02-02-2010 00:10:00 03-02-2010 00:10:00          2
             2 03-02-2010 00:10:00 04-02-2010 00:10:00          3
             2 04-02-2010 00:10:00 05-02-2010 00:10:00          4
             2 05-02-2010 00:10:00 05-02-2010 20:00:00          5
             3 01-03-2010 00:10:00 02-03-2010 00:10:00          1
             3 02-03-2010 00:10:00 03-03-2010 00:10:00          2
    10 rows selected.
    SQL> By the way: I'm assuming you're on 10g, is that correct?
    Can you give us some information regarding the indexes present on your table?

  • Single row to multiple row

    Hi All,
    I need a help in a query to convert a row to multiple row.
    I have two tables
    TableA
    ID1 attribute1_Name attribute1_code
    ID1 attribute2_Name attribute2_code
    ID2 attribute1_Name attribute1_code
    ID2 attribute2_Name attribute2_code
    ID2 attribute3_Name attribute3_code
    ID4 attribute1_Name attribute1_code
    ID4 attribute2_Name attribute2_code
    ID4 attribute3_Name attribute3_code
    ID4 attribute4_Name attribute4_code
    attribute name and attribute code can vary 1 to n for different id
    let's one ID has maximum no of codes 20 , then TableB will have columns like (EMP ID attribuute_code1 attribuute_code2 .... attribuute_code20)
    in TableB all the columns named attribuute_code1 ..attribuute_code20 will have value for those attribute
    TableB ( )
    Column EMP ID attribuute_code1 attribuute_code2 attribuute_code3 attribuute_code4
    EMP1 ID1 attribute1_value attribute2_value null null
    EMP2 ID1 attribute1_value attribute2_value attribute3_value null
    EMP3 ID2 attribute1_value attribute2_value attribute3_value attribute4_value
    EMP and ID is composite p.k
    My resulting table should have
    EMP1 ID1 attribute1_value
    EMP1 ID1 attribute2_value
    EMP2 ID1 attribute1_value
    EMP2 ID1 attribute2_value
    EMP2 ID1 attribute3_value
    EMP3 ID2 attribute1_value
    EMP3 ID2 attribute2_value
    EMP3 ID2 attribute3_value
    EMP3 ID2 attribute4_value
    Thanks in advance ...

    hi ,
    i am using oracle 10g
    i tried the way u said , but i'm getting few uncecessary rows .
    here i am giving u the example script
    for table_A
    create table TABLE_A
    ID VARCHAR2(50),
    ATTRIBUTE_NAME VARCHAR2(50),
    ATTRIBUTE_CODE VARCHAR2(50)
    insert into TABLE_A (ID, ATTRIBUTE_NAME, ATTRIBUTE_CODE)
    values ('ID1', 'attribute1_Name', 'attribute1_code');
    insert into TABLE_A (ID, ATTRIBUTE_NAME, ATTRIBUTE_CODE)
    values ('ID1', 'attribute2_Name', 'attribute2_code');
    insert into TABLE_A (ID, ATTRIBUTE_NAME, ATTRIBUTE_CODE)
    values ('ID2', 'attribute1_Name', 'attribute1_code');
    insert into TABLE_A (ID, ATTRIBUTE_NAME, ATTRIBUTE_CODE)
    values ('ID2', 'attribute2_Name', 'attribute2_code');
    insert into TABLE_A (ID, ATTRIBUTE_NAME, ATTRIBUTE_CODE)
    values ('ID2', 'attribute3_Name', 'attribute3_code');
    insert into TABLE_A (ID, ATTRIBUTE_NAME, ATTRIBUTE_CODE)
    values ('ID4', 'attribute1_Name', 'attribute1_code');
    insert into TABLE_A (ID, ATTRIBUTE_NAME, ATTRIBUTE_CODE)
    values ('ID4', 'attribute2_Name', 'attribute2_code');
    insert into TABLE_A (ID, ATTRIBUTE_NAME, ATTRIBUTE_CODE)
    values ('ID4', 'attribute3_Name', 'attribute3_code');
    insert into TABLE_A (ID, ATTRIBUTE_NAME, ATTRIBUTE_CODE)
    values ('ID4', 'attribute4_Name', 'attribute4_code');
    for table_b
    create table TABLE_B
    EMP_NAME VARCHAR2(40),
    ID VARCHAR2(50),
    ATTRIBUTE1_VALUE NUMBER,
    ATTRIBUTE2_VALUE NUMBER,
    ATTRIBUTE3_VALUE NUMBER,
    ATTRIBUTE4_VALUE NUMBER
    insert into TABLE_B (EMP_NAME, ID, ATTRIBUTE1_VALUE, ATTRIBUTE2_VALUE, ATTRIBUTE3_VALUE, ATTRIBUTE4_VALUE)
    values ('EMP1', 'ID1', 10, 20, null, null);
    insert into TABLE_B (EMP_NAME, ID, ATTRIBUTE1_VALUE, ATTRIBUTE2_VALUE, ATTRIBUTE3_VALUE, ATTRIBUTE4_VALUE)
    values ('EMP2', 'ID1', 30, 40, 50, null);
    insert into TABLE_B (EMP_NAME, ID, ATTRIBUTE1_VALUE, ATTRIBUTE2_VALUE, ATTRIBUTE3_VALUE, ATTRIBUTE4_VALUE)
    values ('EMP3', 'ID2', 60, 70, 80, 90);
    resulting table data shud come like: let it be table_c
    create table TABLE_C
    EMP_NAME VARCHAR2(50),
    ID VARCHAR2(50),
    ATTRIBUTE_CODE VARCHAR2(50),
    ATTRIBUTE_VALUE NUMBER
    insert into TABLE_C (EMP_NAME, ID, ATTRIBUTE_CODE, ATTRIBUTE_VALUE)
    values ('EMP1', 'ID1', 'attribute1_code', 10);
    insert into TABLE_C (EMP_NAME, ID, ATTRIBUTE_CODE, ATTRIBUTE_VALUE)
    values ('EMP1', 'ID1', 'attribute2_code', 20);
    insert into TABLE_C (EMP_NAME, ID, ATTRIBUTE_CODE, ATTRIBUTE_VALUE)
    values ('EMP2', 'ID1', 'attribute1_code', 30);
    insert into TABLE_C (EMP_NAME, ID, ATTRIBUTE_CODE, ATTRIBUTE_VALUE)
    values ('EMP2', 'ID1', 'attribute2_code', 40);
    insert into TABLE_C (EMP_NAME, ID, ATTRIBUTE_CODE, ATTRIBUTE_VALUE)
    values ('EMP2', 'ID1', 'attribute3_code', 50);
    insert into TABLE_C (EMP_NAME, ID, ATTRIBUTE_CODE, ATTRIBUTE_VALUE)
    values ('EMP3', 'ID2', 'attribute1_code', 60);
    insert into TABLE_C (EMP_NAME, ID, ATTRIBUTE_CODE, ATTRIBUTE_VALUE)
    values ('EMP3', 'ID2', 'attribute2_code', 70);
    insert into TABLE_C (EMP_NAME, ID, ATTRIBUTE_CODE, ATTRIBUTE_VALUE)
    values ('EMP3', 'ID2', 'attribute3_code', 80);
    insert into TABLE_C (EMP_NAME, ID, ATTRIBUTE_CODE, ATTRIBUTE_VALUE)
    values ('EMP3', 'ID2', 'attribute4_code', 90);
    thanx

  • I need to divide selected row into multiple rows when i navigate  ADF 11g

    Hi
    I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
    I need to divide selected row into multiple rows when i navigate to other page . Scenario - in first page i'm displaying some records with columns like empno , empstatus , empworkdepts ,curdepts
    Here empworkdepts gives the numeric number like no of departments work shifts 3 or 4 or 5. when i select any particular employee and fire next button to navigate next page.I have to divide the selected employee with same information into multiple times based on the empworkdepts value.
    empno empstatus empworkdepts curdept
    001 eds 2 TS
    002 hr 1 FO
    003 eds 4 TS
    *004 eds 3 TS*
    now i selected employee 004 , when i navigate to next page.
    Empno EmpStatus EmpWorkDepts CurDept
    004 eds 3 TS
    004 eds 3 TS
    004 eds 3 TS
    i did with java code in bean .but not stable .
    any help............
    thanks advance.............
    Edited by: user9010551 on May 5, 2010 10:48 PM
    Edited by: user9010551 on May 10, 2010 11:31 PM

    user9086775 wrote:
    Hi Experts,
    I have a requirment where i need to fetch parts of a single row into multiple rows from a singlt Query, i am sure it is possible using Pivots but just cant figure out an approach. Any help on this is highly appriciapted.
    Requirment:
    This is a sample set record in a table
    Product     Sub Product          Name    Age
    New Car    Nissan                   Tom        49
    New Car    Nissan                   Jack         36
    Old Car      Audi                     Sam         24
    Old Car      Jaguar                  Pint          26
    Old Car      Audi                     Smith       41
    I need to be able to fetch the above data in the below fashion
    Product     Sub Product          Name    Age
    New Car
    Nissan
    Tom        49
    Jack        36
    Old Car     
    Audi            
    Sam        24
    Smith      41
    Jaguar                   Pint         26Please help with ideas as to how can i achive the above without using PLSQL.
    Thanks in advance!You should be doing this in the client on not in the DB. Use the reporting tool that you use to do this.
    For example if you are in SQL Plus you can use the BREAK command.

  • Urgent: How to break 1 Row into Multiple Rows

    Hi Experts,
    I have a requirment where i need to fetch parts of a single row into multiple rows from a singlt Query, i am sure it is possible using Pivots but just cant figure out an approach. Any help on this is highly appriciapted.
    Requirment:
    This is a sample set record in a table
    Product Sub Product Name Age
    New Car Nissan Tom 49
    New Car Nissan Jack 36
    Old Car Audi Sam 24
    Old Car Jaguar Pint 26
    Old Car Audi Smith 41
    I need to be able to fetch the above data in the below fashion
    Product Sub Product Name Age
    New Car
    Nissan
    Tom 49
    Jack 36
    Old Car
    Audi
    Sam 24
    Smith 41
    Jaguar Pint 26
    Please help with ideas as to how can i achive the above without using PLSQL.
    Thanks in advance!

    user9086775 wrote:
    Hi Experts,
    I have a requirment where i need to fetch parts of a single row into multiple rows from a singlt Query, i am sure it is possible using Pivots but just cant figure out an approach. Any help on this is highly appriciapted.
    Requirment:
    This is a sample set record in a table
    Product     Sub Product          Name    Age
    New Car    Nissan                   Tom        49
    New Car    Nissan                   Jack         36
    Old Car      Audi                     Sam         24
    Old Car      Jaguar                  Pint          26
    Old Car      Audi                     Smith       41
    I need to be able to fetch the above data in the below fashion
    Product     Sub Product          Name    Age
    New Car
    Nissan
    Tom        49
    Jack        36
    Old Car     
    Audi            
    Sam        24
    Smith      41
    Jaguar                   Pint         26Please help with ideas as to how can i achive the above without using PLSQL.
    Thanks in advance!You should be doing this in the client on not in the DB. Use the reporting tool that you use to do this.
    For example if you are in SQL Plus you can use the BREAK command.

  • Rows to multiple rows

    Hi Tom,
    Table having huge volume of data and want to split single row to multiple rows.I mean split based on acc1 and id1
    ex:
    SELECT acc1,id1,acc2, id2 FROM TGDW_ACCT
    acc1 id1 acc2 id2
    6000161114 002 6000251684 001
    6000161115 001 6000251687 004
    Expecting o/p
    acc1 id1
    6000161114 002
    6000251684 001
    6000161115 001
    6000251687 004
    Thanks and Regards,
    MR

    Hi,
    drop table DENEME2;
    create table DENEME2 (acc1 number,id1 VARCHAR2(10),acc2 number,id2 VARCHAR2(10));
    BEGIN
    INSERT INTO DENEME2 VALUES ('6000161114','002','6000251684','001');
    INSERT INTO DENEME2 VALUES ('6000161115','001','6000251687','004');
    COMMIT;
    END;
    UYGULAMA@XE> SELECT ACC1,ID1 FROM DENEME2
    2 UNION ALL
    3 SELECT ACC2,ID2 FROM DENEME2;
    ACC1 ID1
    6000161114 002
    6000161115 001
    6000251684 001
    6000251687 004

  • How can i select some row from multiple row in the same group of data

    I want to select some row from multiple row in the same group of data.
    ColumnA        
    Column B
    1                  OK
    1                   NG
    2                   NG
    2                          NG
    3                          OK
    3                          OK
    I want the row of group of
    ColumnA if  ColumnB contain even 'NG'
    row , select only one row which  Column B = 'NG'
    the result i want = 
    ColumnA         Column B
    1                         NG
    2                   NG
    3                          OK
    Thank you

    That's some awful explanation, but I think this is what you were driving at:
    DECLARE @forumTable TABLE (a INT, b CHAR(2))
    INSERT INTO @forumTable (a, b)
    VALUES
    (1, 'OK'),(1, 'NG'),
    (2, 'NG'),(2, 'NG'),
    (3, 'OK'),(3, 'OK')
    SELECT f.a, MIN(COALESCE(f2.b,f.b)) AS b
    FROM @forumTable f
    LEFT OUTER JOIN @forumTable f2
    ON f.a = f2.a
    AND f.b <> f2.b
    GROUP BY f.a

  • Creation of view on single table?

    Hi Team,
    I have a requirement like for creaation of view on single table (QMEL) in SAP ECC side...
    Note: in this table i need 2o fields only....not all fields.
    First can we create view on single table?
    if  'Yes' can any one tell , How we can creat view on single table?
    While creation of view we have four options..
    1)Data base view
    2)Projection View
    3)Maintanace view
    4)Help view
    in these four options which tyep of view we can choose for creation?
    please can any one suggest me and do the need full..
    i am waiting your responce...

    I quickly skimmed the links provided by others; and in my short discussions with DBA friend of mine; and other sources... partition should be based on user needs, sql server resources, and partition maintenance time.
    Lets say you have 50 regions and 1) partition the data by region, AND 2) place each partition on a different disk, and 3) i am in Texas and only query data in the Texas region then performance will be increased because I am not scanning through the other
    49 regions.
    If you have temporal data (dependent on time - like say financial reports that are sent to the SEC) - the partitions are by time: 1) data from last 13 months is stored on SSD, 2) data 13 months - 3 years old is on HDD, and 3) data >3 years old is stored
    on compressed HDD.  (i say 13 months so you have an entire year and month to date)  --- accountants can get the current data VERY quickly, project managers who need to see a 3 year trend will not have to wait long, and when the SEC calls, who cares?,
    the reports can be queued and generated at night when no one is working. 
    I see partitions are giving the users the least amount of data to query which speeds their results.

  • Is there a way to open SSRS 2005 tree view in a table in a Details row upward?

    Hi.
    I building some reports with SSRS, and showing data in a table. The table has one Details row that forms at the end multiple rows with the tree view (+ and -).
    Is there a way to open the tree view upwards and not downwards so that the children of level 2, 3 etc come over the parent row?
    I've goggled it everywhere, but I don't seem to find the answer. If anyone could help me out, I would appreciated.
    Thanks
    Novi

    Hi again.
    And by the way, this is a parent child hierarchy. I have made a group details row with a "ParentUniqeName" on Parent Group text box and "UniqueName" on the Group On expression box by using Edit Group menu.
    In addition, there is a drill down functionality on the table.
    Now, it seems that the order of the items is correct, I just want it to have the opposite order.
    Thanks again...
    Novi

  • Join tables and replicate (multiple rows)

    Hi,
    i have two tables TAB1 (A, B, C) and TAB2 (C, D)
    i want to join the tables and replicat such that the resultant table TAB3 has columns A, B, D
    select x.a, x.b, y.d from tab1 x join tab2 y on x.c=y.c where y.d=1;
    but the problem here is that the above command gives multiple rows and i need all those to be in the target table. When i am using SQLEXEC-QUERY in the mapping, only the first search result is being entered into the TAB3. Then i Found out that sqlexec will return only one value. But i need all the search results to be replicated.
    What alternatives are there and what GG recommend in such use case?
    Any helpful advice is much appreciated.
    thanks,
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

    the problem to use SP to check every time before insert/update is that there will be around 15 tables not 2 and there will be lakhs of rows in each table, SP which checks every insert will cause a lot of overhead and lag. I cannot afford that.
    More over there will be around 60 values of D and or each value of D there will be Lakhs of rows associated in TAB1
    I need to set up different extract and replicat processes for each set of rows associated with each value of D
    for example the values of column D are 1-30
    for D=1 there are 1.5lakh rows in TAB1 and EXT1, REP1 for this set of rows
    D=2 => 2lakhs rows in TAB2 and EXT2, REP2 for this set of rows
    D=3 => 1lakhs rows in TAB2 and EXT3, REP3 for this set of rows...etc
    this is to ensure that if i want to stop replicating data associated with D=1(which i need to do) i can stop only REP1 and keep the rest of the data associated with D=2-30 in sync
    As far as materialized views are concerned, i need to do it with goldengate only
    Thanks

  • Table row with multiple row

    Hi All,
    I am using NWDS 2004
    I want to have a table with multiple rows in a row.
    Can any one help ?
    Thanks

    hi Akhilesh,
    Use tree table for your requirement.
    [Tree Table Tutorial|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/de59f7c2-0401-0010-f08d-8659cef543ce]
    Hope this helps!
    Monalisa

  • Single Update command to update multiple rows with multiple rows

    Hi Gurus!
    Can I update table A with a result set of table b (multiple rows returns) where a.c1 = b.c1
    regards,
    SH

    As Joel mentioned this update will update all rows in a table based on another one:
    update tableA set seq_no = (select seqno from tableB where tableA.ID = tableB.ID)
    Also, any rows that don't match the select criteria will get updated to null. This could be very bad depending on what you want to do.
    To update a subset of tableA with data from tableB:
    update tableA set seq_no = (select seqno from tableB where tableA.ID = tableB.ID)
    where exists (select 1 from tableB where tableA.ID = tableB.ID)

  • SSIS + split 1 row in multiple rows based on multiple columns

    Hi all,
    I have a flat file 
    Shop ID        Check 1        Check 2            Check 3
    500 OK
    OK NOK
    I want to transform this to staging as 3 rows
    Shop ID       Check number 
    Result
    500 1
    OK
    500 2
    OK
    500 3
    NOK
    Anyone can tell me how to tackle this?

    I basically have a table that has the columns I specified
    Shop Check 1
    Check 2 Check 3
    500 OK
    OK NOK
    I now want to actually have them loaded in another table where I have multiple rows for each shop.
    Shop Check
    Result
    500
    1 ok
    500 2
    ok
    500 3
    nok
    So basically I want to go from a column view to a row view. Is this possible?
    In other words, I do see multiple rows for each shop ID which is awesome! But I would like to have instead of the result that number of the check. (1,2,3) with the result next to it :)
    500  OK
    500 OK
    500 NOK

Maybe you are looking for