delete rows from table

Hello

I'm trying to remove the lines that contain a multiple of the x-data in the original table and have the output array display the original array less table of harmonics of delete.

Original array:

3 100

18 200

13 300

8 400

500 0

600 0

700 0

Deletes rows that contain multiples of 300.  Output array will be

3 100

18 200

8 400

500 0

700 0

Any help will be really appreciated.

Thank you

hiNi.

This?

Tags: NI Software

Similar Questions

  • Request to delete rows for table fa_mass_additions

    Helloo

    I need help to remove rows from the table fa_mass_additions Oracle EBS of assets fixed r12

    Each line is characterized by a unique recnum. However, there are duplicate for the Serial_number entries. I need to remove all but 1.

    For example

    Recnum 60341 Serial_number 1110007600100

    Recnum 60342 Serial_number 1110007600100

    Recnum 60343 Serial_number 1110007600100

    Recnum 60344 Serial_number 1110007600200

    Recnum 60345 Serial_number 1110007600200

    Recnum 60346 Serial_number 1110007600300

    Recnum 60347 Serial_number 1110007600300

    Note-see duplicates for serial numbers

    After the removal of table should be

    Recnum 60341 Serial_number 1110007600100

    Recnum 60344 Serial_number 1110007600200

    Recnum 60346 Serial_number 1110007600300

    Any query sql or pl/sql will be greatly appreciated

    Thank you

    A backup point might be something to consider, but that would be your business decision.

    An alternative workaround that might be used would be to go ahead and after some lines in the meantime, but it is accepted that this should not be an obligation, and the system should operate in a consistent way.

    Can I deduce that the number is not filled, that this value cannot reproduce? If these lines have a tag number, I think that you can check in the version of FATagNumberValidator.class (run a check of the Apps for assets and check for this version of the file). If the instance is not already have version 120.0.12010000.2, your site can be helped in this scenario, the application of Patch 18800958 - ADI WEB: NO DUPLICATE tag ERROR IN SPREADSHEET NUMBERS. There is more explanation of this issue of tag number in the Doc ID 1944256.1.

    In raising this question if, you made me realize that we cannot have similar validation for the serial number, or at least we do not have a named validator in a similar way. I have to do further research on this aspect, but if this is the case, I think that the best I could do would be to log an improvement to that request it.

  • delete rows from two tables

    Hello

    My main table is:

    create table CvProperties(
    cv_id number(14) primary key,
    user_id number(14) constraint Cv_fk1 references users(user_id),
    cat_id number(14) constraint Cv_fk2 references CvCategories(cat_id),
    employerOrAgent_id number(14) constraint Cv_fk3 references employerOrAgent(employerOrAgent_id),
    staff_id number(14) constraint Cv_fk4 references staff(staff_id),
    cvDate timestamp(0) default sysdate,
    cvName varchar2(230),
    status number(3),
    prev_cvId number(14),
    isEdited number(2),
    cvSource number(2) /**website, employer, agent, staff**/
    );
    

    Detail table is:

    create table cvDetails(
    cd_id number(14) primary key,
    cv_id number(14) constraint education_fk references CvProperties(cv_id),
    nationality varchar2(230),
    objectives varchar2(3900),
    name varchar2(230),
    fatherName varchar2(230),
    motherName varchar2(230),
    dob varchar2(230).
    gender varchar2(230),
    mStatus varchar2(230),
    passportNo varchar2(110),
    email varchar2(230),
    phone varchar2(45),
    mobile varchar2(25),
    address varchar2(2500),
    state varchar2(230),
    zipCode varchar2(230),
    city varchar2(230),
    education clob,
    experience clob,
    skills clob,
    languages varchar2(1400),
    hobbies varchar2(3200),
    achievements varchar2(3900),
    references varchar2(3900));
    

    I'm trying to delete the cvs that have no email + mobile + phone:

    select COUNT(*) from cvDetails where email is NULL AND mobile IS NULL AND phone IS NULL;
    

    This query shows 4814 CVs.

    How can I run that check if the e-mail, phone mobile, is null then remove cv of the two tables in query?

    Please notify

    https://www.Google.com/webhp?hl=en&tab=WW#hl=en&q=Oracle+on+delete+cascade

  • Delete rows from a table in expansion

    Hello

    I have a table in expansion that allows users to click on a button '+' of the line to add as many lines.  The table contains mandatory fields.  There is an option button in another part of the form if the value 'No', the whole of the section containing the table is hidden.  I need to remove extra lines, that the user may have added to the table before selecting that 'No' answers, leaving only the first three ranks (title 2 rows and the first line of data).  If the table had six names (total 8 rows) so I want to remove 7 rows. I have remove the value from the first row separately.  I tried something like that, but I couldn't make it work; I'm not a very experienced scripter.  Thank you.


    for (var oLen = Table1.nodes.length; oLen > 3; t ++) {}

    Table1.parent.parent.instanceManager.removeInstance (oLen);

    }



    Hello

    There is a mistake in your statement.

    You start the last instance of the line and you want to remove all the lines from the last to the 3rd row...

    You must change your value when you remove 1 row, but instead to change the value of oLen you change the variable "t".

    Also if you are a beginner as a last resort, and down to the third row, you can decrease the index you use rather than increase it.

    So you're code need some minor changes, and it should look like this:

    for (var Table1.parent.parent.instanceManager.count - 1; oLen = oLen > 3; oLen-) {}

    Table1.parent.parent.instanceManager.removeInstance (oLen);

    }

    I hope this helps!

  • Delete rows from the table

    Hello

    10G

    A custom table is to have 5000 documents, I need to have everything 100 records in the table and delete the rest of them.
    could you suggest...

    Thank you
    Tim
    delete table_name where rowid not in (select rowid from table_name where rownum <101);
    
  • deleting values from table using splice... back 2 skool 4 me.

    NSN

    I have a dim multi table that contains several values grouped.

    say [] table [1] has 4 different values.

    I tried to remove 1 set of values of this by using the function of the weld.

    1st thing I noticed is that the using array.length does not work because he gets dynamic altered after every junction. He would remove while half of the lines.

    No worries... the value .length moved a var before the loop. and hop...

    or... not really

    Now he always leaves 1 row behind in the table because the table index ends at beeing 1 (finally left and my loop counter is greater than.)

    So... I added a loopctr = 0 at the end of each splice for it will re-start the loop to the beginning of the table.

    Still does not work...

    Now, I get a runtime error on an object not existing... the value of something...

    Basically, my programming techniques are on dated apperently of... tweaking it until it works is to transform my spagetti code...

    Good food but a mess to clean up.

    So now... What I use is:

    make a temporary array, press in each row that is NOT what I wanted to delete.

    Zero of my table, and then copy the temp

    * My father just turned in his grave in disgust.

    Can someone tell me please the correct way to use splice? or any child model nesting list?

    Which is higher

    Mac

    You can use the Array.filter () method to do this:

    var myArray:Array = [];
    myArray.push([1, 1 , 0, 0, 1]);
    myArray.push([1, 1 , 0, 0, 1]);
    myArray.push([2, 1 , 1, 2, 1]);
    myArray.push([1, 1 , 0, 0, 1]);
    myArray.push([2, 1 , 0, 50, 1]);
    myArray.push([1, 1 , 0, 0, 1]);
    
    myArray = myArray.filter(arrayFilter);
    
    trace(myArray);
    
    function arrayFilter(element:Array, index:int, array:Array):Boolean {
        return element[0] != 2;
    }
    
  • Extract rows from table

    I have the structure of the table as shown below:

    col1 col2
    1 a
    1 b
    1 c
    3B
    4 a
    3 a
    1 b
    2 c

    Now I want to read all the lines where the value of col1 = '1' and once that the value of col2 corrosponding is identified, all the other values in col1 corrosponding should also be retrieved.

    can someone help me please to get there?

    Thanks in advance

    Just put a SEPARATE to my above query then

    SQL> with t as
      2  (
      3     select 1 col1,'a' col2 from dual
      4     union all
      5     select 1,'b' from dual
      6     union all
      7     select 1,'c' from dual
      8     union all
      9     select 3,'b' from dual
     10     union all
     11     select 4,'a' from dual
     12     union all
     13     select 3,'a' from dual
     14     union all
     15     select 1,'b' from dual
     16     union all
     17     select 2,'c' from dual
     18  )
     19  select distinct col1,col2
     20    from t
     21   where col2 in (select col2
     22               from t
     23              where col1 = 1)
     24  order by col2
     25  /
    
          COL1 C
    ---------- -
             1 a
             3 a
             4 a
             1 b
             3 b
             1 c
             2 c
    
    7 rows selected.
    
  • Delete items from table

    Hello

    Need help with this one

    Im a picture step by step construction (simulating the test data is stored in a table)

    Lets say I took 4 samples and im on place 4 in the table.

    Then I noticed that the last item I put in my table has an incorrect value and want to replace it with a new value in the same place.

    My goal is then to check the values in the table and replace when I need to.

    And it is important that the values before and after the removal of the elements is done only when you use the same table.

    Were says:

    And it is important that the values before and after the removal of the elements is done only when you use the same table.

    I have no idea what you mean by that last sentence, but maybe the following may give you some ideas.

  • ADF jsf: disabled property works on selecting rows from table but not rendered

    I use JDeveloper 12.1.2

    Page has 3 components:

    -table

    -button

    -text outputFormatted component

    When the user selects a certain line, button is enabled/disabled according to the logic of bean support. It works fine:

    < af:button text = "Go to the reports!" id = "b1" action = "#{backingBeanScope.Studybrowse.b1_action} '"

    Disabled = "#{! backingBeanScope.Studybrowse.userAuthStdNotExp} '"

    partialTriggers = "t1" / >

    However when I apply the same boolean rendered property of outputFormatted, it is not visible (not provided)

    < af:outputFormatted value = "you are not authorized or study expired" id = "1".

    rendered = "#{! backingBeanScope.Studybrowse.userAuthStdNotExp} '"

    inlineStyle = "color: Red;" partialTriggers = "t1" / >

    Someone knows why?

    I just read on another post that partial triggers cannot work on a component that is not rendered. Therefore, it is suggested to use the "visible" property If it worked:

    visible = "#{! backingBeanScope.Studybrowse.userAuthStdNotExp} '"

    inlineStyle = "color: Red;" partialTriggers = "t1" / >

    I'm sure that this rendered version worked in 10g, but

  • Roll back or validation based on the number of deleted rows

    Hello

    I have a procedure that deletes rows from the table dummy1. The requirement now is if the delete query deletes several lines then it must be restored to commit on the other.

    Note: the VALUE of the column in the table dummy1 isn't a primary column.

    CREATE OR REPLACE PROCEDURE P_DELETE_CHECK AS
    V_VALUE NUMBER;
    V_TABLE_NAME VARCHAR (100);
    BEGIN
    RUN IMMEDIATELY 'REMOVE'. V_TABLE_NAME | "WHERE THE VALUE OF ('|) V_VALUE |') ' ;
    END P_DELETE_CHECK;

    Can someone help me on this.

    Thank you
    Mahesh.

    try to use this code snippet after your immediate execution:

    if sql%rowcount > 1 then
       rollback;
    else
      commit;
    end if;
    

    Edited by: hartmutm the 29.09.2010 04:50

  • Delete rows in a table when the columns from two tables match

    Hello

    I have following two tables.

    ===========================================

    create the table empbooth as

    (

    Select 1 empid, 1 double cabin Union all the

    Select option 2, Union 1 double all the

    Select 3, Union 1 double all the

    Select option 4, Union 2 double all the

    Select option 5, 2 double

    );

    create the table attsht as

    (

    Select 1 empid, 240 reg, 0 unpaid all double union

    Select option 2, reg 200, 0 unpaid of all the double union

    Select 3, 240 reg, 0 unpaid all double them union

    Select 4 480 reg, 0 unpaid all double union

    Select 5 240 reg, unpaid double 0

    );

    =================================================

    I want to remove rows from attsht where corresponding booth (which is stored in the empbooth table) is 1.

    The condition is 'where attsht.empid = empbooth.empid and empbooth.booth = 1 '.

    I use oracle 10g.

    Help, please

    delete from attsht where a.empid in (select b.empid from empbooth b where b.booth = 1)

    or

    remove from attsht a

    where exists (select null

    of empbooth b

    where b.booth = 1

    and b.empid = a.empid)

  • How to capture what oracle object delete rows in the table?

    Hi all

    I have a table in which I am storing data deleted from the main table. I have a delete on the main table statements in the various packages, now I want to capture what sql statement what package is remove rows from the table. I created the trigger to insert data into the backup table. I'm using oracle 11g.

    Please help me...

    Thanks and greetings

    Vidyasagar.B

    You can use DBMS_UTILITY.FORMAT_CALL_STACK.
    
    SQL> create table t
      2  (
      3    no integer
      4  );
    
    Table created.
    
    SQL> create table t_log
      2  (
      3    str clob
      4  );
    
    Table created.
    
    SQL> create or replace trigger t_trig before insert on t
      2  begin
      3     insert into t_log(str) values (dbms_utility.format_call_stack);
      4  end;
      5  /
    
    Trigger created.
    
    SQL> create or replace procedure p
      2  as
      3  begin
      4    insert into t (no) values (1);
      5  end;
      6  /
    
    Procedure created.
    
    SQL> create or replace package pkg
      2  as
      3     procedure run;
      4  end;
      5  /
    
    Package created.
    
    SQL> create or replace package body pkg
      2  as
      3     procedure run
      4     is
      5     begin
      6       p;
      7     end;
      8  end;
      9  /
    
    Package body created.
    
    SQL> exec pkg.run
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from t_log;
    
    STR
    --------------------------------------------------------------------------------
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    3abbbc6d8         1  anonymous block
    3ad03bf88         2  KARTHICK.T_TRIG
    3a51a18a8         4  procedure KARTHICK.P
    3ac4f1508         6  package body KARTHICK.PKG
    3ac91c250         1  anonymous block
    
  • How to truncate 1000 rows from a table of 7000 lines?

    Hello

    Please give me a quick answer to truncate the 1000 rows from a table of 7000 lines... I don't want to truncate the entire table

    Thank you all for the valuable support,

    My activity is still ongoing... Somehow my client was not specific about what lines are deleted. It has no date column in the table to delete records by date...

    The table contains information about the error logs, so he wanted to keep a few lines and remove the rest... and then copy the table to another database.

    So right now using this query:

    SQL > delete (select * from ) where rownum<>;

    Once again thank you to all...

  • Cannot delete a row from a database

    I have problems using the Row.remove () method to remove a row from a database.

    Here is the logic to delete the line:

    ViewObject vo = am.findViewObject("RasPropertyView2");

    ViewCriteria vc = vo.createViewCriteria ();

    VCR ViewCriteriaRow = vc.createViewCriteriaRow ();

    vcr.setAttribute ("taxYear", key.getTaxYear ());

    vcr.setAttribute ("Late", key.getTaxId ());

    vcr.setAttribute ("propertyId", key.getPropertyId ());

    VC. Add (vcr);

    vo.applyViewCriteria (vc);

    vo.executeQuery ();

    String sql = vo.getQuery ();

    While (vo.hasNext ())

    {

    Line = vo.next ();

    Row.Remove ();

    vo.getApplicationModule () .getTransaction () .commit ();

    }

    Cleaning

    VC. Clear();

    vo.closeRowSet ();

    I use JDeveloper 12.1.3.0.  I set up a monitoring tool to capture all SQL which are subject to the root commands.  The tracking tool does not capture a DELETE command.  In addition, I see not all messages in the log that indicates a failure to delete the line.

    You should not engage each deletion of a single route it tests your iterator. Remove all Reid and do the validation thereafter.

    Do you have your debugging code and checked that you find a rite to remove?

    The original version is based on entity?

    Timo

  • Oracle 10g - problem with "DELETE from TABLE WHERE ID in (1,2,3)" (use cfqueryparam)

    Hello, everyone.

    I have problems with executing a DELETE statement on an Oracle 10 g server.

    DELETE 
    FROM tableA
    WHERE ID in (1,2,3)
    

    If there is only a single ID for the IN clause, it works.  But if more than one ID is provided, I get an error message "SQL command" not correctly completed.  Here's the query as CF:

    DELETE 
    FROM TRAINING
    WHERE userID = <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#trim(form.userID)#">
         AND TRAINING_ID in <cfqueryparam value="#form.trainingIDs#" cfsqltype="CF_SQL_INTEGER" list="yes">
    

    Someone at - it works with Oracle that can help me with this?  I'm a developer experienced in MS - SQL; Oracle is new to me.

    Thank you

    ^_^

    So much worse... a colleague just told me I should always use parentheses around the values in the IN clause.

Maybe you are looking for