How to write a query to return rows with the varchar column that contains even a single occurrence of the characters, such as Ÿ and

How to write a query to return rows with the varchar column that contains even a single occurrence of the characters, such as Ÿ and

I have a table whose columns with values such as

MINNEAŸPOLIS and ¿VV ¿A

Only the characters that are allowed in this column are alphabets, numbers, spaces, points and supports.

Please help to write a SQL SELECT with Regexp_like query or any other option.

Thanks to you all! Under query worked for me. Thank you Frank to explain the concept of hooks inside regexp_like.

SELECT * FROM testspecial, WHERE REGEXP_LIKE (sampletext, "[^] ^ A - Z ^ a - z ^ 0-9 ^ [^.]") ^ {^} ^]') ;

Tags: Database

Similar Questions

  • How to write a large amount of measurement with the function 'Write to the worksheet' results in an Excel file?

    I'm going to measure more than 100,000 SAMPL and I write in a document. I would use Excel to present much more easy, but the problem here is that excel can have only 60 000 samples. also use text file is not the desired one.

    you have a solution that helps me?

    Excel 2007 gives you 1 M lines. Can update you your version of Excel?

  • No idea how to write this query

    Hi, My Data is as below

    DocNum doc_date type of amount
    1154 15 November 11 232501.5 invoice
    200206 4 November 11 - 243672.64 credit memo
    Note flow 111 5 November 555.22 11

    Output must be

    DocNum doc_date amount Type AmountDR AmountCR
    1154 232501.5 15 November 11 Bill 232501.5
    Note credit 200206 4 November 11 - 243672.64 - 243672.64
    Note flow 111 5 November 555.22 11 555.22

    If the amount is > 0, then it must be displayed in the value of the amount to be AmountDR
    If amount < 0 then it must be displayed in the value of the sum amount CR



    Can help how to write this query
    with sample_table as (
                          select 1154 Docnum,date '2011-11-15' doc_date,232501.5 Amount,'Invoice' type from dual union all
                          select 200206,date '2011-11-04',-243672.64,'Credit Memo' from dual union all
                          select 111,date '2011-11-05',555.22,'Debit Memo' from dual
                         )
    select  Docnum,
            doc_date,
            Amount,
            type,
            case
              when Amount >= 0 then Amount
            end AmountDR,
            case
              when Amount < 0 then Amount
            end AmountCR
      from  sample_table
    /
    
        DOCNUM DOC_DATE      AMOUNT TYPE          AMOUNTDR   AMOUNTCR
    ---------- --------- ---------- ----------- ---------- ----------
          1154 15-NOV-11   232501.5 Invoice       232501.5
        200206 04-NOV-11 -243672.64 Credit Memo            -243672.64
           111 05-NOV-11     555.22 Debit Memo      555.22
    
    SQL> 
    

    SY.

  • How to write a query for the data exchange between two columns?

    How to write a query for the data exchange between two columns?

    I tried a request, does NOT work.
    update tmp t1 set t1.m1=t1.m2 and t1.m2=(select t2.m1 from tmp t2 where t2.student_id = t1.student_id)
    Thank you.

    Published by: user533361 on October 23, 2009 14:04

    Just plain and simple:

    update tmp t1
     set t1.m1=t1.m2,
         t1.m2=t1.m1
    /
    

    SY.

  • How to write a query in 10g

    Hi guys,.

    In 10g DB.

    I'm when extracting data value_column, the column having empids for most lines, but for some emailids lines.


    The data that I get like this: here, I associate myself with three tables. based on these data, I need to recover only emailids.

    VALUE_COLUMN

    2959345
    [email protected]
    6560043
    2392044
    [email protected]

    now, I want to get for all emailids only employees. so wherever empid is present, I need to get the email for this employee.

    Please can someone help me on this.

    Thanks in advance!

    Rgrds,
    -LRK

    Hello

    Whenever you have a problem, after a little bit database (CREATE TABLE and INSERT, only relevant columns instructions) samples and the results desired from these data.

    How do you know if value_column is an email address and empid or something else? I'm going to assume that any string containing the cahracter ' @' is an email address, and everything else is an empid.

    When value_column contains an empid, how do you have the email address? I'll assume you have another column that contains the email address in these cases.

    Here's a way to do it, given only value_column and other this column

    SELECT     CASE
             WHEN  INSTR (value_column, '@') != 0
             THEN  value_column
             ELSE  some_other_column
         END     AS email
    FROM     table_x
    ;
    

    However, it would be better to re - write a part of your existing application, to produce the same results more effectively.

  • my audio syestem of beats went when I choose windows 8, how can I return it with the full version?

    my audio syestem of beats went when I choose windows 8, how can I return it with the full version? I have hp pavilion dv4 5110tx

    Hello

    Try the following.

    Download IDT Audio Installer on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp59501-60000/sp59882.exe

    One time finished, open windows control panel, open Device Manager and open sound, video and game controllers.  Right click on the IDT device and select uninstall - also, you should get a command prompt to delete the current driver, check the box allow this and then proceed to uninstall.

    Then, download and reinstall the Chipset driver on the following link.

    Chipset Driver - Windows 8.

    After reinstalling, restart the laptop and let Windows load completely.  Open your download folder, right-click on the IDT Installer and select "Run as Administrator" to launch the installation.  When this has completed, restart the computer again before checking if the Beats Audio is now listed in the windows control panel.

    Kind regards

    DP - K

  • How to write a script for date get to the Clipboard

    Hi experts,

    How to write a script for date get to the Clipboard.

    the date format will be like this:

    05 - may

    respect of

    John

    Thanks guys, thanks Sanon

    I finally use the .bat doc

    like this:

    @@echo off
    for /f "delims =" % in (' wmic OS Get localdatetime ^ | find ".") "") Set "dt = %% a"
    the value "YYYY = % dt: ~ 0, 4%.
    the value "MM = % dt: ~ 4, 2%.

    If MM % is 01 set MM = January
    If % MM == 02 set MM = February
    If MM % is MM value = March 03
    If MM % is 04 MM value = April
    If MM % is 05 MM value = may
    If MM % is 06 MM value = June
    If MM % == 07 set MM = July
    If MM % is MM value = August 08
    If MM % is MM value = September 09
    If MM % is 10 MM value = October
    If MM % is 11A set MM = November
    If MM % is game MM 12 = December

    the value "DD = % dt: ~ 6, 2%.
    the value "HH = % dt: ~ 8, 2%.
    the value "Min = % dt: ~ 10, 2%.
    Set "s = % dt: ~ 12, 2%.

    Echo DD - MM HH % %% % Min | Clip

    It works

    respect of

    John

  • How to write a procedure for setting Out when the condition fails

    Here's my query, it works very well when the condition is fulfilled with the valid user ID and password

    create or replace
    PROCEDURE ISVALIDUSER / * this is procedure created to validate the connection information to users created on 09212012 by Charbonneau * /.
    (
    pUSERID IN VARCHAR2,
    Ppassword IN VARCHAR2,
    pUSERTYPE OUT NUMBER
    )
    AS
    tmpUSERID VARCHAR2 (30);
    tmpPASSWORD VARCHAR2 (150);
    tmpIsative VARCHAR2 (10);
    BEGIN
    SELECT Userid, PASSWORD IN tmpUSERID, tmpPASSWORD FROM USERMASTER WHERE USERMASTER. USERID = pUSERID and USERMASTER. PASSWORD = Ppassword AND isactive = "Y";
    / * Check ID USER Existed or not * / / * PASSWORD verification is Existed or not * /.
    IF tmpPASSWORD = AND tmpuserid = pUSERID THEN pPassword
    USERTYPE of SELECT INTO pUSERTYPE FROM USERMASTER WHERE USERMASTER. USERID = pUSERID and USERMASTER. PASSWORD = pPassword;
    ON THE OTHER
    BEGIN
    1 SELECT INTO pUSERTYPE FROM DUAL;
    END;
    END IF;
    END;


    Here I am facing a problem when I get invalid user or password ID it is failed - 1 in pUSERTYPE which is OUT setting
    Please suggest

    You need to read about the exceptions - {message identifier: = 9360013}

    create or replace
    PROCEDURE ISVALIDUSER /*This is Procedure created to validate Login users information Created on 09212012 by Chakravarthy*/
    (
    pUSERID IN VARCHAR2,
    pPASSWORD IN VARCHAR2,
    pUSERTYPE OUT NUMBER
    )
    AS
         tmpIsative VARCHAR2(10);
    BEGIN
         SELECT USERTYPE INTO pUSERTYPE
         FROM USERMASTER WHERE USERMASTER.USERID=pUSERID
         and USERMASTER.PASSWORD=pPASSWORD AND isactive='Y';
    exception
         when no_data_found then
              pUSERTYPE := -1;
    END;
    

    You store your password without encrypting? One who is to have access to your table will see the password...

  • How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    I have only:
    D: / images (where are necessary + not need files)
    -a list with only the necessary files
    -a list with new names for the files needed
    Thank you.

    Hi Pustiu,

    Thanks for posting in the Microsoft Community.

    You want to know how to select the files in a folder using a list with the files you want and after that rename only the files using another list with desired new names.

    I would have you post your query in the TechNet forums because it caters to an audience of it professionals.

    Your query will be better addressed there.

    Check out the link-

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/threads

    We know if you need help. We will be happy to help you. We, at tender Microsoft to excellence.

    Thank you.

  • When I burn CD for my use on the computer, sometimes the order of the songs are returned, starting with the last song first.

    * Original title: Windows Media player

    When I burn CD for my use on the computer, sometimes the order of the songs are returned, starting with the last song first.  This is the CD, or I do something wrong?  This isn't an ongoing problem... most of the time it's ok.  Can I change the order manually. If Yes, where and how.

    Thank you

    Lee

    Lee - there are a number of possibilities. First of all, it depends whether you burn audio disks or data - if they are audio discs, you can check and rearrange the order of songs in the burn list - if necessary - before you start burning. If you drag multiple files to the burn list quite often the last track you clicked on will go upward, so I wonder if it is what can happen. Back with a little more detail if I not quite correctly interpreted the problem. Best regards, Ric.

  • I have a table of the adf, I added a column that contains a button that I created, when I click it must remove this row in the table, but it is not, please help

    I have a table of the adf, I added a column that contains a button that I created, when I click it must remove this row in the table, but it is not, please help

    I don't understand. You use vo and eo for you to use business components.

    Again, this kind of code call in trouble.

    You must post the changes to make them visible to the eo find vo. You must then run the query for the changes in the business layer strips then you must update the iterator he table is based on.

    In your code I see that happen, hooch maybe because it is more often than not formatted and undocumented.

    My advice is to do a small test case that you can manage with easy sql. Once you get it to run transfer you the results to the actual application.

    Timo

  • How could a routine walk-run? Inside, Indoor walk or another run? I do this routine outdoors with Gps first so that I'm not kidding my calibration data? Help please and thank you!

    How could a routine walk-run? Inside, Indoor walk or another run? I do this routine outdoors with Gps first so that I'm not kidding my calibration data? Help please and thank you!

    Hello

    Choose indoor walk or run Indoor (it does not matter which) to an indoor walk-run routine.

    Even if Apple Watch does not currently offer as a workout interval training, choose one of these allows the most appropriate data sources (which are the same for market and short) to use to track your training.

    If walking or running, the accelerometer is used to estimate pace and the distance (allow your arms swinging naturally) as well as the frequency heart sensor for the estimation of calories burned.

    Run or walk inside will not affect your calibration data. Calibration is based on the GPS of the iPhone data and is only held during the outdoor walking training or race outdoors when the iPhone combined is taken along.

    More information:

    Use of the workout on your Apple Watch - Apple Support

    Calibrate your Apple Watch for better accuracy of training and activity - Apple Support

  • I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I would get one that has 4700 comments already.

  • HP7520: How to scan 2 pages with the automatic document feeder and save to a file?

    How can I scan 2 pages with the automatic document feeder and save to a file?  (Right now, it happens that 2 separate files)

    I have a HP7520, & again, I wish scan 2 pages into a single jpeg file.

    Thank you

    Well, in general JPEG format does not support several concept as a document page. Thus, each image in the JPEG file is saved in a single file. If you are considering of reduction of 2 images in 1 paper size (example: A4), you may need some image editor to do

    If you are looking for a mulit-page image format, TIFF can be a format suitable to use.

    https://en.Wikipedia.org/wiki/TIFF

  • How is it possible to specific your own, with the constant help of string to locate a directory where the NEW

    How is it possible to specific your own, with the constant help of string to locate a directory where the NEW
    created the folder to save?


Maybe you are looking for

  • I want to import any small part of MP4 long clip. Can I cut the part I want beforee I import it? Jut import little clip

    I want to import any small part of MP4 long clip. Can I cut the part I want beforee I import it? Jut import little clip These are my own productions of the hour and a half and I want to participate just 5 minutes. What I have to import all this or ca

  • Gel randomly upward and on random programs

    Hi all I wonder if anyone can help me, I'm almost ready to throw away the computer... My iMac (27 inch, end 2012) 3.2 GHz Intel Core i5. Guard upwards and on programs to randomly freeze randomly I there more on safari I have pretty well most of the t

  • ESATA cable in HP dv6 3290br

    I can connect an eSATA cable in a disk hard 2.5 "more portable. If it is possible, what eSATA cable should I buy to use HP dv6 3290br. I saw this cable on ebay: http://www.eBay.com/ITM/2-5-3-5-HDD-hard-disk-drive-SATA-22P-to-USB-combo-dual-power-eSAT

  • Recover password of BIOS

    Hi since I bought my hp EliteBook 8470p there a password in the Bios, I don't know, kindly help me to reset the Bios password... Thank you Serial number: CNU3149RFM

  • operation refused due to the elevation

    Installation tried hooked on phonics program and was denied because it featured a rise more