Add values for them to table without accidental

Hi I am writing a program for research at penn state behrend. It is designed to take a pressure transducer values and calculate pressure losses. My teacher wants to gather incriments of 10, their average values and then store all means when the user chooses you to start saving. I use a loop for to bring values and the average of the 10 output collected values in a table. After 10 averages are collected the program to output these values in a table. I can't understand how to continue to add to this table without overwriting the previous values. Any help would be appreciated. I'm uploading what I have so far. Thank you

PS I use a generator of random numbers for testing only

ajh305

Keywords:

Build the Array function

shift registers

Tags: NI Software

Similar Questions

  • Is it possible to create a document merge pdf and mailing to several vendors (each with their own unique values) for them to individual e-sign?

    Is it possible to create a document merge pdf and mailing to several vendors (each with their own unique values) for them to individual e-sign?

    I have my letter and the data that is created in Excel and Word, so I want to create these data in a mail merge (by Word) and then saved in PDF format.

    I wish that each document merged PDF mail to have their signature / title / name of fields as fields of e-sign.  Is this possible? How can I configure my document as well what happends without me one in and edit every PDF document.

    Thank you ~.

    Hello Gallienterprises,

    It seems that you are looking to extract the values of your CSV file in the document of the multiple signatories. For this, you can use the MegaSign feature:

    https://helpx.Adobe.com/content/help/en/document-cloud/help/sending-megasign-using-CSV-fil.html

    Let me know if you need more information.

    Kind regards

    -Usman

  • Referring to APEX_APPLICATION values. G_F (n) table without a process OnSubmit.

    I have box implemented as a column of report on an APEX report page. I try to access control values in a PLSQL process using APEX_APPLICATION. G_F01. It works very well in an OnSubmit Page process, but does not return a value if used in dynamic action. I think that APEX_APPLICATION. G_F01 returns the values checked only on the page. Is it all work around I can extract the values checked in dynamic action that is triggered by the change of box event.

    Thanks in advance

    Hina

    Hi HIna,

    I created an example for you

    https://Apex.Oracle.com/pls/Apex/f?p=245:11

    Steps are below:

    1. report query

    Select

    apex_item. CheckBox2 (1, empno) empno, ename, sal from emp;

    2 dynamic Action:

    var arr_f01 = [];

    () $("input[name='f01']:checked").each

    function() {}

    arr_f01.push ($(this).) Val());

    });

    Alert (arr_f01);

    (apex). Server.Process

    'PROCESS_CHECKED '.

    , {f01: arr_f01}

    , {dataType: "text"}

    , success: {function (pData)}

    Alert ('data inserted into the Temp Table');

    } }

    );

    3. the application process:

    Start

    I'm looping 1.apex_application.g_f01.count

    insert into temporary values (APEX_APPLICATION. G_F01 (i));

    commit;

    end loop;

    end;

    It works for me. The only change I see in my and your query is of the Data Type in apex.server.process.  I assume that the default is JSON, you need to change to 'text '.

  • When you move the timeline indicator - it deselects selected clips previously (to add fx for example) in cc2015 - why?

    Hey everybody, I would be grateful is someone could answer this for me:

    When I selected more clips to add fx for them - and try to move the timeline indicator to see if I left out the clips more, as soon as it comes to a previously deselected clip - all my selections disappear.

    It could be related to the fact that each clip gets selected when I scroll up and down the timeline without doing me anything. (No need to click on the clip so that it can be selected).

    Please someone make me know what I am doing wrong or what setting I accidentally put under tension! I want that this party

    Thank you!!!

    Uncheck the selection follows the playhead to the title sequence.

  • Calculate the maximum value of the sub-table when creating using a structure of case and records the shift

    I have two 1 d arrays that contain cyclical information (a bit like a sine wave).  One that contains information about the position in degrees and another that contains the couple.  I would like to calculate the value of maximum torque whenever the station is within a certain range (for example, 30 to 80 degrees).  The beaches are repeated - that is why it is cyclical.   I use the function "in the range", a structure of the case and the shift records to build a new table with the values that are included in the beach I said - that was easy part (see attached VI).  I'm struggling with a way to calculate a maximum value for each sub-table formed when the values are 'in range '.   Your help is very appreciated.

    vt92 solution worked!  I agree that there should be a simpler solution, but your to works fine.  Thank you very much.

  • What are the optimal values for mac and arp timeout values

    Hi guys.

    What are the best values for 'mac address-table-time of ageing' and "arp timeout" by following scenarios? :

    -single sg300-10 as hosts Layer 3 - with a maximum of 10 local switch (directly connected)

    - and a 3750 x-stack with 100 local hosts + hsrp with a battery of the same kind

    or for asa 5520 as internet gateway for 500 customers?

    I use now a time of aging mac 300 seconds and a time-out of the arp of 3600 seconds.

    Is - this okay.?

    Thank you.

    These values should be fine. I don't know why the switch is layer 3 since you have of the 3750 and the ASA5520. If you start to see overflow errors, you should consider using the layer 2 switch.

    -Tom
    Please mark replied messages useful

  • maximum value for a column in a table without using rownum and rowid, group

    Hi all

    Is it possible to recover the maximum value in a column of a table without help:
    1 rownum and rowid.
    2. the Group
    3. any built-in function of Oracle.

    Kindly let me know if possible.


    Kind regards.

    Published by: J2EE_Life on January 23, 2012 21:06
    select e1.empno
      from scott.emp e1
      left outer join scott.emp e2 on e1.empno < e2.empno
     where e2.empno is null
    
  • How to continue to add values into a table...

    For this picture I have a set of 5 values but I want to be able to add more to what the user of the program found that they have registration enough it is to say, they enter 20 values without a last replacement itself. The code I have right now allows me to add a 6th but not up to the amount, I find it necessary.

    Here is the code:

    Add a mouse listener to respond to the addition of brands
    enter_btn.addEventListener (MouseEvent.CLICK, onClick);
    function onClick(event:MouseEvent):void {}

    Declare required variables
    var brands: Array = ["100" '76', '80', '54', '23'];
    var brand: Number;
    markIn var: String;

    Retrieve data from TextField
    markIn = markIn_txt.text;
    brand = Number (markIn);

    Table
    Marks.push (markIn_txt. (Text);
    trace (Marks);
    }

    Any help would be appreciated

    Push the table method is what allows you to add items in a table, without taboo.  Your problem is to declare the array inside the function.  By doing this you're recreating each time.   Try...

    var brands: Array = ["100" '76', '80', '54', '23'];

    enter_btn.addEventListener (MouseEvent.CLICK, onClick);

    function onClick(event:MouseEvent):void {}

    Declare required variables
    var brand: Number;
    markIn var: String;

    Retrieve data from TextField
    markIn = markIn_txt.text;
    brand = Number (markIn);

    Table
    Marks.push (markIn_txt. (Text);
    trace (Marks);
    }

  • Under certain conditions add value in table

    Hi all

    I have two tables 2D of the string data in my VI (taken from the .mdb using ADO & SQL file). The "Window list" table on the left, that's what I want to add values to. The 'List of glass' table on the right contains the values that I want to add to the main table according to the values in other cells.

    For example:

    1 component ID window are 2191 and 2001. Under the thickness of the component 1/component 2 in the table "window list", I would add the thickness appropriate for stream ID 2191 and 2001 table "list of glass".

    Here's a snip of the two tables in question.

    This should be simple enough, but as I am a rookie LV I am not very well how to do.

    Thank you very much

    Laura

    Joint must be what you want.  Let me know if you have any other questions.

  • How do subtract you different values for items in a specific table?

    Hi LabVIEW community.

    I am new to LabVIEW and Im working on my first application. One of my challenges I have problems is to know how to avoid specific values of some elements in a table.

    My application is to measure the distance between sensor and magnet, however the initial distance for each magnet sensor is different. I have converted the tension up to a distance using the Math node for each element and now need to correct these values by subtracting their initial value.

    The source is a table 1 d of DBL64 composed of 32 elements and each of these values must have a different value subtracted.

    for example:

    Element 1 - 5.557

    element 2 - 2.34

    3-7 654 element and so on

    I tried to separate them (index table) and subtract the values of each item and then combine them again. This was not effetive. I need to write these values in a .txt file and also to use them in another calculation.

    I have attached my attempted under VI.

    Any advice would really be apprecieated.

    You don't need to look it. There is a very simple method. Generate a table that contains all your desired offsets.  Then he subtract off the coast.

    This is the VI even with this change:

  • How to add the default value for the "Full - Text Search" box

    Hi all

    I am looking for the ability to add a default value for the "Full text search" box in the search form.

    Example:

    When the user accesses the search page it get default values for some fields (defined in the rule as default values) such as

    xField1 = txt1 and xFiel2 = txt2.

    and Furthermore we need full-text = Hello world.

    Is this possible?

    Another way that we use is to open the search by URL with coreContentOnly = 1 as a form:

    http:// < Server >/cs/idcplg? IdcService = GET_DOC_PAGE & to Action = GetTemplatePage & to Page = STANDARD_QUERY_PAGE & coreContentOnly = 1 & to xField1 = txt1 & to xFiel2 = txt2

    It is possible to add full-text criteria here? Somethig like: & text = Hello World

    Thank you

    Leon

    It is not possible in a very obvious way, not to mention that it is a rather strange request.  I can't really imagine a realistic use for this case.

    Anyway, without a messy customization, you should provide a default query with an FTX inside element text setting (i.e. "IdcService = GET_DOC_PAGE & Action = GetTemplatePage & Page = STANDARD_QUERY_PAGE & QueryText =Hello World" "")

    To do this in a profile in the secondary effects of the profile section, add the following:

    <$dpPromote("QueryText",>Hello everyone") $>.

  • 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

  • Potential problems for tables without primary keys and unique keys

    GoldenGate 11.2.1.0.3/Solaris 10
    DB: Oracle for Oracle (Source and target is 11.2.0.3)
    Topology: unidirectional


    In our one-way configuration GG, little of the tables being replicated is not a primary key or a Unique key.

    Last week when we have implemented GG for the test, we received warnings for these table below.
    GGSCI > add trandata WMHS_UD.crtn_dtl
    
    2013-01-12 11:34:33  WARNING OGG-00869  No unique key is defined for table 'CRTN_DTL'. All viable columns will be used to represent the key, but may not guarantee uniqueness.  KEYCOLS may be used to define the key.
    
    Logging of supplemental redo data enabled for table WMHS_UD.crtn_dtl.
    Replication seems to work very well for these tables.

    Googling, I think that there may be performance degradation when you replicate tables without PK or the United Kingdom.

    But are there other potential problems such as data of a certain kind not replicated to the lack of PK/UK?

    It really depends on the data.

    By default, GG is combining all columns as a virtual primary key but don't no conflict control by default. So when you can be sure that the record you insert into the table is unique, then it will work.
    BUT as soon as you insert the same record, which is already inserted, then you will encounter problems.

    Let me show what happens when you use an initial charge because it makes it easier to describe:
    We start at 10:00 the capture for a table. Now, you insert a record at 10:00 in the tables. When you now start an initial charge to 10.02, then check you have inserted in the database to 10.01 will be repeated two times. During the IPL as the initial charge is made to 10.02 and it includes data of 10.01 AND it will be replicated again through the process of capture/replicate.

  • How to assign values to the nested table and passes as a parameter for the procedure?

    How to assign values to the nested table and passes as a parameter for the procedure?

    Here are the object and its type

    create or replace type test_object1 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type1 is table of the test_object1;


    create or replace type test_object2 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type2 is table of the test_object2;


    GRANT ALL ON test_object1 to PUBLIC;


    GRANT ALL ON test_type1 to PUBLIC;


    GRANT ALL ON test_object2 to PUBLIC;


    GRANT ALL ON test_type2 to PUBLIC;

    Here is the table object type:

    create the table test_object_tpe
    (
    sl_num NUMBER,
    Description VARCHAR2 (100),
    main_val1 test_type1,
    main_val2 test_type2
    )


    NESTED TABLE main_val1 STORE AS tot1
    NESTED TABLE main_val2 STORE AS earlier2;


    -----------------------------------------------------------------------------------------------------------

    Here is the procedure that inserts values into the nested table:

    PROCEDURE INSERT_TEST_DATA (sl_num in NUMBER,
    Description in VARCHAR2,
    p_main_val1 IN test_type1,
    p_main_val2 IN test_type2
    )
    IS
    BEGIN

    FOR rec in p_main_val1.first... p_main_val1. Last
    LOOP

    INSERT INTO xxdl.test_object_tpe
    (
    sl_num,
    Description,
    main_val1,
    main_val2
    )
    VALUES
    (
    sl_num
    description
    test_type1 (test_object1)
    p_main_val1 .val1 (CRE),
    p_main_val1 .val2 (CRE),
    p_main_val1 .val3 (rec)
    )
    )
    test_type2 (test_object2 (p_main_val2 .val1 (CRE),
    p_main_val2 .val2 (CRE),
    p_main_val2 .val3 (rec)
    )
    )

    );

    END LOOP;

    commit;

    END INSERT_TEST_DATA;

    -------------------------------------------------------------------------------------------

    Here are the block anonymoys what values attributed to the object type and pass values in the procedure:

    Set serveroutput on;

    declare

    p_sl_num NUMBER: = 1001;
    p_description VARCHAR2 (50): = 'Test Val1;

    inval1 test_type1: = test_type1();
    inval2 test_type2: = test_type2();

    Start


    inval1 (1) .val1: = "testx1";
    inval1 (1) .val2: = "testx2";
    inval1 (1) .val3: = "testx3";

    inval2 (1) .val1: = "testy1";
    inval2 (1) .val2: = "testy2";
    inval2 (1) .val3: = "testy3";

    CSI_PKG. INSERT_TEST_DATA (sl_num = > p_sl_num,)
    Description = > p_description,
    p_main_val1 = > inval1,
    p_main_val2 = > inval2
    );

    end;
    /
    Someone can correct me.

    Thank you
    Lavan

    Thanks for posting the DOF and the sample code but whenever you post provide your Oracle version 4-digit (result of SELECT * FROM V$ VERSION).
    >
    How to assign values to the nested table and passes as a parameter for the procedure?
    >
    Well you do almost everything bad that could be hurt.

    Here is the code that works to insert data into your table (the procedure is not even necessary).

    declare
    p_sl_num NUMBER := 1001;
    p_description VARCHAR2(50) := 'Testing Val1';
    inval1 test_type1 := test_type1();
    inval2 test_type2 := test_type2();
    begin
    inval1.extend();
    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    inval2.extend();
    inval2(1) := test_object2('testy1', 'testy2', 'testy3');
    
    INSERT INTO test_object_tpe
    (
    sl_num,
    description,
    main_val1,
    main_val2
    )
    VALUES
    (p_sl_num, p_description, inval1, inval2);
    commit;
    end;
    /
    

    See example 5-15 making reference to an element of nested Table Chapter 5 using PL/SQL collections and records in the PL/SQL doc
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/Collections.htm#CJABEBEA

    1. you don't even have the procedure because it is a simple INSERTION in the table you can do directly (see my above code)

    inval1(1).val1 := 'testx1';
    

    Since you have not yet created all the elements, there is no element 1 "inval1". You need EXTEND the collection to add an element

    inval1.extend();
    

    And then, there is an empty element, but "inval1" is a container for objects of type 'test_object1' not for scalars as "val1", "val2", and "val3".
    If you can not do

    inval1(1).val1 := 'testx1';
    

    You must create an instance of 'test_object1 '.

    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    

    And so on for the other collection

    You don't need the procedure (as my code example shows), but once you fill in the variables correctly it will work.

  • How to get all minimum values for a table of valuable documents?

    I need to get the list of records of the minimum value for a table that has the structure and the data below
    create table emp (name varchar2(50),org varchar2(50),desig varchar2(50),salary number(10),year number(10));
    
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',3000,2005);
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',4000,2007);
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',7000,2007);
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',7000,2008);
    insert into emp (name,org,desig,salary,year) values ('emp1','org1','mgr',7000,2010);
    commit;
    
    
    SELECT e.name,e.org,e.desig,min(e.year) FROM emp e,(
    SELECT e1.name,e1.org,e1.desig,e1.salary FROM emp e1
    GROUP BY (e1.name,e1.org,e1.desig,e1.salary)
    HAVING COUNT(*) >1) min_query
    WHERE min_query.name = e.name AND min_query.org = e.org AND min_query.desig =e.desig
    AND min_query.salary = e.salary
    group by (e.name,e.org,e.desig);
    With the above query, I can get the year less value where the EMP has maximum salary. It returns a single record. But I want all the records that are minimal compared to the value of the year max

    Power required
    emp1     org1     mgr     7000     2008
    emp1     org1     mgr     7000     2007
    Please help me with this...

    Hello

    Aggregate functions reduce the result set with one row per group.
    Almost all of the aggregate functions are homologous analytics that can give the same results without restricting the result set. Since you want the output to contain several lines per group, then the analytic functions are probably better for you.

    Here's one way:

    WITH      got_analytics     AS
    (
         SELECT     name, org, desig, salary, year
         ,     MAX (salary)  OVER ( PARTITION BY  name, org, desig)          AS max_salARY
         ,     ROW_NUMBER () OVER ( PARTITION BY  name, org, desig, salary
                                    ORDER BY        year  DESC
                           )                              AS year_num
         FROM    emp
    )
    SELECT     name, org, desig, salary, year
    FROM     got_analytics
    WHERE     salary          = max_salary
    AND     year_num     > 1
    ;
    

Maybe you are looking for