filling of the auto shape of table

Hello!

How can I automatically fill the column in a table? On apex.oracle.com's test app (workspace: drama9346, user: test, pass: test) where are the 2 pages on the first page select us some ID and then we go to page 2 (by clicking the Insert button) where is tabular. What I need is some instructions how can I optimize that when user meadows Add button in a column will be already some data. For deal on apex.oracle.com this feature are the id_elem. What must be in the column is a primary key in the table kem_elem.

I hope someone can help me.

Kind regards
drama9346

Hello

in your application I've updated the application on page 2 to this statement:

select
"ROWID",
"ID_SAR",
"ID_ELEM",
"CONTENT",
"CREATED_DATE",
"CREATED_BY"
from "#OWNER#"."SAR_ELEM"
union all
select
"ROWID",
to_number(null) "ID_SAR",
id_elem "ID_ELEM",
to_number(null) "CONTENT",
sysdate "CREATED_DATE",
:APP_USER "CREATED_BY"
from kem_elem
where :request = 'INSERT'
and rownum = 1

With the above statement there is 1 new line if the request is the INSERTION of page 1.

Kind regards
Erik-jan

Tags: Database

Similar Questions

  • How the auto fill a field based on the drop-down list unless the specific item is selected

    Hi all

    My apologies if I posted this in in the wrong place, but I am new to these forums, JavaScript and Adobe LiveCycle.

    I am trying to build a form using LiveCycle Acrobat but have problems with the drop-down lists.

    Inititaly I just wanted to fill in the fields in a table based on a matching menu selection dropdown in another table.

    I used the following code and it worked fine:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    The problem is that now I want the code above works UNLESS one of the items in the drop-down list is enabled specifically in this case, I want the text box in the other table to display a message such as "Details of the entry in the field below.

    I tried to create an If Else statement using the following code:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    If (fFrom.item (i) .rawvalue = "Option 3") {}

    fTo.item (i) .rawValue = "enter the details in the field below.

    }

    else {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    }

    The code now filled the field with "Enter the details in the field below" any item I select in the drop-down list.

    Your help is greatly appreciated.

    See you soon,.

    ozzy_q

    Hello

    You use .rawValue in the change event. This will cause problems because the selection of the users has not received .rawValue from the drop-down list at the time when the change event is triggered.

    Move your script as it should to the output of the dropdown event.

    Hope that helps,

    Niall

  • How can fill us with data in this table AR_RECEIVABLE_APPLICATIONS_ALL

    Hi all

    How can fill us the data in this table, I created a credit memo and marked it complete but I'm still not able to get the data in this table.

    What is the correct approach or any other alternative available.

    Thank you
    Ajay

    Hello.

    Ok. In the Menu, choose Actions and Applications.

    Octavio

  • How the auto fill contents table

    Guy from hell,

    I am creating this table which will automatically fill in the description of the object and get the price after you enter the item code in the fist column. I used the 'purchase model' samples to achieve this. The way they did was create array variable and then pulling the data. It works fine with me, but the question is when I try to write my "2500" lines of code. In my view, there is a restriction on the total lines allowed. I've pasted below a copy of the code that I use. I have not changed anything in the design, with the exception of the number of items (the code below works fine)

    Root.Main #variables [0]. .partNoScript - (JavaScript, client)

    This script object control the interaction between the number of piece, description and unit price fields.

    When you complete the partDesc and partPrice, tables of partNo, ensure that they have the same number of array indices in

    each table for each part number, there should be a corresponding description and price.

    Table of part numbers.

    var partNo = new Array("",)

    "27001");

    An array of descriptions of the part.

    var partDesc = new Array (null,

    'MR. SHORING BEAM 4');

    Table of prices for the part.

    var partPrice = new Array (null,

    113.44);

    Fill the drop-down list part number.

    function populatePartNo (dropdownField)

    {

    var i;

    for (i = 0; i < partNo.length; i ++)

    dropdownField.addItem (partNo [i]);

    }

    Fill in the fields description and price unit.

    getDesc (partNumber, descField, itemPrice) function

    {

    var i;

    for (i = 0; I < partNo.length; i ++) / / Go through the complete list of part numbers to find the one that is currently selected.

    {

    If (partNo [i] == partNumber) / / where to find us the part number currently selected.

    {

    descField.rawValue = partDesc [i];          Enter a description in the description field

    itemPrice.rawValue = partPrice [i];          and the unit price in the price field unit.

    break;                                                                                No need to go further if there is a football game.

    }

    }

    }

    Untitled-1.jpg

    Thanks in advance

    Just a quick note about your script, it fails because it is not valid javascript. In one of the tables, you have the following errors

    ...

    "Hairpin multifaceted 'R' safety."

    ...

    #NAME?

    ...

    Here is the syntax invalid js. What causes the entire to be corrupted script block and function is not found

    Note to use nested quotes ("")

    "Multifaceted \"R\' security hairpin. "

    Once those have been fixed your code works correctly. Use the check Syntax button to highlight the problems of js.

  • Possible to Insert Shapes' don't those in the cells of a table?

    the use of Pages 5.6.1 on Mac OS 10.11.3 (El Capitan).

    I made a table and can not find a way to put something other than the text in a table cell. so not shapes, text boxes, etc., of this kind.

    is this possible? If so, how?

    Thank you.

    Triple-click in a table cell and then click in the form, or the image you want to be placed inside it. You can also make a picture fill in a table cell with the cell on the right Panel tab. Text boxes do not obey this encapsulation and go where they want.

  • I would like to add the auto-fill feature and enter the information. How can I do

    I would like to add the auto-fill feature and enter the information. How can I do

    AutoFill Forms extension:
    https://addons.Mozilla.org/en-us/Firefox/addon/4775

  • 'For' loop with a different number of iterations. Second, the auto-indexation of the tables with different sizes is done. It can affect the performance of the Vi?

    Hello

    I have a loop 'for' which can take different number of iterations according to the number of measures that the user wants to do.

    Inside this loop, I'm auto-indexation four different 1 d arrays. This means that the size of the tables will be different in the different phases of the execution of the program (the size will equal the number of measures).

    My question is: the auto-indexation of the tables with different sizes will affect the performance of the program? I think it slows down my Vi...

    Thank you very much.

    My first thought is that the compiler to the LabVIEW actually removes the Matlab node because the outputs are not used.  Once you son upward, LabVIEW must then call Matlab and wait for it to run.  I know from experience, the call of Matlab to run the script is SLOW.  I also recommend to do the math in native LabVIEW.

  • We can add a button to the BP to approve Budget so that it can read all the charges in question cost journal line and auto fill on the grid.

    Hi all

    We can add a button to the BP to approve Budget so that it can read all the charges in question cost journal line and auto fill on the grid.

    Let's say I have a cost with 5 code cost journal

    Code 1 price

    2 cost code

    Code 3 cost

    Code 4 cost

    Code 5 cost

    BP budget approval, after that I click on New, can I add a button to the tab the line items so that when I click on this button, it reads all codes of cost in the cost journal and auto fill on the grid?

    You can create a new 'model' BP for this purpose. Line item type. Then add a line manually with a cost on each code. Then you can use the copy in your BP BA record consolidate the function to copy the line items to the new folder of BP (including all cost codes) into your folder of BA. That is to set up a model record once with all cost codes and then copy consolidate billing it to all lines new record of BA. would this work?

  • How cascade/fill out the value of a column in a table?

    Hello

    I am begging in the oracle apex,

    Now I use 5 Apex


    Capture.PNG

    I want to select when point items popup lov (1) ... I want to get auto fill in the balance column .


    Please help me with the steps...

    Thank you.



    Hi Amr Abdeen,

    Made some changes to the page not 34

    1. remove the code button to add a line

    $("#f03_0001").attr ("onchange", "javascript:f_fetch_balance (this)");

    It is not necessary.

    2. convert key lov Popup to popup lov (Query based)

    Now it's working.

    Please check and let me know if you have any questions.

    Kind regards

    Jitendra

  • How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    I s generic SOAP example/tutorial on my blog: get a serial number in a form using SOAP - KHKonsulting LLC

    The web service uses only a single parameter, but you should be able to adapt the code to two arguments without problems.

  • How to get the fill color of a shape or solid color fill layers?

    Hi all

    I'm trying to get the values of the fill color of a shape or solid color fill layers.

    I get the nature of the layer active i.e. SOLIDFILL, but there is no color as a property to get the color of the shape or solid color fill layers.

    Y there is it possible or a script to do this?

    Please help me on this.

    Thank you
    AI

    I didn't bother to check the type of the active layer, but if a solid color layer is selected it should help.

    // based on code by michael l hale;
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var layerDesc = executeActionGet(ref);
    var adjList = layerDesc.getList(stringIDToTypeID('adjustment'));
    var theColors = adjList.getObjectValue(0).getObjectValue(stringIDToTypeID('color'));
    var str = '';
    for(var i=0;i		   
  • Columns in FILL in the external Tables

    Hi all

    I wanted to know if FILLING columns can be defined in the access settings section when external tables are defined? I have implemented in the following way and get an error when I try to see the data in the table.


    create table (load2
    Chrom varchar2 (100),
    )
    ORGANIZATION EXTERNAL (TYPE ORACLE_LOADER DEFAULT DIRECTORY MY_LOAD
    access parameters (records delimited by newline
    fields terminated by '\t '.
    lrtrim REJECTED LINES WITH ALL THE FIELDS are NULL
    (
    CHROM tank (100),
    FILLING of tank (100) POS
    )
    location) ("test.txt"))
    reject limit unlimited;

    The error I get is"KUP - 01005:syntax error: found 'distinctive sign': expected an a:" binary_double, types binary_float, comma, date, defaultif, char, decimal, double, float, integer, (, nullif, oracle_date, oracle_number, position, raw, recnum,) ", unsigned, varchar, varraw, varrawc, varcharc, zoned" "
    ' KUP-01008: the bad ID was: FILLER.

    I tried placing the FILLING in different positions and it still gives me an error.

    Thank you
    Nikita

    If you want to have data of fill that is not part of the definition of the table, you must name column-fill in the section definition like:

    SQL > create table load2(
      2  chrom varchar2(100)
      3  )
      4  ORGANIZATION EXTERNAL (TYPE ORACLE_LOADER DEFAULT DIRECTORY PATSAT
      5  access parameters ( records delimited by newline
      6  fields terminated by '\t'
      7  lrtrim REJECT ROWS WITH ALL NULL FIELDS
      8  (
      9  CHROM char(100),
     10  FILLER char(100)
     11  )
     12  ) location ('test.txt'))
     13  reject limit unlimited;
    
    Table created.
    
    /export/home/oracle> cat -vte test.txt
    This is field one^Ithis is filler$
    This is row two with filler^Ithis is filler$
    
    SQL > select * from load2;
    
    CHROM
    --------------------------------------------------------------------------------
    This is field one
    This is row two with filler
    

    John

  • When and how the subsidiary ledger data are filled in the Table XLA_DISTRIBUTION_LINKS

    Hello gurus

    I worked on a subledger of accountants and I was able to get a fair idea of how data is transferred from XLA_DISTRIBUTION_LINKS to XLA_AE_LINES and XLA_AE_HEADERS. According to my understanding, "Create Accounting" course XLA_DISTRIBUTION_LINKS data will comes down to from JOUNRAL_LINE_TYPES rules and conditions to load in XLA_AE_LINES and XLA_AE_HEADERS. Then during the 'Transfer to GL', data XLA_AE_LINES and XLA_AE_HEADERS are transferred to the GL Tables. What I did not understand, is when and how the data is loaded in XLA_DISTRIBUTION_LINKS. What are the rules and conditions and during what stage data will be charged at XLA_DISTRIBUTION_LINKS table? Can someone please explain to me how the data is transferred from the subsidiary ledger of the panels to the Table of Distribution of the SLA?

    Thank you
    Sunny.

    Top Notes are good.
    But I just wanted to add a point of fertilizers.
    xla_distribution_links and xla_ae_lines will be filled at the same time.

    The two goes on JLTs and their conditions. One is detailed and the other is summarized / merged.
    xla_ae_lines aura balancing additional lines and xla_distirbution_links were going to win extra / loss lines, which end with zero amount.

    Also check the links for the installer of identifiers for distribution.
    http://docs.Oracle.com/CD/E18727_01/doc.121/e13420/T193592sdextchap.htm#sdextacattg
    http://docs.Oracle.com/CD/E18727_01/doc.121/e13420/T193592sdextchap.htm#sdextdisidg

    By
    VAMSi

  • Compare 2 tables and fill in the missing documents based on column

    I have 3 tables
    TABLEBBB
    TABLEBB1 - fill in the data of TableBBB according to the conditions
    TABLEBB2 - fill in the data of TableBBB according to the conditions

    I need a query to fill the TABLEBB2 and the TABLEBB1 for

    (1) let say if I have a query to filter on R_SQUARE_VAL = 0.51, I wish to associate myself tablebbb1 to fill out the lines of A
    For example, the query below I a = 2,6,7,8,9,10,11,12,13,14
    I need to fill with tableBBB1 where a = 1,3,4,5 ((cause its share of A lines starting from TABLEBBB2)
     SELECT * FROM TABLEBBB2 where r_square_VAL = 0.051 order by region ,a
     
    A     PROF     AVERAGE     REGION     YLW     YEAR_RUN     R_SQUARE     R_SQUARE_VAL
    2     87     76     1     1998     1/1/2008               0.051
    6     123     254     1     1998     1/1/2008               0.051
    7     76     83     1     2008     1/1/2008               0.051
    8     193     245     1     1998     1/1/2008               0.051
    9     168     74     1     1998     1/1/2008               0.051
    10     101     74     1     1998     1/1/2008               0.051
    11     254     70     1     1998     1/1/2008               0.051
    12     83     89     1     1998     1/1/2008               0.051
    13     80     91     1     1998     1/1/2008               0.051
    14     80     77     1     1998     1/1/2008     0.051          0.051
    I need to display data as below
    A     PROF     AVERAGE     REGION     YLW     YEAR_RUN     R_SQUARE     R_SQUARE_VAL
    1     75     123     1     2009     1/1/2008                    --TABLEBBB1
    2     87     76     1     1998     1/1/2008               0.051
    3     108     193     1     2009     1/1/2008                    --TABLEBBB1
    4     76     168     1     2009     1/1/2008                    --TABLEBBB1
    5     95     101     1     2009     1/1/2008                    --TABLEBBB1
    6     123     254     1     1998     1/1/2008               0.051
    7     76     83     1     2008     1/1/2008               0.051
    8     193     245     1     1998     1/1/2008               0.051
    9     168     74     1     1998     1/1/2008               0.051
    10     101     74     1     1998     1/1/2008               0.051
    11     254     70     1     1998     1/1/2008               0.051
    12     83     89     1     1998     1/1/2008               0.051
    13     80     91     1     1998     1/1/2008               0.051
    14     80     77     1     1998     1/1/2008     0.051          0.051
    (2) let say if I have a query to filter on R_SQUARE_VAL = 0.53
    Then I need to display a value of tableBBB1 (cause it is not a part of the lines of A)
    SELECT * FROM TABLEBBB2 where r_square_VAL = 0.053 order by region ,a
    
    A     PROF     AVERAGE     REGION     YLW     YEAR_RUN     R_SQUARE     R_SQUARE_VAL
    15     86     123     1     1998     1/1/2008          0.053
    16     101     76     1     1998     1/1/2008          0.053
    17     90     72     1     1998     1/1/2008          0.053
    18     93     101     1     1998     1/1/2008          0.053
    19     78     92     1     1998     1/1/2008          0.053
    20     84     82     1     1998     1/1/2008          0.053
    21     100     77     1     1998     1/1/2008          0.053
    22     140     77     1     1998     1/1/2008          0.053
    23     72     72     1     1998     1/1/2008          0.053
    24     101     67     1     1998     1/1/2008     0.053     0.053
    Table Structure of TABLEBBB1
    
    create table TABLEBBB1
    (
      A        NUMBER,
      PROF     NUMBER,
      AVERAGE  NUMBER,
      REGION   NUMBER,
      YLW      VARCHAR2(4),
      YEAR_RUN DATE
    )
    ;
    
    prompt Loading TABLEBBB1...
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (1, 75, 123, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (3, 108, 193, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (4, 76, 168, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (5, 95, 101, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (41, 74, 77, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (42, 99, 74, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (43, 76, 106, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (44, 95, 83, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (45, 123, 121, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (46, 76, 77, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (47, 193, 81, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (48, 168, 76, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (49, 101, 80, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (50, 254, 79, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (51, 83, 72, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (52, 80, 101, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    insert into TABLEBBB1 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN)
    values (53, 80, 92, 1, '2009', to_date('01-01-2008', 'dd-mm-yyyy'));
    commit;
    TABLE OF TABLEBBB2 STRUCTURE
    create table TABLEBBB2
    (
      A            NUMBER,
      PROF         NUMBER,
      AVERAGE      NUMBER,
      REGION       NUMBER,
      YLW          VARCHAR2(4),
      YEAR_RUN     DATE,
      R_SQUARE     NUMBER,
      R_SQUARE_VAL NUMBER
    )
    ;
    
    prompt Loading TABLEBBB2...
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (2, 87, 76, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .051);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (6, 123, 254, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .051);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (7, 76, 83, 1, '2008', to_date('01-01-2008', 'dd-mm-yyyy'), null, .051);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (8, 193, 245, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .051);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (9, 168, 74, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .051);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (10, 101, 74, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .051);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (11, 254, 70, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .051);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (12, 83, 89, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .051);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (13, 80, 91, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .051);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (14, 80, 77, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), .051, .051);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (15, 86, 123, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .053);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (16, 101, 76, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .053);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (17, 90, 72, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .053);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (18, 93, 101, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .053);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (19, 78, 92, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .053);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (20, 84, 82, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .053);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (21, 100, 77, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .053);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (22, 140, 77, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .053);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (23, 72, 72, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .053);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (24, 101, 67, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), .053, .053);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (25, 92, 73, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .454);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (26, 82, 88, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .454);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (27, 77, 123, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .454);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (28, 77, 76, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .454);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (29, 95, 193, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .454);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (30, 89, 168, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .454);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (31, 106, 101, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .454);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (32, 128, 254, 1, '1998', to_date('01-01-2008', 'dd-mm-yyyy'), null, .454);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (33, 99, 83, 1, '2007', to_date('01-01-2008', 'dd-mm-yyyy'), null, .454);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (34, 74, 70, 1, '2007', to_date('01-01-2008', 'dd-mm-yyyy'), .454, .454);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (35, 145, 69, 1, '2007', to_date('01-01-2008', 'dd-mm-yyyy'), null, .544);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (36, 115, 72, 1, '2007', to_date('01-01-2008', 'dd-mm-yyyy'), null, .544);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (37, 65, 101, 1, '2007', to_date('01-01-2008', 'dd-mm-yyyy'), null, .544);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (38, 70, 92, 1, '2007', to_date('01-01-2008', 'dd-mm-yyyy'), null, .544);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (39, 74, 82, 1, '2007', to_date('01-01-2008', 'dd-mm-yyyy'), null, .544);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (40, 72, 77, 1, '2007', to_date('01-01-2008', 'dd-mm-yyyy'), null, .544);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (54, 86, 82, 1, '1997', to_date('01-01-2008', 'dd-mm-yyyy'), null, .544);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (55, 101, 77, 1, '1997', to_date('01-01-2008', 'dd-mm-yyyy'), null, .544);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (56, 90, 77, 1, '1997', to_date('01-01-2008', 'dd-mm-yyyy'), null, .544);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (57, 93, 89, 1, '1997', to_date('01-01-2008', 'dd-mm-yyyy'), .544, .544);
    insert into TABLEBBB2 (A, PROF, AVERAGE, REGION, YLW, YEAR_RUN, R_SQUARE, R_SQUARE_VAL)
    values (58, 78, 72, 1, '2008', to_date('01-01-2008', 'dd-mm-yyyy'), null, null);
    commit;

    Hello

    It is a new requirement, in any case, assuming you want only region 1

    select * from
                (select t1.*, null, t2.r_square_val from tablebbb1 t1, (
                        select r_square_val, max_val end_val,
                                 nvl(lag(max_val) over (order by max_val), 0) + 1 start_val
                        from (
                                   select distinct r_square_val, max_val
                                   from (
                                            select t2.r_square_val,
                                                     max(A) keep ( dense_rank Last order by a) over (partition by r_square_val) max_val
                                            from tablebbb2 t2 where t2.region = 1     -- added the where clause to filter region
                                            order by a
                                          )
                                )
                   ) t2
                    where t1.a >=t2.start_val and t1.a<=t2.end_val
                    and t1.region = 1    --added the where clause to filter region
    union all
    
    select * from tablebbb2
      where region=1   --added the where clause to filter region)
    ---where r_square_val = 0.51 (if you require to filter then put it else not required)
    order by a
    / 
    

    Concerning
    Anurag Tibrewal

  • Auto fill in the toolbar

    I need to know how to get the auto-complete in the toolbar on my system or where to go to get it.

    Is that what you are looking for?

    Web browsing tools: AutoFill
    http://www.Google.com/support/toolbar/bin/answer.py?hl=en&answer=47972

    Looks like it's part of the Google toolbar, you may have to download.

    Google toolbar
    http://www.Google.com/intl/en/toolbar/IE/index.html

Maybe you are looking for