Request to remove row where the value of column contains alphabets

Hello

Could someone please help me to get this application working.

Request to remove row where the value of column contains alphabets.

DELETE FROM BIN_ITEM WHERE order_nmb LIKE '% [A - Z] % ' | LIKE '% [a - z] %'

Thank you and best regards,

Madam.

SELECT order_nmb FROM BIN_ITEM WHERE regexp_count(order_nmb,'[0-9]') = 0

----

Ramin Hashimzade

Tags: Database

Similar Questions

  • Returns all duplicate rows, where the columns correspond

    Dear members,

    I have a table that contains duplicates, and the query should return only the rows where the columns correspond...

    create master table (varchar2 (10) firstname, lastname varchar2 (10), code VARCHAR2 (3), place varchar2 (10));

    insert into Master values ('bob', 'John', '1', 'atlanta');
    insert into Master values ('bob', 'John', '1', 'atlanta');
    insert into Master values ('bob', 'John', '1', 'atlanta');

    insert into Master values ('test', 'John', '1', 'atlanta');

    Insert into master values('bob','john','1','bank');


    The application should we 3 rows.

    Bob-john-1-atlanta
    Bob-john-1-atlanta
    Bob-john-1-atlanta


    I tried a few changes to query such as select * from master M, mater n where m.firstname = n.firstname and...

    Is there another way to do this...

    Thanks in advance...
    select  firstname,
            lastname,
            code,
            place
      from  (
             select  m.*,
                     count(*) over(partition by firstname,lastname,code,place) cnt
               from  master m
            )
      where cnt > 1
      order by firstname,
               lastname,
               code,
               place
    /
    
    FIRSTNAME  LASTNAME   COD PLACE
    ---------- ---------- --- ----------
    bob        john       1   atlanta
    bob        john       1   atlanta
    bob        john       1   atlanta
    
    SQL> 
    

    SY.

  • Sales order form, line status code is displayed as "WITHDRAWN". but the same code appears as "AWAITING_SHIPPING" for the same line in the database. can you please explain, where the value in frontend comes? It differs from the flow_status_code in oe_or

    Sales order form, line status code is displayed as "WITHDRAWN". but the same code appears as "AWAITING_SHIPPING" for the same line in the database.

    Where the value in the frontend is filling?

    It differs from the flow_status_code in oe_order_lines_all?

    Thanks for the correction.

    He slipped right out of my mind!

    Here is a detailed explanation of this case:

    Status of orders picked and picked partial

    Kind regards

    Bashar

  • Error creating a salary. ORA-01422: exact fetch returns more than the requested number of rows in the hr_maintain_proposal_swi procedure insert_salary_proposal package

    Hi all

    We try to add new proposal for a salary of some employees from form August 1, 2015 (the Date of the beginning of employee)

    There is no existing salary proposal doesn't exist for these employees.

    We get below error.


    ORA-01422: exact fetch returns more than the requested number of rows in the hr_maintain_proposal_swi procedure insert_salary_proposal package


    Help, please.

    Thank you

    Tarun

    Hi John,.

    If it helps, take a look at the following note:

    ORA-01422 exact Fetch returns more than number of lines requested in Hr_maintain_proposal_swi (Doc ID 1673527.1)

    Kind regards

    Rajen

  • change the color of line based on the value of column 5 Apex in the classic report

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Hello

    I know this question has been asked several times here, but I'm working on 5 Apex and need to know the correct way to do it in this version.

    I need to change the color of the text of the entire line (no background color) based on the value in one of the columns of the classic report. I have just two conditions, if the value of column = Yes, color should be red, otherwise it must be green.

    I am new to jscript and css, so appreciate if someone can tell me the solution with steps.

    I have already checked this link that changes the value of the column, need to do something similar to the whole line.

    https://tylermuth.WordPress.com/2007/12/01/conditional-column-formatting-in-apex/

    Hi coolmaddy007-Oracle,.

    Here's an example set up on the apex.oracle.com according to the specifications you gave: https://apex.oracle.com/pls/apex/f?p=35467:1

    Version of the apex 5.0.0.00.31

    Standard universal theme

    Page theme default template

    Classic report

    Foldable report template

    Here is how it is done:

    Create a dynamic action with the following specifications:

    Name: Give the appropriate name

    Event: After refresh

    Selection type: region

    Region: select your region classic report

    Condition: No strings attached

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $('td[headers="JOB"]').each(function() {
      if ( $(this).text() === 'MANAGER' ) {
        $(this).closest('tr').find('td').css({"color":"red"});
      }
      if ( $(this).text() === 'SALESMAN' ) {
        $(this).closest('tr').find('td').css({"color":"green"});
      }
      if ( $(this).text() === 'CLERK' ) {
        $(this).closest('tr').find('td').css({"color":"blue"});
      }
    });
    

    NOTE: Download the selector appropriate for your knowledge $('td[headers="JOB"]') case using firebug/browser development tools.

    Items concerned: leave blank.

    PS: Changed the example to change the color of text instead of the background color.

    I hope this helps!

    Kind regards

    Kiran

  • Number of days where the value > a certain amount

    Hello

    I have a table named named MSR_3423:

    Capture.JPG

    I want to count the number of days where the VALID_VALUE is > to 0.001

    I made this request, but it gives me that result a count of every time that this value has been found in a day:

    select trunc(valid_date), count(*) from MSR_3423 
    where raw_value > 0.001
    and   VALID_DATE IS NOT NULL
    group by trunc(VALID_DATE)
    order by 1
    

    It gives me this result:

    Capture.JPG

    But I want the number of days when this value has been reached. In this example, the result should be: 5 (for 5 days)

    I think there must be a dower to do, but I'm not experienced enough to achieve this goal. Could you help her?

    Thank you.

    You almost have it. Just put another county around your account.

    select count(*) from (
    
      select trunc(valid_date), count(*)
      from MSR_3423
      where raw_value > 0.001
      and  VALID_DATE IS NOT NULL
      group by trunc(VALID_DATE)
    );
    

    or shorter but sometimes confusing

    
      select count(count(*))
      from MSR_3423
      where raw_value > 0.001
      and  VALID_DATE IS NOT NULL
      group by trunc(VALID_DATE) ;
    

    Logic of Alvertos did the same thing. He's just using SEPARATE instead of GROUP BY. But since I do not SEPARATE, I wanted to show a different way.

  • Dialogue boxes not hide all fields, not just those where the value is passed to true

    I hope someone can help me do what I want to happen, to occur if certain boxes are checked in the dialog box

    for now I see on the impression that the checkbox activates the value from false to true, but the OK button is also non-masquage console all my fields, not just those where he transformed the true value. What I'm missing here

    Create a dialog box for the staff to indicate how many of the account owners are in the branch so that the names of show in the signature section
    var Signors =
    {

    result: "Cancel."
    DoDialog: function() {return app.execDialog (this);};
    bChk2:false,
    bChk3:false,
    bChk4:false,
    bChk5:false,
    initialize: function (dialog)
    {
    var dlgInit =
    {
    "Chk2": this.bChk2.
    'Chk3': this.bChk3,
    'Chk4': this.bChk4,
    };
    Dialog.Load (dlgInit);
    },
    commit: function (dialog)
    {
    var oRslt = dialog.store ();
    this.bChk2 = oRslt ["Chk2"];
    this.bChk3 = oRslt ["Chk3"];
    this.bChk4 = oRslt ["Chk4"];
    },
    Description:
    {
    name: "Signors."
    elements:
    [
    {
    type: "display."
    elements:
    [
    {
    type: "display."
    char_height: 10,.
    elements:
    [
    {
    type: 'static_text. "
    item_id: "stat."
    name: "who is there to sign,:
    char_width: 15,.
    alignment: "align_fill",.
    Police: 'dialogue ',.
    },
    {
    type: "display."
    char_width: 8.
    char_height: 8.
    align_children: "align_top."
    elements:
    [
    {
    type: "display."
    char_width: 8.
    char_height: 8.
    elements:
    [
    {
    type: 'check_box. "
    item_id: "Chk2."
    name: "first to file."
    },
    {
    type: 'check_box. "
    item_id: "Chk3."
    name: "Team 1"
    },
    {
    type: 'check_box. "
    item_id: "Chk4."
    name: 'team 2 ',.
    },
    ]
    },

    ]
    },
    ]
    },
    {
    type: "ok_cancel."
    },
    ]
    },
    ]
    }
    };

    made the change of value when checked - allows you to check
    Signors.bChk2 = false;
    Signors.bChk3 = false;
    Signors.bChk4 = false;
    If ("ok" == Signors.DoDialog ())
    {
    If (Signors.bChk2 = true)
    getField("Signor1").hidden = false;
    getField("Staff1").hidden = false;
    getField("Date1").hidden = false;
    getField("Date2").hidden = false;

    If (Signors.bChk3 = true)
    getField("Signor2").hidden = false;
    getField("Staff2").hidden = false;
    getField("Date3").hidden = false;
    getField("Date4").hidden = false;

    If (Signors.bChk4 = true)
    getField("Signor3").hidden = false;
    getField("Staff3").hidden = false;
    getField("Date5").hidden = false;
    getField("Date6").hidden = false;

    Console.println ("Chk2:" + Signors.bChk2);
    Console.println ("Chk3:" + Signors.bChk3);
    Console.println ("Chk4:" + Signors.bChk4);
    Console.println ("Chk5:" + Signors.bChk5);
    console.println if shows bChk... is true or false
    }
    Console.println ("Chk2:" + Signors.bChk2);
    Console.println ("Chk3:" + Signors.bChk3);
    Console.println ("Chk4:" + Signors.bChk4);
    Console.println ("Chk5:" + Signors.bChk5);
    }

    Yes, confirmed values have changed, now show fields based on staff

    principal applicant has been selected


    doWhatIWant: {function (results)}
    If (results [Signors.bChk2] = true)
    getField("Signor1").hidden = false;
    getField("Staff1").hidden = false;
    getField("Date1").hidden = false;
    getField("Date2").hidden = false;

    1 associate has been checked
    If (results [Signors.bChk3] = true)
    getField("Signor2").hidden = false;
    getField("Staff2").hidden = false;
    getField("Date3").hidden = false;
    getField("Date4").hidden = false;

    Associate 2 has been selected
    If (Signors.bChk4 = true)
    getField("Signor3").hidden = false;

    If (Signors.bChk4 = true)
    . Hidden ("surete3") = false;

    If (Signors.bChk4 = true)
    . Hidden ('date.5") = false;

    If (Signors.bChk4 = true)
    . Hidden ('Date6") = false;

    I had to just add a hug to bChk3 database and it worked perfectly. Thank you very much!

  • Add / remove rows from the Table

    Hello

    I'm really new to LiveCycle ES 8.2 (= non-existent knowledge of JavaScript) and has difficulties to create a table that can add / remove lines.

    I found a model that has the feature I need, but am unable to reproduce the table. (Ref. "Fax Cover Sheet_SW.pdf' http://forums.adobe.com/message/2561553#2561553)

    Even when I create a new blank form, and then copy / paste the table (subforms: 'detailHeader' + "detal") in the new, blank forms, the table stops working. The buttons are more clickable in the LiveCycle 'Preview PDF'

    In the new, blank forms, the 'Paging' and 'Binding' tabs have some or all of their features grayed out.

    I tried the following:

    1. Save the form as an "Adobe Dynamic form XML (pdf)"
    2. Make sure all of the 'content' subform fields were set to "Position" instead of "Flowed".

    What am I missing, like all JavaScript copied on, but for some reason any does not work.

    4 things you need to correct your form...

    (1) Page1 subform needs tobe Flowed the value.

    (2) then the link to the Subform1 tab will be active. You must check the box "subform to repeat for each item of data.

    (3) in the Add button to Subform1 you missed 'instanceManager' in the code...

    Subform1.instanceManager.addInstance (1);

    (4) in the same way in the button Delete

    Subform1. instanceManager. removeInstance (this.parent.index);

    Thank you

    Srini

  • I need to know where the value Associates

    I am doing a paper for school, I have bee using Microsoft Word, now it tells me that I must go to define Associates and choose one

    place to post my work. Help!  I've never heard of this and I can't find the value Associates.
    Thank you

    Hello

    you bought Word which is part of the Office?

    It does not free

    link below is how to set file associations in Vista

    http://www.TechRepublic.com/article/How-do-i-change-file-extension-associations-in-Windows-Vista/6172036

    Please repost in the forum of Word for Word questions

    http://answers.Microsoft.com/en-us/Office/Forum/Word

  • How to extract string in JSON data where the value in a table

    Hello

    Structure of JSON string

    {'name': 'John', 'name': 'kumar', 'address': [{'Address1': 'value', 'place': 'value'}, {'address2': 'value', 'place': 'value'}]}

     


    How to extract the value of the address of the list.

    If you have control over the format of data, it is best to rename address1 and address2 to have the same name, for example "address". Then, it can be analyzed that way (I've also simplified other code a bit):

    JsonDataAccess jda;
    QVariant v = jda.loadFromBuffer(jsonString);
    QVariantMap m = v.toMap();
    QString name = m["name"].toString();
    QString surname = m["surname"].toString();
    QVariantList addresses = m["address"].toList();
    foreach (QVariant addr, addresses)
    {  QVariantMap addrMap = addr.toMap();
      QString addressValue = addrMap["address"].toString();
      QString place = addrMap["place"].toString();
    }
    
  • Returns the value of column line

    Greetings!  I currently have a request we will tell

    SELECT value, period FROM MAS_CFUS_KEYACM_CONTROLDATA ORDER BY cf_keyword_ID

    RESULTS

    Period value

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

    100.0002 1 JANUARY 14

    -35.68 1 DECEMBER 14

    -1943.67 NOVEMBER 1, 14

    678.0013 OCTOBER 1, 14

    This continues for about 15 results by cf_keyword_ID.

    I'm looking to return the VALUE first in a new column called PREV1, the second value of PREV2, third in PREV3 and so on.  The same goes for the dates.  And all this for only the first 10 values of each cf_keyword_ID.  Can anyone suggest the best way to achieve this?

    Thank you!!

    Hello

    This is called pivoting.  Because I don't have a copy of your table test, I'll use scott.emp to illustrate.

    This shows the first 3 employees for each job, in order by hiredate, along with their hiredates:

    WITH relevant_data AS

    (

    SELECT ename, job, hiredate

    row_number () taken OVER (PARTITION OF work

    ORDER BY hiredate

    ) AS r_num

    FROM scott.emp

    )

    SELECT *.

    OF relevant_data

    PIVOT (MIN (ename) AS ename

    MIN (hiredate) AS hiredate

    FOR r_num (1, 2, 3)

    )

    ORDER BY job

    ;

    Output:

    WORK 1_ENAME 1_HIREDATE 2_ENAME 2_HIREDATE 3_ENAME 3_HIREDATE

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

    ANALYST FORD 3 December 1981 SCOTT April 19, 1987

    The CLERK SMITH December 17, 1980, 3 December 1981 JAMES MILLER January 23, 1982

    MANAGER JONES 2 April 1981 BLAKE 1 May 1981 CLARK June 9, 1981

    PRESIDENT KING November 17, 1981

    SELLER ALLEN 20 February 1981 WARD 22 February 1981 TURNER 08-Sep-1981

    There are actually more than 3 SECRETARIES and SALESMEN.  Which does not cause an error; the only first 3 are shown.

    As you can see, having less of 3 does not cause any errors, either.

    For more info on pivots, see the FAQ of the Forum:

    Re: 4. How can I convert rows to columns?

    I hope that answers your question.

    If this isn't the case, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.

    Explain, using specific examples, how you get these results from these data.

    If yod post rather a problem using scott.emp, then you need not display the sample data; just results and explanations.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum:

    Re: 2. How can I ask a question in the forums?

  • Problems with slot-shaped table and set the values of column

    Hello

    I have a problem with a tabular presentation.

    I have two tables

    P_detail and table v_master

    columns of v_master:
    v_id
    v_Name
    v_info

    columns of p_detail:
    P_ID
    p_master_fk
    p_name
    p_info

    I want to have a tabular presentation where I can store permanent data retail values. That's why I want to keep the default main column join the detail columns.
    In SQL, I can do this with an outer join:

    SELECT m.v_name, d.p_master_fk, d.p_name, d.p_info
    OF v_master, p_detail
    WHERE v_id = p_master_fk (+)

    I get the lines that exist for the master data and can add values for the columns of detail. I removed the "add lines" because that makes no sense, because the amount lines are already offered at the opening of the tabular presentation.

    Now, I want to get/save the v_id (main table) in the p_master_fk column value

    How can I do this?

    Thank you and best regards,
    Matthias

    Hello

    One approach is to use a database instead trigger. If you define a database view using the query:

    SELECT m.v_id, m.v_name, d.p_id, d.p_master_fk, d.p_name, d.p_info
    OF v_master m, p_detail d
    WHERE v_id = p_master_fk (+)

    Then, create a trigger on the view that will insert in the detail table if d.p_id is null and update the secondary table if d.p_id is not null instead.

    The Apex tabular form is then based on the view (with identifiers like hidden columns) and all treatments multirow Apex should work without modification.

    Rod West

  • How to access the values in column fron a report (region)

    Hello

    In the region of report footer section, I want to access the value of a column (e.g. name col = COL01) for first place. I know that I can access total number of rows using #TOTAL_ROWS #. Is it possible to do this?

    Thanks in advance,
    Paresh

    Hello

    I did not have a v2 to try this out, but try this:

    1. in your report, add the following in the header of the region:

    <div id="TheReport">
    

    2 - in the foot of the region:

    </div>
    <script type="text/javascript">
    var t = document.getElementById("TheReport");
    var r = t.getElementsByTagName("TABLE")[1];
    var rows = r.rows;
    var tds = rows[0].cells;
    var k;
    if (tds)
    {
     for (k = 0; k < tds.length; k++)
     {
      if (tds[k].id == 'ENAME')
      {
        alert(rows[1].cells[k].innerHTML);
      }
     }
    }
    </script>
    

    Remove your old javascript code and replace line alert() with all you need to do with the value of .cells [k] .innerHTML lines [1].

    This includes in your report in a div tag The JavaScript find it and gets the second table (the table report is a table of the area which is now within the DIV tag). As older versions of the Summit has not used the attribute "headers" on cells, we check the ID values for the column headings in row [0] - once we found the right column, we retrieve the corresponding value according to the data in row of lines [1].

    Andy

  • Coverting a line in the values in columns

    Hi friends Expert SQL,

    I have a line that contains 6 columns where I want the data to appear in the form of columns, as shown here:

    From:

    Select item1, item2, item3, amt1, amt2, amt3 in item_table, when sno = 1; <-returns 1 row as below

    ITEM1 ITEM2 ITEM3 AMT1 AMT2 AMT3
    ---------- ------------ ------------- ----------- ------------ ----------
    AAA BBB CCC 10,00 20,00 15,00


    Explanation of data: item1 (AAA) price is amt1 (10.00), item2 (BBB) price is amt2 (20 h 00) and item3 (CCC) price is amt3 (15.00). Ok.

    Now I want that data to be converted to columns, as shown here:

    TO:

    AMT ELEMENTS
    --------- ---------
    AAA 10.00
    BBB 20.00
    CCC 30.00


    Please help me guys, I want a SQL to display these data.

    I found a single query that converts a row of columns, but this is not my requirement: [for your reference only]

    SQL > select substr (the_string
    , decode (level, 1, 1, instr(the_string,',',1,level-1) + 1)
    , decode (instr(the_string,',',1,level), 0, length (the_string), instr(the_string,',',1,level) - decode (level, 1, 0, instr(the_string,',',1,level-1))-1)
    ) the_value
    from (select (select item1 |)) «, » || Item2. «, » || Item3 item_table where sno = 1) ELEMENTS
    the double)
    connect by level < = length (the_string) - length (replace(the_string,',')) + 1


    Thank you and best regards,
    Kiran
    WITH pivot_data
         AS (SELECT 'AAA' ITEM1,
                    'BBB' ITEM2,
                    'CCC' ITEM3,
                    '10.0' AMT1,
                    '20.0' AMT2,
                    '15.00' AMT3
               FROM DUAL)
    SELECT t1.items, t.amount
      FROM (SELECT NULL items, amount, ROWNUM rn
              FROM pivot_data UNPIVOT INCLUDE NULLS (amount
                              FOR items
                              IN (AMT1, AMT2, AMT3) )) t,
           (SELECT items, NULL amount, ROWNUM rn
              FROM pivot_data UNPIVOT INCLUDE NULLS (items
                              FOR amount
                              IN (ITEM1, ITEM2, ITEM3))) t1
     WHERE t.rn = t1.rn
    
    ITEMS     AMOUNT
    AAA     10.0
    BBB     20.0
    CCC     15.00
    
  • Change the value of column select and insert different

    Hi all

    I've written a procedure where I am selecting values in other tables and inserting into a new table. The code is below
     
    If you see line 54 in the code, you will find the combined_bu_code is comes from a procedure and the value of BU is stored in prod. Table SEM_BACKLOG_LOG. I need to check, if the combined_bu_code came as PWR then insert as table BACKLOG_OTD_NEW POWER not as PWR.

    You are looking for assistance on this. Thanks in advance

    Concerning

    Published by: User_Apex on June 23, 2011 03:03

    Published by: User_Apex on June 23, 2011 03:53
    DECODE(SMTC_OTD_CHART.get_combined_bu_code(a.BU), 'PWR', 'POWER', SMTC_OTD_CHART.get_combined_bu_code(a.BU)) COMBINED_BU_CODE
    

    Kind regards
    Richard

    -----
    blog: http://blog.warp11.nl
    Twitter: @rhjmartens
    If you answer this question, please mark the thread as closed and give points where won...

Maybe you are looking for