Find maximum in the entries in the table

Dear all,

I would like to find and replace the highest value among a set of values being interviewed.  Only, I managed to find the highest value, if I compare the new value with the old value by using a shift with a single value (element) register only.

Currently, if I deal with entries in table instead of a single value, how can I do?

Example:

New entry 1 = [5

4

3

2

1]

Entry 2 = [4

3

5

3

[3]

The answer should therefore x = 5

4

5

3

[3]

So if another new table of entry has higher values x, the answer will change again. The values are compared against the row of each element in the table. The final answer should be in a table.

Can anyone help this? Thank you very much!

Tags: NI Software

Similar Questions

  • How to find duplicates in the table

    I have a table with 3 columns

    name of the table - used

    empcode firstname lastname
    XYZ 123 pk
    yzz 456 pk
    101 kkk jk


    ALTER TABLE employee
    ADD (CONSTRAINT PRIMARY KEY employee_PK
    (empcode, firstname, lastname))


    all the three columns are as key to porimary, we are migrating the data, there are problems with the data as the cobination of all three, resulting in duplicate, in the last column is supposed to be duplicates but first two columns will not have the duplicate and a complete line of the table (combination have no duplicates)

    a query need to find duplicates to validate the whole lines

    (B-)

    select empcode,firstname,lastname,count(*)
    from employee
    group by empcode,firstname,lastname
    having count(*)>1;
    
  • How to find which create the table?

    Let's say I have a user named IMSDBA, and many users have IMSDBA privilege account.
    They can log on using that account and do some operations under this scheme.

    And someday, someone has created a table under the scheme. So I wonder if it is possible to know who actually created this table?

    PS: Each user who can log in as IMSDBA has corresponding Emplyee ID and address related to specific PC.

    Any ideas would be highly appreciated :-)
    Thanks in advance!

    Published by: PhoenixBai on September 17, 2009 10:40

    Now, if you are using Oracle audit to audit things like CREATE TABLE for IMSDBA, SYS. AUD$ seize among other things, the USERHOST and TERMINAL. Assuming you're only worried about the direct connections, not of three applications at several levels, this should give you the information you need determine which machine was used and, therefore, that the user. In hindsight, if your database is in ARCHIVELOG mode and you have logs archived in time of creating the table, you can use LogMiner to get this information as well.

    Of course, standard safety advice would be that each user has a separate Oracle account that they use to simplify the task of checking who did what.

    Justin

  • Is it possible to find dependencies on the table given?

    Let suppose I have a table named TABLE_TEMP. It is used in a TABLE_TEMP_V view, then the view is used by 2 methods (PR1_p, PR2_p) in the P1_PKG package, and one of these procedures (PR1_p) is used in another package (P2_PKG) by function (F1_f) and another procedure (PR3_p). I tried to use the deptree_fill utility, and then I had a sort of such result:

    table TABLE_TEMP

    view TABLE_TEMP_V

    package P1_PKG body

    package P2_PKG body

    Problem is that the packages may have dozens of units and then I need to check manually, which of them really depends on the stuff I'm looking for.

    What I get is:

    table TABLE_TEMP

    view TABLE_TEMP_V

    proc P1_PKG.PR1_p

    Func P2_PKG.F1_f

    proc P2_PKG.PR3_p

    proc P1_PKG.PR2_p

    Is it possible to somehow?

    Best regards

    Maciej

    Dependency object is maintained at the level of the stored object. The PACKAGE is a stored object. A procedure or function within a packet is not a stored object. Therefore, there is no easy way to get what you want.

  • I use CS6 and I try to make the text field and the identical width text boxes and so that they fill up my spine. Windows in Design mode, I can't find styles to the table styles in the cell of the styles I have unerstand where I am doing the changes

    Sorry for the typing error in "understanding." Please notify

    You're doing a

    ?

    You can style form field input and textarea with CSS code to make them the same width.

    Nancy O.

  • Find the table number B > = number in the table but < then next entry b

    I'm trying to understand the following: find the table number B > = number in the table but < then next entry b

    Table A

    5
    10
    21
    20

    Table B

    8
    12
    16
    23
    40

    The 5 entry in table A, I would like to return 8 b
    For the 10 entry I would lke to return 12 b
    21 entry I would like to return 23 b
    20 entry I would like to return 23 b

    Edited by: Withnoe October 5, 2012 09:19

    Edited by: Withnoe October 5, 2012 10:54

    CREATE TABLE TAB_A (CLASS # VARCHAR2 (10), THE NUMBER OF TERM);
    CREATE TABLE TAB_B (CLASS # VARCHAR2 (10), THE NUMBER OF TERM);

    INSERT INTO TAB_A VALUES ('BIOL 520', 201010);
    INSERT INTO TAB_A VALUES ('BIOL 521', 201250);
    INSERT INTO TAB_A VALUES ('BIOL 522', 200980);

    INSERT INTO TAB_B VALUES ('BIOL 520', 201110);
    INSERT INTO TAB_B VALUES ('BIOL 520', 201150);
    INSERT INTO TAB_B VALUES ('BIOL 520', 201250);
    INSERT INTO TAB_B VALUES ('BIOL 521', 201250);
    INSERT INTO TAB_B VALUES ('BIOL 521', 201260);

    SELECT MIN (TAB_B.TERM) TERM, TAB_B.CLASS # TO TAB_A, TAB_B
    WHERE TAB_A.CLASS # = TAB_B.CLASS #.
    AND TAB_B.TERM > TAB_A.TERM
    GROUP TAB_B.CLASS #;

    Please let us know if you need anything else. Thank you

  • in the tables on Pages duplicate entries

    I have a Pages ' 09 with a table document. It contains hundreds of entries. There seems to be a lot of duplicates. Instead of using all of them manually find and delete, is there another way to do this? Also, how can I stick to the top of the table and remove empty lines after deleting of entries?

    Frank

    There are no controls in Pages ' 09, or Numbers ' 09 to remove duplicates of the tables. There is a checkbox in Excel to remove duplicates. There is also a checkbox in LibreOffice Calc under data: filter: Advanced Filter: Options for removing duplicates. Copy / paste your table of Pages in one of these applications and once that duplicates are eliminated, paste the content in a table of Pages.

  • Using JOIN to two tables to find records in the second table...

    I always seem to get these types of queries wrong and need a bit of help:

    I have a MARKETER_ACCOUNT relationship table and another table of pending relationships called ACCOUNT_ENROLLMENT.

    I have accounts that can register with a MARKETING agent. They enter the table ACCOUNT_ENROLLMENT pending and a certain Effective Date the active go and then move to the MARKETER_ACCOUNT table. If a relationship ends, it can end in any event if registering with another buyer or if no registration pending they are supposed to be going back to the parent company.

    So I want to find all the records that came back to the parent company (that is, they may not have a case pending in the ACCOUNT_ENROLLMENT of the table, but have an end date in the MARKETER_ACCOUNT table):

    Select * MARKETER_ACCOUNT m
    where M.account_no NOT IN (select E.account_no from ACCOUNT_ENROLLMENT E
    where E.effective_date between 8 December 2009 "-January 7, 2010")
    and M.expiration_date between 8 December 2009 "-January 7, 2010;

    This request is still in progress, and I don't know where I am going wrong. I mean GIVE me all the accounts in the table MARKETER_ACCOUNT that have a date of expiry from December 7, 2009 "-January 7, 2010 ' and where these accounts are NOT pending in the ACCOUNT_ENROLLMENT table, where the entry into force is for the same period."

    Any help would be greatly appreciated.

    Sean

    Perhaps you could try the version NOT EXISTS in the query:

    SELECT  *
    FROM    MARKETER_ACCOUNT M
    WHERE   NOT EXISTS
            (
                    SELECT  NULL
                    FROM    ACCOUNT_ENROLLMENT E
                    WHERE   M.ACCOUNT_NO = E.ACCOUNT_NO
                    AND     E.EFFECTIVE_DATE BETWEEN TO_DATE('08-DEC-2009','DD-MON-YYYY') AND TO_DATE('07-JAN-2010','DD-MON-YYYY')
            )
    AND     M.EXPIRATION_DATE BETWEEN TO_DATE('08-DEC-2009','DD-MON-YYYY') AND TO_DATE('07-JAN-2010','DD-MON-YYYY');
    

    If not, check out these discussions:

    {message: id = 1812597}

    {: identifier of the thread = 863295}

  • unwanted in the table entry

    Could someone help, I'm stuck in a problem

    Unwanted in her entries in the table.

    In fact I gave provided that above some condition entries to be filled, the control works but when the condition is false

    the table shows 0 for this value, I have to also use the timestamp,

    The vi is attached below

    Hi soundnt,

    Since a previously asked in the post, the real condition, you can do the writing of file and you want to leave the false values, check and write to the file only for the true condition. For the false condition make an action or if you want intimate put a notification logic to that.

    Thanks and greetings

    Sylvie

  • How to find the value closest in the table?

    Hi all

    I just want to find the value closest from the string table. That I joined herer as an image.

    Now, if I want to find the value of 350 of the string table and that's not in the table in the output array there should be more close 350 display value...

    Thank you for the support

    Vinal Gandhi

    Hi G Vinal,

    something like the joint comes to my mind.

    It may be useful

    Mike

  • How to design and the list in ascending order from the minimum to the maximum with 6 entries

    Hello

    How to design and the list in ascending order from the minimum to the maximum with 6 entries in Labview?

    It is easy to write in C++, but not in Labview, can be that I am new to Labview. I managed to get the 1st and the 6th after a comparison, but I can't get the 2nd, 3rd, 4th, 5th.

    and can I write language c ++ in Labview VI?

    Thank you.

    Try this:

  • How can I search and return several items from the table quickly (like Matlab find)?

    Hi, I'm a pretty experienced Labview programmer, and I've always wondered if there is a way to quickly search for pictures on several items that meet the selection criteria, equivalent to the Matlab find command.  While my inability to do in Labview has always annoyed me, I now have an application that requires this capability and I need to find a solution.

    Is the fastest way I've found to do this in labview to perform comparisons on the data vectors, then use the Boolean value that results from vector to analyze the table using a loop and shift registers.  I enclose an extract vi a analysis comparative vi to one of the simple searches that I need to do.  On my laptop, this research takes about 600 ms.  In comparison, the equivalent in Matlab:

    newArray=oldArray(find(oldArray(:,4)./oldArray(:,2)>1.5),;

    runs in about 1.2ms.  So, the way I am doing this in Labview is only 400 times slower

    Needless to say, I need to make these types of research many times, and these additional 599 ms start to add up pretty quickly!

    Thanks for your help,

    Aaron

    Hi Aaron,

    the slow part is probably "build group" of the node in the loop.

    Try this:

    Define an array the same size as the input data (or simply uses a copy of it) and the wire that to the shift register. Keep a counter of lines found in the loop. Use IndexArray and ReplaceArraySubset for the loop to move rows found at the beginning of the table (overwrite the 'bad' lines). After the loop simply ReshapeArray the number of found lines...

    Sorry, don't have LV (2009) on hand for editing your snippet.

  • Find the minimum value of the table in time...

    Firstly that it is not "find the min value in the table.

    It is:

    I have a table that changes its values at each iteration, and I want to compare the new values with previous values and make a new array with the minimum values...

    In C++, it would be like this:

    int main() {}

    int array [8];

    int min [8];

    int i;

    for (i = 0; i<>

    min [i] = 1000000; Initialize minimum table with a high value

    }

    {while (1)}

    Array = update_array ();

    for (i = 0; i<>

    If (array [i]<>

    min [i] = array [i];

    }

    }

    do things...

    }

    return 0;

    }

    IM new to labview and it always confuses me a lot...

    Thanks in advance.

    Using the function Max & Min regular (not table Max & min as you know) with tables and a good will of employment registry change.  Max Min &, as most of the digital functions, is polymorphic and works witt tables as well as scalars.

    Lynn

  • Haw to find the element in the table that appears only once

    I have a table like this 2d:

    1 2 3 4 5 0

    5 6 2 4 7 2

    8 3 6 0 9 4

    5 6 7 7 3 2

    And I need to find items that appear only once in this table

    In this case, 8 and 9

    I also need this elements (row and column) position

    Are integers

    I tried to remodel the table and use the find but no result.

    Your best bet is to remodel a table 1 d do your seaching and use 'Quotient & rest' to convert location (index) in the table 1 d back to the index in table 2D. Use "Array Size" to get the number of rows and columns of the table 2D.

    The histogram only works on 1 d arrays.

    Or reshape a 1 d table. For each digit (0-9), use 'Search 1 D Array' twice. If the first 'search' finds a match (does not =-1), use the offset to start the 2nd search beyond the 1st index discovery. If 2nd 'search' returns-1, then one and the SAME time happens

    The index of the first 'search' to calculate the index (Quotient & rest") line and collar of the 2D array.

  • How to find the primary key columns in the tables in MS Access using SQL queries

    How to find the primary key columns in the tables in MS Access using SQL queries

    Hello

    This is the forum for Windows Vista programs related issues.

    For better assistance, please try instead the Forums in SQL Server .

    Thank you! Vincenzo Di Russo - Microsoft MVP Windows Internet Explorer, Windows Desktop Experience & security - since 2003. ~ ~ ~ My MVP profile: https://mvp.support.microsoft.com/profile/Vincenzo

Maybe you are looking for