Create empty row

Hi All,
I face some problem to create empty row. I need a empty row to show user that is end of operation.
The output that I need as below.
OprA     OprB     Data
A100     (null)     Definition
(null)     B100     Definition
(null)     (null)     (null)
A200     B200     Definition
A200     (null)     Definition
(null)     B200     Definition
(null)     B200     Definition
all of the null column from row 1, 2, 4, 5, 6, 7 is direct select from table. The row 3 is what I want to create. example A100 is same group with B100. After show last B100, is end of operation '100'. and need a empty or null row. Then continue with operation '200'.
Thanks for who help me on this.

Hi Skymonster,
Not sure how you would be doing your processing.
However assuming if you are doing it one after the other, meanig you first process 100 display it (here is where you want to append 200 now)
here is one way of doing it.
with data as (
select 'A100' a,null b ,'DEFINiTION' c from dual union all
select null,'B100','DEFINiTION' from dual),
dat2 as (
select null,'B200','DEFINiTION' from dual union all
select 'A200',null,'DEFINiTION' from dual union all
select null,'B200','DEFINiTION' from dual)
select * from data
group by rollup(a,b,c)
having (grouping(a)=1 and grouping(b)=1 and grouping(c)=1) or
(grouping(a)=0 and grouping(b)=0 and grouping(c)=0)
union all
select * from dat2However i am of the strong opinion that formatting should be handled by front end application and not in such a manner especially in this case.
Peter's example is much better than mine where you directly uinon NULL
Howver if you can give a clue how we can identify end of a record that will be helpfull.
Regards,
Bhushan

Similar Messages

  • Creating emty rows in View Object

    Hi,
    My Application is ADFBC.
    My requirement is create empty rows while page loading.I am using three tables one is master and another two are detailed tables.
    creation form is: master form
    detailed table
    detailed table.
    when i am pressing create button the form shows two emty rows in detailed table and 7 empty rows in second detailed table.
    i wrote code in AMImpl is
    public void createcomp() {
    SequenceImpl s = new SequenceImpl("ATTRIBUTE_ID_S", getDBTransaction());
    Number next = s.getSequenceNumber();
    Number n=(Number)s.getData();
    Number ssid=next+(new Number(1));
    FbCmnEmcStorageSystemsVOImpl fbCmnEmcStorageSystemsVO = (FbCmnEmcStorageSystemsVOImpl) this.getFbCmnEmcStorageSystemsVO1();
    FbCmnEmcStorageProcessorsVOImpl fbCmnEmcStorageProcessorsVO = (FbCmnEmcStorageProcessorsVOImpl) this.getFbCmnEmcStorageProcessorsVO2();
    FbCmnEmcStorageComponentsVOImpl fbCmnEmcStorageComponentsVO = (FbCmnEmcStorageComponentsVOImpl) this.getFbCmnEmcStorageComponentsVO2();
    // FbCmnEmcStorageSystemsVORow fbCmnEmcStorageSystemsVORow = (FbCmnEmcStorageSystemsVORow) fbCmnEmcStorageSystemsVO.createRow();
    for(int i=1;i<=2;i++)
    FbCmnEmcStorageProcessorsVORow fbCmnEmcStorageProcessorsVORow = (FbCmnEmcStorageProcessorsVORow) fbCmnEmcStorageProcessorsVO.createRow();
    fbCmnEmcStorageProcessorsVORow.setStorageSystemId(new Number(ssid));
    fbCmnEmcStorageProcessorsVORow.setSpId(new Number(i));
    for(int i=0;i<7;i++) {
    FbCmnEmcStorageComponentsVORow fbCmnEmcStorageComponentsVORow = (FbCmnEmcStorageComponentsVORow) fbCmnEmcStorageComponentsVO.createRow();
    fbCmnEmcStorageComponentsVORow.setStorageSystemId(new Number(ssid));
    fbCmnEmcStorageComponentsVORow.setComponentName("sample"+i);
    i am calling this method while page loading using these procedure:
    expose the method as a client method and create a method binding for it (in pageDef). Then create an invokeAction (also pageDef but Executables section) pointing to the method binding. Set the invokeAction refresh condition (property of it) to
    ${!adfFacesContext.postback}
    but i am not getting emtyrows in display.
    what i have to do?please help me.
    Thanks,

    Hi,
    see this section in the developer guide for the answer
    http://download-uk.oracle.com/docs/html/B25947_01/bcdcpal004.htm#sthref823
    Frank

  • How can I create an empty row on a #TempTable based on an input parameter

    So if my Line of Business is 'MC' or 'MG', I have to go over to Oracle and get its data accordingly. Then, when I create my final report result set, I think I'll want to UNION in that result set if my Parameter is 'MC' or 'MG'. I don't think I can UNION
    based on the value of the Parameter. So my thought process was to create an empty row on my #TempTable so when I UNION and my parameter is NOT 'MC' or 'MG' then it will have nothing to UNION in. My struggle is how do I create an empty row in my #TempTable
    if my parameter is NOT 'MC' or 'MG'
    If I am wwwaaayyy off here, please tell me so.
    This is my #TempTable Creation SQL...
    IF EXISTS
    (SELECT 1
    FROM [#TempTable_LineOfBusiness_Parameter]
    WHERE [#TempTable_LineOfBusiness_Parameter].[RESULT] IN ('MC','MG'))
    BEGIN
    SELECT *
    INTO [#TempTable_Market_Prominence_Member_Data]
    FROM OPENQUERY
    (RPDMHF,
    'SELECT HCFA_NAME_ORG.NAME_ID,
    HCFA_NAME_ORG.MEMBER_ID,
    HCFA_NAME_ORG.HIC_NUMBER,
    MEMBER.NAME_FIRST,
    MEMBER.NAME_LAST,
    HCFA_DATE.START_DATE,
    HCFA_DATE.END_DATE,
    HCFA_NAME_ORG.COUNTY_CODE,
    HCFA_NAME_ORG.PART_A_PAYMENT,
    HCFA_NAME_ORG.PART_B_PAYMENT,
    HCFA_NAME_ORG.STATUS,
    HCFA_NAME_ORG.ORG_ID,
    HCFA_NAME_ORG.PLAN,
    HCFA_NAME_ORG.ENROLL_DATE,
    HCFA_NAME_ORG.PBP_ID,
    HCFA_DATE.VALUE
    FROM SC_BASE.HCFA_DATE
    LEFT JOIN SC_BASE.HCFA_NAME_ORG
    ON HCFA_NAME_ORG.NAME_ID = HCFA_DATE.NAME_ID
    LEFT JOIN AMIOWN.MEMBER
    ON TRIM(MEMBER.MEMBER_NBR) = TRIM(HCFA_NAME_ORG.MEMBER_ID)
    WHERE HCFA_DATE.INDICATOR = ''plan''
    AND HCFA_DATE.START_DATE >= ''2015-01-01''
    END
    If I add an ELSE, it always comes back and tells me the #TempTable_Market_Prominence_Member_Data already exists. As if it's creating it regardless of the Top IF.
    Thanks for your review and am hopeful for a reply.

    Hi ITBobbyP,
    The error came back from your ELSE Statement most probably caused by the reason mentioned in Hoffmann's post.
    Regarding your requirement, I would suggest you CREATE the [#TempTable_Market_Prominence_Member_Data] explicitly.
    CREATE TABLE [#TempTable_Market_Prominence_Member_Data]
    NAME_ID INT,
    MEMBER_ID INT,
    HIC_NUMBER VARCHAR(99),
    NAME_FIRST VARCHAR(99),
    NAME_LAST VARCHAR(99),
    START_DATE DATE,
    END_DATE DATE,
    COUNTY_CODE VARCHAR(99),
    PART_A_PAYMENT MONEY,
    PART_B_PAYMENT MONEY,
    STATUS VARCHAR(99),
    ORG_ID INT,
    PALN VARCHAR(99),
    ENROLL_DATE VARCHAR(99),
    PBP_ID INT,
    VALUE INT
    IF EXISTS
    (SELECT 1
    FROM [#TempTable_LineOfBusiness_Parameter]
    WHERE [#TempTable_LineOfBusiness_Parameter].[RESULT] IN ('MC','MG'))
    BEGIN
    INSERT INTO [#TempTable_Market_Prominence_Member_Data]
    SELECT *
    FROM OPENQUERY
    (RPDMHF,
    'SELECT HCFA_NAME_ORG.NAME_ID,
    HCFA_NAME_ORG.MEMBER_ID,
    HCFA_NAME_ORG.HIC_NUMBER,
    MEMBER.NAME_FIRST,
    MEMBER.NAME_LAST,
    HCFA_DATE.START_DATE,
    HCFA_DATE.END_DATE,
    HCFA_NAME_ORG.COUNTY_CODE,
    HCFA_NAME_ORG.PART_A_PAYMENT,
    HCFA_NAME_ORG.PART_B_PAYMENT,
    HCFA_NAME_ORG.STATUS,
    HCFA_NAME_ORG.ORG_ID,
    HCFA_NAME_ORG.PLAN,
    HCFA_NAME_ORG.ENROLL_DATE,
    HCFA_NAME_ORG.PBP_ID,
    HCFA_DATE.VALUE
    FROM SC_BASE.HCFA_DATE
    LEFT JOIN SC_BASE.HCFA_NAME_ORG
    ON HCFA_NAME_ORG.NAME_ID = HCFA_DATE.NAME_ID
    LEFT JOIN AMIOWN.MEMBER
    ON TRIM(MEMBER.MEMBER_NBR) = TRIM(HCFA_NAME_ORG.MEMBER_ID)
    WHERE HCFA_DATE.INDICATOR = ''plan''
    AND HCFA_DATE.START_DATE >= ''2015-01-01''
    END
    Explicitly creating the temp table will offer below benefit in this case.
    The ELSE statement is no longer needed, if the no rows get inserted into that table, it has nothing to union an empty table.
    With the column datatype defined, you can avoid such conversion error
    SELECT NULL AS COL1,NULL AS COL2 INTO #T
    SELECT COL1,COL2 FROM #T
    UNION
    SELECT 1,'ABC'--Conversion failed when converting the varchar value 'ABC' to data type int.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Create Table with extra empty row

    Hi,
    I have two problems...
    I need to create a table from DB with one extra empty row.
    Is there an easy way to do this?
    And I need a button to delete all in that table.
    something like SQL:
    delete from tableX
    Anything that helps me on the way... what I should look for?

    835652 wrote:
    Hi,
    I have two problems...
    I need to create a table from DB with one extra empty row.
    Is there an easy way to do this?this is strange requirement can you clear what is your use case ?
    >
    And I need a button to delete all in that table.
    something like SQL:
    delete from tableX
    Anything that helps me on the way... what I should look for?Try this http://baigsorcl.blogspot.com/2010/11/how-to-execute-sql-dml-statements-in.html

  • How to create editable table with one empty row ?

    I'm looking for solution how to create editable table with one empty row using ADF BC. I have seen this solution in application that was created in JHeadstart and it's very well idea to use it insead of creation form.

    hammm, i do it this:
    drop the VO on the page, select Table->ADF Table....
    so, drop the botton create, from de VO->operations->create (the firts), and right botton (mouse) Edit binding....
    in Data collection select the VO, in Select an action select CreateInsert
    luck

  • Deleting last, next 'create' creates non-empty row

    I have been struggling with this for some hours now.
    I have a table component binded to a VO, based on a EO.
    I have two buttons added to the page. A "CreateInsert" button and a "Delete" button. The delete-button has immediate = true, bc some of the values are required.
    The inputfield on each row are editable and have autosubmit = true
    If I:
    1. Create a row
    2. Edit the row's attributes
    3. Delete the row
    4. Create a row
    then the row that I deleted in step 3 shows up in step 4.
    I have also tried to commiting the data (between 2 and 3, and between 3 and 4).
    This only happens if the deleted row is the last row left in the set (iter.getEstimatedRowCount() = 1 before the delete action)
    BUT! If I set immediate = false on the delete-button, the create / delete works as expected.
    I'm running JDeveloper 11.1.1.5
    The iterator has the ChangeEventPolicy attribute set to 'ppr'
    The delete action has the RequiresUpdateModel set to 'false' - Action is set to 'removeCurrentRow'
    The create action has the RequiresUpdateModel set to 'true' - Action is set to 'createInsert'

    it never happens as you said in jdev11.1.1.5.0.
    by default, both of the buttons having immdieate is should be false. so no need to disturb that.
    if you are going to disturb the oracle standard means what it would be reason?
    hen the row that I deleted in step 3 shows up in step 4.from here i understood what i understood means you get deleted row when you click create insert button if am getting you right?
    this will be my answer:
    you make that createinsert immidieate is true. if so means you could get this behavoiur as you said.

  • How can I leave an empty row?

    Hi,
    If I want to use GridBagLayout, how can I leave an empty row? Or empty column? When I create the buttons on a frame, are they created sequentially? so Is that mean I can't put something back to the first row later in the program? Thx.
    Adrian

    I'm just guessing, since I havent done Java for a long time... but if you want an empty row... what pops up in my mind first is like putting in an empty JLabel/Label... for that row... but then if you wanna fill it in... i dunno...

  • Button to delete all empty rows

    I am in the process of creating an interactive form that has a button that add rows for the user to input issues and another button to add follow-ups to those instances. There are 3 different sets of these. However, we do not want to add a delete button to all rows, to allow for accidental deletion of already inputted data.  I would like to create a button that will delete all empty rows, including all subforms.  Either that, or upon saving the document, all empty rows would be deleted - whichever would be easier. Please help!  This seems like it will be a complicated task and I am not that well versed in LiveCycle to be able to figure this out on my own.
    Thank you!

    There is no doubt that looping through nested repeating objects is more complex:
    Here is the script for the first table with follow-up rows:
    // Technical
    var nCount3 = VitalsSubform.Technical._Instance1.count;
    for (var k=0; k<nCount3; k++)
         // this is script to remove the follow-up rows in the first table only
         var nCount6 = xfa.resolveNode("VitalsSubform.Technical.Instance1[" + k + "]").Table1._Row1.count;
         // loop through the rows in the follow-up table
         for (var i=0; i<nCount6; i++)
              if (xfa.resolveNode("VitalsSubform.Technical.Instance1[" + k + "].Table1.Row1[" + i + "]").Cell4.rawValue == null)
                   // remove null row
                   xfa.resolveNode("VitalsSubform.Technical.Instance1[" + k + "]").Table1._Row1.removeInstance(i);
                   // recount nCount in case a row has been deleted
                   nCount6 =xfa.resolveNode("VitalsSubform.Technical.Instance1[" + k + "]").Table1._Row1.count;
                   // account for the row that is now deleted
                   i = i-1;
         // now remove null statements
         if (xfa.resolveNode("VitalsSubform.Technical.Instance1[" + k + "]").Table1.Statement.Statement.rawValue == null)
              VitalsSubform.Technical._Instance1.removeInstance(k);
              var nCount3 = VitalsSubform.Technical._Instance1.count;
              k = k-1;
    It is by no means tested and could still be flaky.
    Have you considered a manual 'x'/delete button for the follow-up rows?
    Here is the form: https://acrobat.com/#d=JMGUKXNQ*qMD18S3W5VxSQ
    Niall

  • How to avoid displaying empty rows in a table?

    The situation is as follows:
    I have got a set of questions under a particular category say marketing category.
    The user will be displayed with a table consisting of a set of questions from a particular category with four radio buttons for each question.
    Now once he is done with all the set of questions under a particular category, he will be navigated to the next set of questions under some other category say 'xyz'
    Now instead of creating seperate view objects for each category, we have created a view object which will hold all the set of questions from all the category but will display only the set of questions under a particular category by declaring a variable in the backing bean and setting the question rendering to the value in the variable. the value to the variable will be changed once the user is done with answering all the set of questions under a particular category.
    Now the problem that i am facing is:
    Because of the rendering condition that i have used, it displays only those rows that have the rendering condition set to the variable in the backing and displays all other empty rows overlapped.
    How do i avoid this situation ??

    Seems odd, but you could use COALESCE to achieve this.
    ME_XE?create table all_nullz (col1 number, col2 number, col3 number);
    Table created.
    Elapsed: 00:00:00.20
    ME_XE?
    ME_XE?insert into all_nullz values (1,2,3);
    1 row created.
    Elapsed: 00:00:00.12
    ME_XE?insert into all_nullz values (null, null, null);
    1 row created.
    Elapsed: 00:00:00.06
    ME_XE?
    ME_XE?delete from all_nullz where coalesce(col1,col2,col3) is null;
    1 row deleted.
    Elapsed: 00:00:00.26
    ME_XE?

  • Delete empty rows while having empty xml tag

    I've seen something like same but it doesn't work for me. I have a table which is created using xml rules, some time it contains empty xml tag also converted into row but I don't want these empty rows. After table creation empty rows need to be deleted.
    I've got this script from this forum which delete empty rows
    for(var i=myDocument.textFrames.length-1; i>=0; i--){
      for(var j=myDocument.textFrames[i].tables.length-1; j>=0; j--){
       for(var k=myDocument.textFrames[i].tables[j].rows.length-1; k>=0; k--){
        myContents = 0;
        for(var l=myDocument.textFrames[i].tables[j].rows[k].cells.length-1; l>=0; l--){
         if (myDocument.textFrames[i].tables[j].rows[k].cells[l].contents != "") myContents++;
         if (myContents == 0) myDocument.textFrames[i].tables[j].rows[k].remove();
    but incase of any cell contains empty xml element it goes blank. Could any one help on this.
    Thanks
    Mac

    Gyan,
    Thanks for your help. I have modified the code as below:
    public void removeblankline()
    OAViewObject rvo = (OAViewObject)findViewObject("NCRPaymentExtLineVO1");
    Row row[] = rvo.getAllRowsInRange();
    System.out.println("Remove all blank rows");
    System.out.println("Total Rows"+rvo.getRowCount());
    int jcount = rvo.getRowCount();
    for (int j=0;j< jcount;j++)
    NCRPaymentExtLineVORowImpl rowj = (NCRPaymentExtLineVORowImpl)row[j];
    System.out.println("Check Line Number: "+j);
    System.out.println("Line Type Lookup Code: "+rowj.getLineTypeLookupCode());
    if((rowj.getLineTypeLookupCode()==null)||("".equals(rowj.getLineTypeLookupCode().trim())))
    System.out.println("Removed Line Number: "+j);
    rowj.remove();
    System.out.println("Processed with Line Number: "+j);
    } // end removeblankline
    This is the change I have done:
    int jcount = rvo.getRowCount();

  • ADF Intersection table / create intersection rows

    Good morning everybody,
    can anyone help me with the task of using a intersection table (Many-to-Many relationship between A and B) with ADF BC ?
    This is my database design:
    TABLE A
    ID (PK)
    TABLE X (intersection table)
    TableA.ID (PK)(FK)
    TableB.ID (PK)(FK)
    Number n (PK)
    TABLE B
    ID (PK)
    I have a new bounded task flow, a dialog (2 pages), which first allows the user to create an A-object.
    The next step is to create B-Objects which belong to the A-Object.
    Then the user can commit or add more new B-objects to the A-Object.
    I have created alle the entity objects and view objects via the assistant of "new business components from tables" which created:
    Entity A
    Entity X
    Entity B
    X Assoc Fk1
    X Assoc Fk2
    VO A
    VO X
    VO B
    VL Fk1
    VL Fk2
    My task flow does this :
    1. create new VO-A (via Create with parameters)
    2. view activity CreateA
    3. create new VO-B (via Create with parameters)
    4. view activity CreateB
    from this activity you can commit transaction or go back to 3. to add more VO-Bs.
    So, how is it possible to handle the intersection table ?
    I read something about "intersection associations and intersection view links" but some people say in this context, that you dont need it (all what is build by the assistant from the tables is ok). Sorry, but this made me very confusing :-/
    Some guys recommended to create one VO which contains alle three entities (A,X,B).
    First thought was, to handle all this business logic (create new VO-X and use setter to the FK/PK IDs...) in the managed bean, but this would be very dirty... There should be a way of doing this automatically...
    I am very new to ADF and would be very happy, if anyone could help me!
    Thanks in advance,
    best regards
    Marcus
    Edited by: moonbird on 20.10.2010 00:46

    Hi John,
    my question is, how can I insert new rows to a intersection table ?
    Is there a declerative way or do I have to write code ?
    As I described before, I have two views as a bounded task flow. In the first view the user creates a new Object-A and in the second view the user creates an Object-B.
    Before each view is started, I create the correspondent VO via CreateInsert declerative, so my views shows the empty row (all its attributes to fill out).
    Thank you very much,
    Marcus

  • Invisible the Empty Row

    Hello Experts,
    How can we make an Empty Row Invisible in ALV webdynpro table.
    Thanks,
    Bsreddy.

    Hi,
    If you check my method call i have used object
    LR_FUNCTION_SETTINGS which holds the reference of class CL_SALV_WD_CONFIG_TABLE.
    This class CL_SALV_WD_CONFIG_TABLE implements the interface IF_SALV_WD_TABLE_SETTINGS
    which has the method SET_DISPLAY_EMPTY_ROWS.
    DATA: lo_cmp_usage type ref to if_wd_component_usage.
      DATA: lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
      DATA: lr_function_settings TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
      Data: lo_config_table TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
    *create an instance of your ALV component
      lo_cmp_usage =   wd_this->wd_cpuse_OVERVIEW_POTENT_ALV( ).
    * if not initialized, then initialize
      if lo_cmp_usage->has_active_component( ) is initial.
        lo_cmp_usage->create_component( ).
      endif.
    * get ALV component
      lr_salv_wd_table = wd_this->wd_cpifc_OVERVIEW_POTENT_ALV( ).
      lo_config_table = lr_salv_wd_table->get_model( ).
    *  get function settings
      lr_function_settings ?= lo_config_table.
    *now call method
    * dont display empty rows
      CALL METHOD LR_FUNCTION_SETTINGS->IF_SALV_WD_TABLE_SETTINGS~SET_DISPLAY_EMPTY_ROWS
        EXPORTING
          VALUE = ABAP_FALSE.
    Here I'm first creating a instance of ALV componet I used and then calling the reqd method.
    Hope this helps.
    Regards
    Manas Dua

  • Matrix Empty row Binding Problem

    Hi ,
    i created one matrix using screen painter.. all my columns are binded
    with user defined fields.(Doc Rows Table). if my total row count is 5.
    and i deleted 2 rows using rightclick deleterow event. after adding if i see the same document  it display the 2 empty rows and 3 rows with my details.. actually its showing that deleted row also.my UDT also having empty row details..
    how to resolve this?
    Regards,
    Ganesh K

    Hi Geetha,
    i think you misunderstood my scenario. while adding no empty rows
    are displayed, even if  i deleted some added row details.After adding,
    while retriving the same document  the problem occurs.if am not clear let me know..
    As you told, beforeAction = false of Add will be new form with Add mode.so not possible to check that old matrix. otherwise we can delete the empty details from database using query..in beforeaction false pval.actionsucess true part...
    regards,
    Ganesh k.

  • Row template showing always additional empty row

    Hi everybody,
    When I used row templates with apex 3 it worked fine. With apex 4, I always get an empty row in addition to the ones I query.
    This behavior appears with firefox 3.6.7 as well as with ie 8. The standard report template "value attribute pairs" causes the same wrong behavior.
    I appreciate any hints.
    Robert

    Hi Dan
    Thank you very much for looking at my problem. I have created an example. Please have a look under:
    workspace: processlink
    userid: admin
    password: admin
    application no: 395
    Thank you
    Robert

  • Empty row using decode

    when I use the decode function I always get extra empty rows in my results. Why is this? Is it because I don't use a default value?
    I always have to use a where statement to eliminate those empty rows, like in the following statement.
    select
    decode(table.field1,'field1value','output')
    from
    table
    where
    table.field1='field1value'

    Let me try to explain using your example:
    SQL> create table mytable
      2  as
      3  select 'Weight' field1, '2' field2 from dual union all
      4  select 'Colour', 'red' from dual union all
      5  select 'Size', 'L' from dual
      6  /
    Tabel is aangemaakt.So, the table has three rows.
    SQL> select decode(Field1,'Weight',Field2)
      2    from mytable
      3  /
    DEC
    2
    3 rijen zijn geselecteerd.Since you don't have a where clause, you don't restrict the number of rows returned. The row appears empty because of the decode function, which says: "if field1 is equal to 'Weight' then display field2 else display nothing".
    SQL> select field1
      2       , field2
      3       , decode(Field1,'Weight',Field2)
      4       , decode(Field1,'Weight',Field2, field1)
      5    from mytable
      6  /
    FIELD1 FIE DEC DECODE
    Weight 2   2   2
    Colour red     Colour
    Size   L       Size
    3 rijen zijn geselecteerd.This shows that the rows are not empty, only the third column is. The fourth column is a similar decode function but with a fourth argument that additionally says "if field1 is not equal to 'Weight' then show me field1 instead of field2"
    But I guess you really want one row, the row containing 'Weight', which can be easily achieved by a where clause:
    SQL> select field2
      2    from mytable
      3   where field1 = 'Weight'
      4  /
    FIE
    2
    1 rij is geselecteerd.Hope this clarifies.
    Regards,
    Rob.

Maybe you are looking for

  • Mail 5.3 crash after Time Machine migration

    All, I'm facing a problem with Mail 5.3 while trying to recover my email db from Time Machine after an update of MacOS. Here the following steps I made to perform this update: Update my iMac from SL to Lion 10.7.1 using the clean install way. Install

  • Can't write to external hard drive, kills MacBook Pro

    I got a SimpleTech SimpleDrive 1TB for an external drive. It's formatted for PC but I was able to format it for Mac with no problem and read and write small files to/from it. But data that is larger than 80-90MB will not work-at that point the progre

  • Best Final Cut Server training.

    We are setting up FCS in a educational setting, anybody have suggestions for the best training.

  • InDesign quit unexpectedly

    Hello, I am having a user that is experiencing the above mentioned when launching InDesign in CS3. The computer is running OS X 10.4.11 and is an Intel iMac. I have trashed any of the Adobe preferences in the user's library as well as the Adobe font

  • 10 GBs of wasted space, unusable windows xp

    Hello, some time ago I installed windosw xp on my computer using the boot camp assistant and everything went fine since. I gave only 6 GBs to the windows XP partition since I thought that was enough but yesterday I realized it wasn't, so, using the d