Assign a separate value rank

Hello

I have the following table:

CREATE TABLE 'BEFORE' ('LINE' VARCHAR2 (6), VARCHAR2 (2) "PATH", "PK" VARCHAR2 (3))

/

REM, INSERTING BEFORE

TOGETHER TO DEFINE

Insert BEFORE (LINE, WAY, PK) values ('570000', 'V1', '661');

Insert BEFORE (LINE, WAY, PK) values ('570000', 'V1', '665');

Insert BEFORE (LINE, WAY, PK) values ('570000', 'V1', '665');

Insert BEFORE (LINE, WAY, PK) values ('570000', 'V1', '700');

Insert BEFORE (LINE, WAY, PK) values ('570000', 'V1', '700');

Insert BEFORE (LINE, WAY, PK) values ('570000', 'V1', '775');

Insert BEFORE (LINE, WAY, PK) values ('570000', 'V1', '775');

Insert BEFORE (LINE, WAY, PK) values ('680000', 'V2', '800');

Insert BEFORE (LINE, WAY, PK) values ('680000', 'V2', '900');

Insert BEFORE (LINE, WAY, PK) values ('680000', 'V2', '900');

Insert BEFORE (LINE, WAY, PK) values ('680000', 'V2', '900');

I would like to give a ranking in order to each distinct value in the KM of line and way field.

Like this:

CREATE TABLE 'AFTER' ('LINE' VARCHAR2(6 BYTE), VARCHAR2(2 BYTE) 'WAY', 'KM' VARCHAR2(3 BYTE), VARCHAR2(1 BYTE) 'RANK')

/

REM in AFTER INSERTION

TOGETHER TO DEFINE

Insert AFTER (LINE, WAY, KM, GRADE) values ('570000', 'V1', ' 661 ', ' 1');

Insert AFTER (LINE, WAY, KM, GRADE) values ('570000', 'V1', ' 665 ', ' 2');

Insert AFTER (LINE, WAY, KM, GRADE) values ('570000', 'V1', ' 665 ', ' 2');

Insert AFTER (LINE, WAY, KM, GRADE) values ('570000', 'V1', ' 700 ', ' 3');

Insert AFTER (LINE, WAY, KM, GRADE) values ('570000', 'V1', ' 700 ', ' 3');

Insert AFTER (LINE, WAY, KM, GRADE) values ('570000', 'V1', ' 775 ', ' 4');

Insert AFTER (LINE, WAY, KM, GRADE) values ('570000', 'V1', ' 775 ', ' 4');

Insert AFTER (LINE, WAY, KM, GRADE) values ('570000', 'V2', ' 800 ', ' 1');

Insert AFTER (LINE, WAY, KM, GRADE) values ('570000', 'V2', ' 900 ', ' 2');

Insert AFTER (LINE, WAY, KM, GRADE) values ('570000', 'V2', ' 900 ', ' 2');

Insert AFTER (LINE, WAY, KM, GRADE) values ('570000', 'V2', ' 900 ', ' 2');

Thank you for your help

Hello

If you want to assign numbers (1, 2, 3,...) by order of pk without jumping all the numbers and duplicate the numbers when the pk value is duplicated.

This sounds like a job for the DENSE_RANK function:

CREATE TABLE after
AS
SELECT line
way
,       pk                     AS km
DENSE_RANK () (SCORE ONLINE
,             way
ORDER BY pk
) AS rnk - GRADE is not a column name, good
FRONT

;

Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!

Tags: Database

Similar Questions

  • Oracle how to assign a date value in a parameter declaration

    How can I assign a date value to a parameter declaration in SQL?

    Here are my existing script.

    CURRENT SITUATION:

    select distinct as summary ' iCash EAD error Summary", count (*).
    AAA. BKS_ICASH_EAD_ERRORS
    where creation_date > to_date (' 26/05/12 08:50 "," mm/dd/yy HH24 ')
    Summary group


    I want to assign the date I'm looking for a parameter and use the setting in my query.


    OBJECTIVE:

    DECLARE
    pCreateDate DATE;

    exec: pCreateDate: = 5/26/12-08:50 ';

    select distinct as summary ' iCash EAD error Summary", count (*).
    AAA. BKS_ICASH_EAD_ERRORS
    where creation_date > to_date (: pCreateDate, "mm/dd/yy HH24 '")
    Summary group

    Hello

    In SQL * Plus, you can do this:

    VARIABLE     pcreatdate     VARCHAR2 (20)
    EXEC           :pcreatedate := '5/26/12 8:50';
    
    SELECT    summary          AS "iCash EAD Error Summary"
    ,       COUNT (*)          AS "Total Count"
    FROM        aaa.bks_icash_ead_errors
    WHERE       creation_date  > TO_DATE (:pcreatedate, 'MM/DD/RRRR HH24:MI')
    GROUP BY  summary
    ;
    

    'GROUP BY summary' means that you will get a line of output for each distinct value of the summary. He has no need of SELECT DISTINCT since the GROUP BY is already ensuring that the lines are separate.

    There is no variable binding DATE in SQL * Plus, so you must use a VARCHAR2.
    If you do something similar in PL/SQL, you can use a DATE variable. Make sure that you do not call TO_DATE on something that is already a DATE.

    Published by: Frank Kulash on June 26, 2012 14:01

  • How to assign the next value in the sequence directly in a variable?

    How to assign the next value in the sequence directly in a variable without using a table TWICE in PL/SQL.

    BluShadow wrote:

    How about a quick test on 11g, just to see if you directly select a sequence in a variable is significantly better than the mark of DOUBLE.

    ...

    Nope... no obvious difference.

    This is because there is none: Oracle's SELECT sequence. NEXTVAL FROM DUAL under the covers. The direct assignment is just a convenient encoding for us, but it does not change the work that accomplishes Oracle.

    create sequence s;
    alter system flush shared_pool;
    declare
    l_num number;
    begin
    l_num := s.nextval;
    end;
    /
    select sql_text from v$sql where parsing_schema_name = user;
    
    SQL_TEXT
    Report the number of l_num; begin l_num: = s.nextval; end;
    Select sql_text from v$ sql where parsing_schema_name = user
    Select double S.NEXTVAL
  • Assign the textfield value to a variable

    How can I transfer a textfield value in the variable?

    [CODE]

    import flash.text. *;

    import flash.events. *;

    import flash.display. *;

    Button named Player_save

    Player_save.addEventListener (MouseEvent.CLICK, savename);

    function savename(event:MouseEvent):void

    {

    playerlist. Text = Player_name. Text;

    trace (Player_name. (Text);

    Player_name. Text is the TextField

    }

    [/ CODE]

    First declare the variable, then assign the text value of the textfield object.

    var playerName:String = player_name.text;

  • How to assign a default value to a column?

    Hello

    Is it possible to alter a column in order to assign a default value for the column in the object browser?

    I have a RECORD of table in which I want to assign a value to 0 by default to a column whose type is NUMBER.

    Thank you for your kind replies.

    Christian.

    Hello

    In SQL, do something like:

    ALTER TABLE FICHE MODIFY ("Fieldname" NUMBER(n, n) DEFAULT 0 NOT NULL ENABLE)
    

    Replace Fieldname and n, n, as the case

    Andy

  • assignment of sequential value that resets to a group of records

    Hello all and happy FRIDAY!

    I do a conversion of data to a new system and I can't seem to come with a query.

    Running Oracle 10.2

    Sample data:
    create table test (GRP number, PART varchar2(20), SEQ number);
    insert into test values(9000, 'lskdjf', null);
    insert into test values(9000, 'alsdk', null);
    insert into test values(9000, '492kjsfjsldk', null);
    insert into test values(9000, 'lkjasdf0982j', null);
    insert into test values(9001, 'likfjajsd', null);
    insert into test values(9001, '234-092838', null);
    insert into test values(8934, '000-192893aj', null);
    insert into test values(8934, 'anotherpart', null);
    insert into test values(8934, 'jjjj0-aa-2001', null);
    insert into test values(8934, 'encifudy', null);
    insert into test values(8934, 'asfdjslkjdfklsj', null);
    insert into test values(8934, 'lksjdflj', null);
    insert into test values(4736, 'l;ask---jdflasj', null);
    commit;
    
    Select * from test;
    Do select * at this stage will give you the elements of nulls for the third column.

    Problem:
    I'm trying to run a query that spits out a sequence for each "group" of records. If there are 5 records in a group, I would like the sequence start at 1 and go to 5... may be ordered by a party. (not quite sure that the command, but to do babysteps here): P

    Here is an example of the output data, I would like that in the example above:
    GRP     PART               SEQ
    9000     lskdjf               1
    9000     alsdk               2
    9000     492kjsfjsldk          3
    9000     lkjasdf0982j          4
    9001     likfjajsd          1
    9001     234-092838          2
    8934     000-192893aj          1
    8934     anotherpart          2
    8934     jjjj0-aa-2001          3
    8934     encifudy          4
    8934     asfdjslkjdfklsj          5
    8934     lksjdflj          6
    4736     l;ask---jdflasj          1
    In that result, SEQ is not applied to the drive control part, but ultimately, this might be something I would do. So far only community-eager to get these figures here. I read using rankover(), but it's still a bit confusing for me on how it works. I'll go than I suspect it's probably what I'll have to use a search.

    In the end, this is part of a slider that is powered by a bulk collect. I might be able to fill this SEQ in PL/SQL, but I thought it would be easier to get them just at the level of the query so that they are already part of the collection, instead of having to build the logic to create this numbering system prior to insertion of an intermediate table.

    Anyhoo... any help would be greatly appreciated! If I've omitted something or am not clear anyway, please let me know! Thank you!

    Published by: dvsoukup on July 27, 2012 16:25

    Hello

    dvsoukup wrote:
    Running Oracle 10.2

    Sample data:

    create table test (GRP number, PART varchar2(20), SEQ number);
    insert into test values(9000, 'lskdjf', null); ...
    

    Thanks for posting your version and CREATE TABLE and INSERT PMT ts; It's very useful!
    >

    Do select * at this stage will give you the elements of nulls for the third column.

    Problem:
    I'm trying to run a query that spits out a sequence for each "group" of records. If there are 5 records in a group, I would like the sequence start at 1 and go to 5... may be ordered by a party. (not quite sure that the command, but to do babysteps here): P
    I read using rankover(), but it's still a bit confusing for me on how it works.

    You got that right! Analytical functions are looking very strange and confusing at first. After awhile, they don't seem so strange, and then they get even less confusion.
    One thing to remember: "PARTITION OF x" (this is always optional) means that each value of x is a world full. It's like a separate query is made for each value of x, and when they are all finished, the results are clauses together. In this case, you want to PARTITION BY grp.

    I'll go than I suspect it's probably what I'll have to use a search.

    You are very close; only, as the first response said, it is not RANK you want, but its close relative ROW_NUMBER. The difference between the two, it's how they deal with the links. If you have duplicates, RANK assigns a number in doubles. I suppose you want the unique numbers, even if you have identical parts on the same grp.

    In the end, this is part of a slider that is powered by a bulk collect. I might be able to fill this SEQ in PL/SQL, but I thought it would be easier to get them just at the level of the query so that they are already part of the collection, instead of having to build the logic to create this numbering system prior to insertion of an intermediate table.

    It is quite easy to assign numbers when you generate the table.

    If the situation is what you have posted, that is your table already exists, but the number of seq is not filled yet, then you can do:

    MERGE INTO     test     dst
    USING   (
             SELECT  grp
             ,         part
             ,         ROW_NUMBER () OVER ( PARTITION BY  grp
                                                    ORDER BY      part
                               )       AS seq
             FROM    test
         )          src
    ON     (     src.grp          = dst.grp
         AND     src.part     = dst.part
         )
    WHEN MATCHED THEN UPDATE
    SET     dst.seq   = src.seq
    ;
    

    The MERGE statement preceding assumes that the combination (grp, part) is unique.
    Once executing, this query:

    SELECT       *
    FROM       test
    ORDER BY  grp
    ,            part
    ;
    

    will these results:

    `      GRP PART                        SEQ
    ---------- -------------------- ----------
          4736 l;ask---jdflasj               1
          8934 000-192893aj                  1
          8934 anotherpart                   2
          8934 asfdjslkjdfklsj               3
          8934 encifudy                      4
          8934 jjjj0-aa-2001                 5
          8934 lksjdflj                      6
          9000 492kjsfjsldk                  1
          9000 alsdk                         2
          9000 lkjasdf0982j                  3
          9000 lskdjf                        4
          9001 234-092838                    1
          9001 likfjajsd                     2
    

    The USING clause above is almost identical to the query, published in the last post, but in the analytic clause, instead of "ORDER BY grp", part it says "COMMANDER PARTIALLY. He never has any sense to PARTITION BY and ORDER BY the same column in the same function. Why? Discuss.

  • No other way to assign a text value number other then: block.item1?

    Hi all

    In forms 6i, is there no way to value a text number other then ': Block.item1': = value?

    There is a built-in function?

    Thank you

    REDA

    You can use the built-in function COPY.

    With the built-in subroutines NAME_IN and COPY, you can reference the elements indirectly.

    See Help for forms:

    «Using the variables instead of the actual element names, you can write a subroutine that can run on any element whose name has been assigned to the specified variable.»

    In addition, using the indirect reference is required when you reference the value of a variable binding form (item, setting a global variable) in PL/SQL you write in a library or a menu module.

    Because the menus and forms libraries are modules of separate application, impossible to refer directly to the value of a form element in the command or menu item library procedure. »

    Concerning

  • How to assign an initial value by using the driaver or traditional?

    Hi all

    the question is quite simple: I use PCI - 6014 with driver OR traditional DAQ (so far). I have a device connected to a set of things to do in order to provide for a grouping, which selects the operating mode. As soon as the device is triggered and I initialize the DIO, I attribute the initial values BD. The problem is that it takes a while (approx. 15 ms) to do, and during this time (between the initialization of the devices and the initial assignment) the combination of output is one level 0, which is highly undesirable because of the specificity of the device. Is it possible to "encode" the initial values of the things to do, so that, as soon as data is turned on, and the line is declared as DO, it automatically receives the pre-defined value?

    Thank you in advance,

    Mike

    Have you read the card? The answer is no.

  • Assignment of specific values of CI practitioners

    Hello

    We try to customer approval of road tasks to those who are defined as stakeholders at a specific value of the CI.  So if someone chose a value of 'GMBO' of a QD field on the submission form, I would like to as the workflow to send the approval to Executive Director task "of stakeholders: role" for the selected CI.

    In order to define, in the customer approval task, I chose "Interested party", then "request no. / query CIs and stakeholders."  However it seems to set the CI in the detail screen of the application (within the CIs section) in the model in order to have it correctly routed to an intervener linked.  Here, the problem seems to be that he forward tasks of customer approval to all stakeholders associated with ALL the listed CI (under the section related CIs).

    Is it possible to have the 'Bound CIs' field dynamically filled in the details screen of application based on the value that is selected in the submission form?

    I hope I'm missing something right here in the way I set it up.  We run a 9.1.4 VSM environment. Thanks for any help/direction with it.

    -Syed

    Hi Syed,

    It is very important that your custom QD CI field is created in the screen assigned to your application either in all screen common called "request". You can take a look here for more information on this subject.

    If she asks is the value or inherited then you should be able to select your players in the custom field in a form of selection of feline recipients (cust.appr.task):

    There is really no need to use the "CI-related" field at all so you don't need.

    Gytis

  • Assignment of a value to a numeric field with a button

    11gxe, apex 4.x,

    Hi all

    I'm trying to assign the value to a number field with a button,

    I created a button, then one action for this button, when it is selected.

    dynamic action is based on Pl\Sql code and the code is

    begin
    :p2_assign := 455 ; -- where the page is "p2" and the number field is "assign"
    end ; 
    

    but it does not work, why?

    Create a DA

    Select the onclick of the button

    Set the value as action

    Select the item that should be defined as

    You return your return values

  • Question of assignment to the value of the variable ODI

    Hello

    I have a value assigned question of one ODI variable to another

    Scenario:

    I have 2 variables var1 and var2 and you want to assign the value of var1 and var2. Assuming that var1 has a value of 11

    I want in the end

    var1 = var2 = 11

    What do I do?

    At the project level, stated 2 variables var1 and var2 alphanumeric two, without history

    In the package

    (1) I said as a refreshment var1 variable assigned a value via refreshing option

    (2) declared a second SET variable var2

    (3) assigned (tried various options) value with different options

    # < Project code > .var1

    "# < Project code > .var1.

    "# < Project code > .var1.

    < % = odiRef.getOption ("var1") % >

    The value of VAR2 attaches not to the value of VAR1.

    Hello

    I am sure that I answered a question similar at least twice in recent months. Please do a search...

    However do this changes

    • put your variable to the most RECENT VALUE
    • Rename them in capital LETTERS
    • Equip your package the following steps
      1. declare VAR1
      2. say VAR2
      3. Refresh VAR1
      4. Assign VAR2 with this #PROJECT value. VAR1

    Let us know.

  • Separate values for the pre-treatment and results of the comprehensive review (without using the PL/SQL)

    Hi people,
    This year was difficult because it does not clearly justify what I want to achieve. The main reason for me to try this approach is to reduce the time of the performance. I have my program works very well, but since it accesses a view for each student, slows down the performance.

    Purpose of this report: Show all Dates of examination for students, but only to display the results pre and review of the overall assessment on the first line for students.

    Table scripts and INSERT statements:
    create table STUDENT_TB(student_id varchar2(4), last_name varchar2(20), first_name varchar2(20), evaluation_date date);
    create table EXAM_TB(student_id varchar2(4), exam_date date, result number);
    create table EVALUATION_TB(student_id varchar2(4), eval_flag varchar2(1), sampling_date date);
    
    insert into STUDENT_TB values('1001', 'Poppins', 'Mary', to_date('27-SEP-2012', 'DD-MON-YYYY'));
     
    insert into EXAM_TB values('1001', to_date('20-APR-2011', 'DD-MON-YYYY'), 30);
    insert into EXAM_TB values('1001', to_date('20-MAY-2012', 'DD-MON-YYYY'), 39);
    insert into EXAM_TB values('1001', to_date('10-JUL-2012', 'DD-MON-YYYY'), 34);
    insert into EXAM_TB values('1001', to_date('10-SEP-2012', 'DD-MON-YYYY'), 39);
    insert into EXAM_TB values('1001', to_date('01-DEC-2012', 'DD-MON-YYYY'), 82);
     
    insert into evaluation_tb values('1001', null, to_date('22-APR-2011', 'DD-MON-YYYY'));
    insert into evaluation_tb values('1001', 'N', to_date('20-JUL-2012', 'DD-MON-YYYY'));
    insert into EVALUATION_TB values('1001', 'Y', to_date('10-DEC-2012', 'DD-MON-YYYY'));
    Desired output:
    SID     Last Name   First Name   Evaluation Date    Exam Date   Results   Order   Pre Evaluation   Overall Evaluation   Accept?
    ===============================================================================================================================
    1001     Poppins         Mary      27-SEP-12         20-APR-11     30       1           N                       Y            Y
    1001     Poppins         Mary      27-SEP-12         20-MAY-12     39       2
    1001     Poppins         Mary      27-SEP-12         10-JUL-12     34       3
    1001     Poppins         Mary      27-SEP-12         10-SEP-12     39       4
    1001     Poppins         Mary      27-SEP-12         01-DEC-12     82       5
    Business rules:
    The Pre, global assessment and accept it? fields are derived. The area of the pre assessment is derived from the EVALUATION_TBtable. Its the value of eval_flag where sampling_date < = evaluation_date.
    In our example, the pre assessment should be an "n" while the overall assessment must be a 'Y '. The priority is Y-> N-> Null. The Accept flag is set to a 'Y' If a meadow at overall results past of N to Y or a NULL of Y value.

    I have to return all the lines for the student that show the results of the reviews SQL is the following:
    I need to join the view EVALUATION_TB. Simply join them of course would be a resulting vector product in 15 files that I don't want. I tried online (subqueries) but I failed again. Any help would be great!
    I created the column ord_num to maybe help using only this folder to display the results of the assessment.
    select x.student_id, x.last_name, x.first_name, x.evaluation_date,
           m.exam_date, m.result,
           dense_rank() over (partition by x.student_id order by m.exam_date) ord_num
    from
    (
      select  s.student_id, s.last_name, s.first_name, s.evaluation_date
      from    student_tb s
    ) x, exam_tb m
    where x.student_id = m.student_id (+);
    
    SID     Last Name   First Name   Evaluation Date    Exam Date   Results   Order
    ===============================================================================
    
    1001     Poppins     Mary     27-SEP-12     20-APR-11     30     1
    1001     Poppins     Mary     27-SEP-12     20-MAY-12     39     2
    1001     Poppins     Mary     27-SEP-12     10-JUL-12     34     3
    1001     Poppins     Mary     27-SEP-12     10-SEP-12     39     4
    1001     Poppins     Mary     27-SEP-12     01-DEC-12     82     5
    Thank you!

    Published by: Roxyrollers on March 14, 2013 11:37

    Published by: Roxyrollers on March 14, 2013 11:38

    Published by: Roxyrollers on March 14, 2013 12:27

    Published by: Roxyrollers on March 15, 2013 13:43

    Hi Roxyrollers,

    Please check your insert statements before posting. They have syntax errors.

    The following query is to give you the desired result:

    with pre_eval as
    (
       select e.student_id
            , max(e.eval_flag) keep(dense_rank last order by e.sampling_date) eval_flag
         from evaluation_tb e join student_tb s
              on e.student_id=s.student_id
                 and e.sampling_date <= s.evaluation_date
       group by e.student_id
    )
    ,all_eval as
    (
       select e.student_id
            , max(e.eval_flag) keep(dense_rank last order by e.sampling_date) eval_flag
         from evaluation_tb e join student_tb s
              on e.student_id=s.student_id
       group by e.student_id
    )
    , data_with_rank AS
    (
       select s.student_id, s.last_name, s.first_name, s.evaluation_date
            , m.exam_date, m.result
            , dense_rank() over (partition by s.student_id order by m.exam_date) ord_num
         from student_tb s
              left outer join exam_tb m
              on (s.student_id = m.student_id)
    )
    select s.student_id, s.last_name, s.first_name, s.evaluation_date
         , s.exam_date, s.result
         , e.eval_flag as pre_eval
         , a.eval_flag as overall_eval
         , case when a.eval_flag='Y' and e.eval_flag!='Y' then 'Y' end accept
      from data_with_rank s
           left outer join pre_eval e
              on (s.student_id = e.student_id and s.ord_num=1)
           left outer join all_eval a
              on (s.student_id = a.student_id and s.ord_num=1)
    order by s.student_id, s.exam_date;
    
    STUDENT_ID LAST_NAME            FIRST_NAME           EVALUATION_DATE EXAM_DATE     RESULT PRE_EVAL OVERALL_EVAL ACCEPT
    ---------- -------------------- -------------------- --------------- --------- ---------- -------- ------------ ------
    1001       Poppins              Mary                 27-SEP-12       20-APR-11         30 N        Y            Y
    1001       Poppins              Mary                 27-SEP-12       20-MAY-12         39
    1001       Poppins              Mary                 27-SEP-12       10-JUL-12         34
    1001       Poppins              Mary                 27-SEP-12       10-SEP-12         39
    1001       Poppins              Mary                 27-SEP-12       01-DEC-12         82                                                                          
    

    However, is not clear to me why the assessment are related only to the first line in the query.
    The evaluation_tb table is in fact related to student_id and I expect to be connected all lines.

    I've actually linked subqueries pre_eval and all_eval only in line with rank = 1 but I don't understand if that's correct according to business requirements.

    Kind regards.
    Al

    Published by: Alberto Faenza on 14 March 2013 20:29
    ORDER BY added, deleted ord_num output

  • Assign the numeric value of Substitution Variable?

    What I try to do is:

    Read a CSV file via the unix shell and choose some columns in each row
    Transmit the data to a MaxL Script
    Assign the data passed to substitute variables in the MaxL script.

    Problem:

    Two of the columns contain digital data (for example: 0.5 or 60 etc..) I want to set the substitution variables in these digital data (without the quotes). I tried to use

    Edit the < app and cube name > database variable 'Variable' $1;

    but it gives me error
    ERROR - syntax error 1242021-1 ['. 5']
    I tried with quotes single and double, but they value the value of the variable $1

    If I manually set the value of this Variable through the Regional service to 0.5, everything works perfectly. Any ideas on how to do this? the Ser60 does not provide a solution.

    An example is

    startMaxl scriptname.mxl "0.5"

    alter database appname.dbname set variable "VariableName" $1;

    or

    startMaxl scriptname.mxl 0.5

    alter database appname.dbname set variable "VariableName" ' \'$1\' ";

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Variable assignment of OUTPUT values. PRINTLN

    Inside our Servlet doGet, we have the following,

    out.println ("< TR > < TD > < table > < TD > < INPUT TYPE = \"text\"NAME = \"empphone\"VALUE =-"------"SIZE = \"40\"MAXLENGTH \"50\ ="" > < table > < /TR > \n ");

    and we need assign the value entered by the user into a variable.

    I don't think that that is the thing?
    String empphone1;
    empphone1 = req.getHeader ("empphone");

    Thank you very much

    KA

    use req.getParameter ("empphone");

    Kind regards
    ~ K

  • How to assign the text value when the data in the column is null or empty

    Hello guys

    I have a small question

    I have a column A that half of its value is empty, now the condition is that whenever the column is empty, assign "N/a" in the column... So I wrote a code which is:

    <? If: not (column A)? > column a = 'n/a' <? end if? >

    However, when I preview the RTF model, the data in the column still has not changed at all, many lines are still empty and did not show 'n/a '... The column is of type text

    Please advice

    Thank you
    N/A
    

Maybe you are looking for

  • browser wiil not hold or seek to remember passwords

    After the last Firefox update will no longer seek or remember passwords. I've covered all of the forums for an answer. Tried all what is written there. It really spoils the experience of brousing

  • Problem to upgrade to windows 7 (Satellite L350 21J)

    Hello I have a problem complicated (for me): I had Vista on my 350 satellite and one of my friends put mac os x on it, it worked well, but usb and dvd player wasn't working.So I decided to buy the upgrade to windows 7 I have now on 2 DVDs. I don't kn

  • Communication to S7 300 PLC using the A2 CP5611 map

    I need to collect data from PLC S7 300. I am havin the PC with card Siemens CP 5611 A2 Profibus. I don't want to use any OPC on this. is there any avilable pilot or a colecting data library. Concerning Sivakumar [email protected]

  • Userprofile transfer?

    Is it possible to export or may a user profile on the same / PC system? I reinstalled Vista and kept profile admin during the time I've updated windows and installed programs. When I create now a standard profile I see that there are a lot of work if

  • Officepro jet 8600: double-sided printing

    What I really wanted to say, is that it is the function copy/zeroxing biased, I can't seem to get.