Finding unique minimum value from a set of values

Hi.
I have numbers in three columns - H, P, X
I need to compare numbers in each row and find out the lowest value and find out if there is a unique lowest value.
For example, in row 2
H2=2, P2=5.4, X2=2. In this row, both H2 and X2 have the lowest number, 2. Hence, the lowest number is not unique. I want to fill cells H2 and X2 in Yellow and cell P2 in Red.
In row 3, 
H3=2, P3=5.4, X3=4. In this row, H3 has the lowest unique number, 2. I want to fill cell H3 in Green and cells P3 and X3 in Red.
Green = lowest and unique
Yellow = lowest but not unique
Red = Not the lowest
I can use the MIN function to find the least number but I do not know how to identify the unique lowest number if available.
Thanks for your help.

Select for example H2:H100. I will assume that the active cell within the selection is in row 2.
Color the cells yellow (this will be the default)
On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula
=OR($H2>$P2,$H2>$X2)
Click Format...
Activate the Fill tab and select red.
Click OK, then OK again.
On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula
=AND($H2<$P2,$H2<$X2)
Click Format...
Activate the Fill tab and select green.
Click OK, then OK again.
The formulas for columns P and X are similar, switching the roles of the three cells.
Regards, Hans Vogelaar (http://www.eileenslounge.com)

Similar Messages

  • Finding a minimum value in an array without using loops

    I can find a minimum value in an array using a loop, but I am unsure of how to do it without any type of of loop
    Here is what I have using a loop:
    // This method searches for the minimum value in an array
    public static int min(int a[]){
    int min = a[0];
    for(int i = 1; i < a.length; i++){
    if(a[i] < min){
    min = a;
    return min;
    How do I covert this to do the same thing, using no loops?
    Thank you for replies
    Edited by: kazmania on Feb 7, 2008 12:26 PM

    public class Test112 {
    public int recurse(int[] x, int i, int n)
    if (i==x.length-1) { return (x[i] < n) ? x[i] : n; }
    n = (n < x[++i]) ? n : x;
    return recurse(x, i, n);
    public static void main(String[] args) {
    int[] nums = {3, 1, 56, 2, 99, 34, 5, 78, -400, 2383, 201, -9, -450};
    Test112 t = new Test112();
    int min = t.recurse(nums, 0, nums[0]);
    System.out.println(min);

  • Finding the minimum value across multiple rows (not in a single column)

    Hello,
    I am running some ad-hoc SQL to test a website implementation of a spec. The ad-hoc sql gives me a set of date values for a specific widget (called a Task). I need to find the Minimum of either (Task.EndDate + 1 year) or the MAX date from the list
    of other dates. I can easily get all of these dates, and compare them visually, but I'm not sure how to make SQL give me just the single value that I want. In the image below, you can see the results. The blue cell is the value I should get if I were to retrieve
    a single value. 
    select 
    [EndDate+12Mo] = DATEADD(year,1,t.EndDate)
    , [TaskEdit] =  t.EditTS
    , [ResearchEdit] = (select x.editts from Research x where t.researchid = x.researchid)
    , [DeliverableEdit] = (select max(x.EditTS) from Deliverable x where t.taskid = x.taskid)
    , [RTPEdit] = (select max(x.EditTS) from ResTaskParticipant x where (t.taskid = x.taskid and t.researchid = x.researchid) or (t.researchid = x.researchid and x.TaskID is null) )
    , [RelatedTaskEdit] = (select max(x.EditTS) from Task_Related x where t.taskid = x.Task1ID or t.TaskID = x.Task2ID)
    , [CrosscutEdit] = (select max(x.EditTS) from Task_Crosscut x where t.taskid = x.taskid)
    , [TaskFundingEdit]= (select max(x.EditTS) from TaskFunding x where t.taskID = x.taskID)
    , [ContractFundingEdit]= (select max(x.EditTS) from TaskFunding x inner join ContractFunding y on x.ContractFundingID = y.ContractFundingID where t.taskID = x.taskID)
    from task t
    where 
    t.tasknumber = 
    '2123.001'
    Thanks!
    Jennifer

    Sounds like this to me
    select CASE WHEN [EndDate+12Mo] < MAX(dt) THEN [EndDate+12Mo] ELSE MAX(dt) END AS YourDateValue
    from
    SELECT [EndDate+12Mo],dt
    from
    select
    [EndDate+12Mo] = DATEADD(year,1,t.EndDate)
    , [TaskEdit] = t.EditTS
    , [ResearchEdit] = (select x.editts from Research x where t.researchid = x.researchid)
    , [DeliverableEdit] = (select max(x.EditTS) from Deliverable x where t.taskid = x.taskid)
    , [RTPEdit] = (select max(x.EditTS) from ResTaskParticipant x where (t.taskid = x.taskid and t.researchid = x.researchid) or (t.researchid = x.researchid and x.TaskID is null) )
    , [RelatedTaskEdit] = (select max(x.EditTS) from Task_Related x where t.taskid = x.Task1ID or t.TaskID = x.Task2ID)
    , [CrosscutEdit] = (select max(x.EditTS) from Task_Crosscut x where t.taskid = x.taskid)
    , [TaskFundingEdit]= (select max(x.EditTS) from TaskFunding x where t.taskID = x.taskID)
    , [ContractFundingEdit]= (select max(x.EditTS) from TaskFunding x inner JOINContractFunding y on x.ContractFundingID = y.ContractFundingID where t.taskID = x.taskID)
    from task t
    where
    t.tasknumber =
    '2123.001'
    )t1
    UNPIVOT(dt FOR cat IN ([TaskEdit]
    , [ResearchEdit]
    , [DeliverableEdit]
    , [RTPEdit]
    , [RelatedTaskEdit]
    , [CrosscutEdit]
    , [TaskFundingEdit]
    , [ContractFundingEdit]))u
    )r
    GROUP BY [EndDate+12Mo]
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Query to find unique combinations in a record set

    I need to build a SQL to identify unique combinations
    I have the following data structure -
    I have a table to capture characteristics. Each characteristic can be associated with one or more attributes. Each attribute can be assigned one or more values
    Characteristics are grouped under Characteristic set. A Family set is the highest level of grouping and is a group of characteristic sets.
    I need to find the unique combinations within each family set
    Ex.
    Family Set - F1
    contains Characteristic Set - S1 and S2
    S1 contains characteristics - C1, C2.
    S2 contains characteristics C3
    C1 contains 1 attribute a1 which can have two values v1 and v2
    C2 has 2 attributes a2 and a3 each of which can have one value say v2 and v3 respectively
    c3 has 1 attribute a4 which can take 4 values say v4, v5, v6, v7
    There is no pattern in terms of the number of values that can be assigned to an attribute, number of attributes for a characteristic, no of characteristics present in a set and number of set that can be associated with a family.
    Need to know the max no of unique combinations in a family. One combination for the above ex would be F1S1C1A1V1+F1S1C2A2V2+F1S1C2A3V3+F1S2C3A4V4
    Appreciate your help.
    Thanks
    Gopal

    Hi David,
    Thanks for you analysis
    But these are not the combinations I am looking for. The details below may explain my requirement -
    I am trying to build out a repository of flows supported by a product application.
    Characteristics are features in the application. Each feature can have one or more input parameters or attributes. Each parameter can support multiple values
    For ex. one characteristic could be
    Define Item
    Input parameters/attributes for item could be item class, item type etc. These attributes can take different values.
    Item Source could support values like Manufactured, Procured etc
    Item Type could support values like Raw Component, Finished Goods, Intermediates etc
    Characteristics are stored in a table with ID and name ; Attributes stored in attributes table with ID and named joined with characteristics id .. Values are stored in values table with value id and value and joined with the attribute id
    Based on the above ex., some of the supported combinations are Manufactured Component, Procured Component, Manufactured FG, Procured FG etc
    Characteristic set is a group of related characteristics or features.
    To take the above example further .. we can group Define Item + Define Product Structure as a characteristic set - Define Product
    Define product structure say has one attribute stucture type which takes two values complex and simple
    Characteristic set is stored in a set table with columns setid, setname, stepno, characteristic_id
    Now the combinations become - Manufactured Component with Complex Structure, Manufactured Component with Simple Structure, Manufactured FG with Complex Structure etc ...
    Family set are the supported flows in the application which groups the features to be executed.
    For ex. a Product Definition flow will comprise of
    Step 10 - Define Product (characteristic set)
    Step 20 - Cost the Product (another characteristic set with say one characteristic - cost method which supports value standard and average)
    Family set is stored in a family set table with column familyid, familyname, stepno, chstepid
    Based on the above ex, the product definition flow will have several combinations such as
    Combination 1 -
    Step 10 - Define Mfg Component with Complex Structure
    Step 20 - Cost the Component with Standard Costing
    Combination 2 -
    Step 10 - Define Mfg Component with Complex Structure
    Step 20 - Cost the Component with Average Costing
    and so on ...
    I need to derive the total number of unique combinations for each family set / flow
    Family Set > Step No > Characteristic Set (one characteristic set per step) > Step No > Characteristics (one characteristic per step) > Attributes (many attributes per characteristic) > Attribute value (many values per attribute)
    The complexity is quite large as the product supports several flows which can be executed through many combinations. We need to build out the combinations as a product footprint and I am trying to have it mapped through an apex application.
    Appreciate any help to map this information out.
    Thanks
    Gopal

  • How to find the Minimum value of a Measure across a Custom Dimension

    I am having Trouble figuring the best approach for the given below scenario.
    I have a measure called Inventory which is basically by Product by Part by Geography across a Time period.
    Part dimension is 3 levels Deep.
    Part
    --Configuration_NAME
    - Part_ID
    the Requirement is to Pick the the Minimum Inventory Values of a product across the Configuration_Name and Store this information in another measure called Inventory_Min.
    here is how the data mock up looks like
    config1 - product1- Inventory - 100 (Period1)
    config2- product1-Inventory-200 (Period1)
    config3-Product1-inventory-400 (Period1)
    now the output expected is
    Config1-Product1-Inventory_MIN - 100(Period1) since for this product across 3 configs, 100 is the minimum inventory.
    I am trying to use @RANGE,@MINS but i am not sure how to tell essbase to go down the Part Dimensions, level 1 members and not across the Period.
    any help or points will be appreciated.
    Thanks,
    Sriram

    Hello,
    what about @MINSRANGE ?
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/minsrange.html
    Inventory_MIN = @MINSRANGE(SKIPBOTH, "Inventory" , @LIST("config1","config2","config3"))
    should give the result,
    if you FIX @RELATIVE("Part",-1) to grab level 1 members.
    and you can extend expression something like
    Inventory_MIN = @MINSRANGE(SKIPBOTH, Inventory , @CHILDREN(@CURRMBR("Part")))
    Hope it helps,
    Ahmet

  • Get the minimum value from a cursor

    Hi,
    i have a cursor that returns  the following two columns in a stored procedure. now i want to find  the minimum value of SORT NUMBER column .
    Can anybody give me an idea..... 
    create or replace procedure get_min
    as
    cursor c1 is
    select  group_number
           ,  sort_number
    from  group_table
    v_min  number;
    begin
    for c1_rec in c1
    select min(c1_rec.sort_number) into v_min ;
    end;
    GRP_NUMBER            SORT NUMBER
    1001                           9978
    1002                           9979
    1003                           9946   thanks in advance.

    OPTION1
    I'm guessing your stored procedure loops through the cursor (goes record by record and does something), correct? If it loops through all records, then
    1. first define variable which will hold minimum value e.g.
    my_min_value number := 0;
    2. then add this inside the loop (as you loop through all records, my_min_value will get assign the lowest value)
    my_min_value := LEAST(my_min_value, c1_rec.sort_number);
    when the cursor is done looping through all records, you get your minimum value
    small note: make sure c1_rec.sort_number is not null or you know how null works with least function
    OPTION2
    if you don't loop through all records (maybe have a condition and stop looping), then you can always change the SQL and add the minimum value to the SQL, there are multiple ways to do this, this is one of them - I hope there is no typo - it's 8pm :-)
    select  group_number
           ,  sort_number,
              min(sort_number) OVER ( )
    from  group_table
    OPTION3
    get rid of cursor, there are probably 5000 better choices :-)

  • Finding the minimum with a for statement

    Ok so Ive got this program and I need to find the minimum value from the 10 values that are entered by a user, my problem is I cant figure out to initialize the variable minNum, Im not sure how to do it with a for loop, if I set it to zero, then zero will always be the minimum, so Im not sure how to make it so it takes the first value as the minimum then compares each value entered after that to see if the value is smaller, and I have to use a for loop for this problem, my professor specified which loop to use, so heres the code:
    import java.util.Scanner;
    public class Exercise52Chapt6
      public static void main(String[] args)
                Scanner scan = new Scanner(System.in);
                  int minNum;  // stores the minimum of 10 numbers
                           int number;  // stores the current input
                           for ( int i = 1; i <= 10; i++ )
                    System.out.print( "Enter an integer > " );
                                   number = scan.nextInt( );
                        if(number < minNum)
                        minNum = number;
              // process results by printing the minimum
              System.out.println( "The minimum is: " + minNum );
    }

    import java.util.Scanner;
    public class Test
      public static void main(String[] args)
                    Scanner scan = new Scanner(System.in);
                        int minNum=0;  // stores the minimum of 10 numbers
                          int number;  // stores the current input
                          for ( int i = 1; i <= 10; i++ )
                            System.out.print( "Enter an integer > " );
                                number = scan.nextInt( );
                                if(i==1){
                                    minNum = number;
                                    continue;
                                if(number < minNum)
                                    minNum = number;
                    // process results by printing the minimum
                    System.out.println( "The minimum is: " + minNum );
    }

  • How do I find the closest value to a constant in an array

    I have an array of floating numbers and I want to find a value in that array that is closest to a floating constant.     For example if I have the array 5.9, 2.8, 3.7, 5.8, 6.9, and if I have the constant 5.4, how would I find the closest value to 5.4 in the array, which in this case would be 5.8. The only approach I can think of is to subtract each value in the array from 5.8 and find the minimum value of an array which would be created from the differences. Is there a better approach?
    Thank you.

    Just be sure to take the absolute value of the difference and your proposed method is fine.

  • Finding minimum value from spreadsheet

    Hi,
    I am attaching here my spreadsheet. In that spreadsheet I want to find minimum value of column B and display the corresponding value at the same iondex from column A.
    Attachments:
    vna_readings.xlsx ‏14 KB

    Hi jyotia,
    in this thread you'll find the functions to read the entire content from your excel file. If you have your data as an array in LabVIEW, then you can use the "Array Min&Max" function to get the min index from your column "B". With index array you can read the corresponding value from column "A".
    Mike

  • Error while setting Minimum value to  Input Number Spin Box..

    Hai
    I drag and drop a VO and created a table.In that table,i convert a column which contain an InputText field to Input Number Spin Box.At the time of page load ,the table fetches the datas from the DataBase and showing Number values in the SpinBox.After that,When i scroll the table through vertical scrollBar,the table showing *"fetching data"* and Error is throwing as *"The value must be Number"* .. In the VO,this attribute is Number.
    THIS ERROR ONLY OCCURS when i set the Minimum value of spinBox ..The purpose of setting minimum value is that i only want user to select ve value only..How can i restrict the user for selecting only ve values..?(ie,*How can i set minimum value to SpinBox?)*

    Try changing the datatype of your attribute in the EO to be Double instead of Number.

  • How to capture the data within the given range of maximum and minimum values ? from csv files

    My requirement,
    1. Here, the user will provide the range like maximum and minimum values, based on this range, the VI should capture the data within the given range. ( from CSV file as attached )
    2. Then VI should calcluate the average value for captured data and export it to excel.
    This is my requirement can anyone help me on this.
    Many thanks in advance
    rc_cks
    Attachments:
    sample_short.csv ‏2439 KB

    Hi,
    Thanks for remnding me. I forgt to attach the VI, 
    Here I am attaching the VI, what I tried. 
    From attached CSV file, I have to find an average value for columns B,C,D,E,F,G,H,I and AJ, AK. ( data range will be defined  by user ), focused only on these columns
    Here, the scope is to calculate an average value for given data range by user as MAX and MIN data.  
    FYI:  I tried manually for two instance i.e column H & I.  As per H column one steady state values from  7500 to 10500 and similarly in I column 7875 to 10050. So, I gave these as a limit to capture and calculate the average value. But unfortunaltely, requirement has been modified as per below requirements.
    More Info on requirement: 
    --> The user will define the range of data by giving some MAXIMUM and MINIMUM values(for above mentioned columns induvidually), then VI should capture          that data range and it has to caculate the average value for that range of data. This is the task I have to complete. 
    --> I am stuck in creating a logic for data capturing for given range of MAX and MIN value from user, 
         Can anyone help me on this. 
    If my explanation is not clear, Please let me know.  
    Many thanks, help mw
    rc
    Attachments:
    VI_rc.vi ‏25 KB
    sample.zip ‏4166 KB

  • Finding minimum value in each row using dynamic query

    need to find the minimum and maximum value from each row using dynamic query
    [from curr] will be given as input
    Tuky

    DECLARE @t TABLE(a INT,b INT,c INT);
    INSERT @t VALUES(1,2,3),(9,8,7),(4,6,5);
    SELECT *
    ,      (   SELECT  MAX(val) 
               FROM    (VALUES (a)
                           ,   (b)
                           ,   (c)
                       ) AS value(val)
           ) AS MaxVal 
    ,      (   SELECT  MIN(val) 
               FROM    (VALUES (a)
                           ,   (b)
                           ,   (c)
                       ) AS value(val)
           ) AS MinVal 
    FROM @t;
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Finding minimum value

    I have 4 double variables and I need to find the minimum of them all. I tried using the Math.min (x,y) statement but it only allows me to find the minimum of two numbers. Thanks,
        public static void main(String [] args) {
        double minimum = getMin (4.2, -3.5, 2.1, 1.1);
        System.out.println("The Minimum is: " + minimum);
        public static double getMin (double w, double x, double y, double z)
        double minimum = Math.min(w,x);
        return 0;
        }

    > One of the easiest way might be a sorted list
    in
    which you just grab from the low end.
    Sorting the list would be more time consuming than
    iterating over it once and returning the smallest
    value, as warnerja suggested.I know but it appears that the OP does not want to do any comparisions himself so I was suggesting this.

  • Finding the smallest value from an array

    Hi there :)
    I started learning Java a few days ago and have now run into my first problem :p
    I am using Netbeans on Mac OS X.
    I need to find the smallest value from an array. So far I've had no luck. Any suggestions would be fantastic.
    The code so far:
    * Math Problems
    * Created on May 4, 2007, 10:54 AM
    * PROJECT 1: - IN PROGRESS
    * Create a program that allows you to create an integer array of 18 elements with the following values
    * 3, 2, 4, 5, 6, 4, 5, 7, 3, 2, 3, 4, 7, 1, 2, 0, 0, 0
    *  - The program computes the sum of elements 0 to 14 and stores it in element 15                              // COMPLETED
    *  - The program computes the average and stores it in element 16                                              // COMPLETED
    *  - The program finds the smallest value from the array and stores it in element 17
    * PROJECT 2: - TO DO
    * Write a program that accepts from the command line and prints them out. Then use a for loop to print
    * the next 13 numbers in the sequence where each number is the sum of the previous two. FOR EXAMPLE:
    *  - input>java prob2 1 3
    *  - output>1 3 4 7 11 18 29 47 76 123 322 521 843 1364
    * PROJECT 3: - TO DO
    * Write a program that accepts from the command line two numbers in the range from 1 to 40. It then
    * compares these numbers against a single dimension array of five integer elements ranging in value
    * from 1 to 40. The program displays the message BINGO if the two inputted values are found in the array
    * element. FOR EXAMPLE:
    *  - input>java prob3 3 29
    *  - output>Your first number was 3
    *  -        Your second number was 29
    *  -        Its Bingo!  // This message if 3 and 29 are found in the array
    *  -        Bokya!      // This message if 3 and 29 are not found in the array
    *  -        The array was 7 5 25 5 19 30
    * PROJECT 3 EXTENSION: - OPTIONAL
    * Generate the array of 5 unique integers using random numbers
    package mathproblems;
    * @author Mohammad Ali
    public class Main {
        /** Creates a new instance of Main */
        public Main() {
         * @param args the command line arguments
        public static void main(String[] args) {
            int A[]={3,2,4,5,6,4,5,7,3,2,3,4,7,1,2,0,0,0};
            int O = A.length - 3;
            int B = A[0] + A[1] + A[2] + A[3] + A[4] + A[5] + A[6] + A[7] + A[8] + A[9] + A[10] + A[11] + A[12] + A[13] + A[14];
            A[15] = B;  // Stores the sum of the integers in A[15]
            int C = B / O;
            A[16] = C;  // Computes and stores the average in A[16]
            int D = 101;
                if (A[0] < A[1]) { D = A[0]; }
                else { D = A[1]; }
                if (A[1] < A[2]) { D = A[1]; }
                else { D = A[2]; }
            System.out.println("There are " + O + " numbers in the Array");
            System.out.println("Those numbers add up to " + B + ".");
            System.out.println("The average of those numbers is " + C + ".");
            System.out.println("The smallest value in the array is " + D + ".");
    }The code is incomplete, but it works so far. The problem is I know there must be an easier way. SAVE ME :)

    OK :)
    Just thought I should show you the output as to help anyone else with the same problem:
    * Math Problems
    * Created on May 4, 2007, 10:54 AM
    * PROJECT 1: - IN PROGRESS
    * Create a program that allows you to create an integer array of 18 elements with the following values
    * 3, 2, 4, 5, 6, 4, 5, 7, 3, 2, 3, 4, 7, 1, 2, 0, 0, 0
    *  - The program computes the sum of elements 0 to 14 and stores it in element 15                              // COMPLETED
    *  - The program computes the average and stores it in element 16                                              // COMPLETED
    *  - The program finds the smallest value from the array and stores it in element 17                           // COMPLETED
    * PROJECT 2: - TO DO
    * Write a program that accepts from the command line and prints them out. Then use a for loop to print
    * the next 13 numbers in the sequence where each number is the sum of the previous two. FOR EXAMPLE:
    *  - input>java prob2 1 3
    *  - output>1 3 4 7 11 18 29 47 76 123 322 521 843 1364
    * PROJECT 3: - TO DO
    * Write a program that accepts from the command line two numbers in the range from 1 to 40. It then
    * compares these numbers against a single dimension array of five integer elements ranging in value
    * from 1 to 40. The program displays the message BINGO if the two inputted values are found in the array
    * element. FOR EXAMPLE:
    *  - input>java prob3 3 29
    *  - output>Your first number was 3
    *  -        Your second number was 29
    *  -        Its Bingo!  // This message if 3 and 29 are found in the array
    *  -        Bokya!      // This message if 3 and 29 are not found in the array
    *  -        The array was 7 5 25 5 19 30
    * PROJECT 3 EXTENSION: - OPTIONAL
    * Generate the array of 5 unique integers using random numbers
    package mathproblems;
    * @author Mohammad Ali
    import java.util.Arrays;
    public class Main { 
        /** Creates a new instance of Main */
        public Main() {
         * @param args the command line arguments
         public static void main(String[] args) {
                  int A[]={3,2,4,5,6,4,5,7,3,2,3,4,7,1,2,0,0,0};
              Arrays.sort(A);
              System.out.println("The smallest value in the array is " + A[0] + ".");
              int num = A.length;
              System.out.println("There are " + num + " values in the Array.");
              int sum = 0;
              for (int i = 0; i < A.length; i++) {
                   sum+=A;
              System.out.println("Those numbers add up to " + sum + ".");
              double d = (double)sum/num;
              System.out.println("The average value of those numbers is " + d + ".");
    What Iearned:
    1) How to create for loops properly
    2) How to import java.util.Arrays ( =D )
    3) How to get a more accurate average using double instead of int
    4) This forum is the best and has very helpful people 24/7 ( =D)
    Thanks Again,
    Mo.

  • Problem in Retrive values from result set

    I have a class where i do all database operation .First i fire select query and take values from result set and based on that value i fire update query.
    Problem is that i am not getting all values from result set . i get only last value and when i fire update query i get error as :Resultset is closed.
    I am using acess and java.

    You probably are using the same Statement object for both queries? Try creating separate Statement objects for each query. (My guess is this a problem with the way you're using JDBC, not a Servlet issue.)

Maybe you are looking for

  • TNSListener Error

    Hello All, I m using using Oracle 11g on windows 2003. My TNSListener is not starting automatically when i m starting my computer.I even tried the follwing commands..... C:\Documents and Settings\Administrator>lsnrctl start LSNRCTL for 32-bit Windows

  • Sorting ALV grid by clicking on header.

    Hey everyone. I've got a report displaying an ALV grid where I really don't want to have the toolbar for it showing, so i've taken that out. But I would like to be able to sort the data in the grid by clicking on a field in the header. I've seen this

  • AdvancedDataGridColumn  Can't display the data of dataProvider

    there is my code: var dataGrid_1:AdvancedDataGrid=new AdvancedDataGrid(); var column_1:AdvancedDataGridColumn=new AdvancedDataGridColumn("name"); var column_2:AdvancedDataGridColumn=new AdvancedDataGridColumn("money"); var column_group:AdvancedDataGr

  • Tool tips aren't showing

    I'm using PS CS4 on Windows xp tool ships are checked in the preferences but they're not showing. Can you tell me what I need to do to bring these back. Thanks!

  • Can Reply, but Can't Send New Mail

    I first noticed this when I tried to share a URL last night. I kept getting an error trying to send the URL. I've tried sending test mail and there's no immediate error, but the messages show up in the out box, indicating unsent. However, if I reply