Checking Special Character for EmpNumber

Hi all,
i want to elimate special characters in my employee number using oracle function
EMPNO CHAR(9)
585856789 --Correct
79799&%3 --InCorrect  (Error Out)
i want to know the query for finding these special characters in my column can anyone help
Thanks in advance

To determine what characters are comprising your empno string, use the DUMP function:
select empno, dump(empno) from emp;In order to limit the result set to only those records with invalid characters, translate out all the valid characters selecting non null values:
select empno, dump(empno) from emp where translate(empno,chr(13)||'0123456789',chr(13)) is not nullThis code assumes that the carriage return character (chr(13)) is invalid. You just need to extend the string of valid characters (currently 0-9) with any additional valid characters so they will be removed as well. Additionally could perform the dump function on the translated string instead of the original empno column so that you only see the invalid characters being dumped.

Similar Messages

  • Is there a Special Character for the number of pages in a document?

    I'm creating a template (in cs6) for a series of documents of variable length, and each document needs to be numbered with the format, "page A of Z." I see the special character for inserting the current page number (A) and I'd like to have the number of pages in the document (Z) added automatically as well. Is there a wildcard, special character, or script that will accomplish this? I'd rather not have to enter the number of pages manually as the value will change as these go through the editing process; I'd prefer to have the numbers update automatically. Has anybody done this before?

    Your first suggestion is the only way to capture the last page of a book that's comprised of independent document files. The last page number text variable works only within a single document.
    Anyone who wants a last page in book text variable badly enough can post a feature request at Wishform.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices    
    Arïel wrote:
    Stop press!
    You can also, much more simply, create a new text variable. There is
    specifically one for "last page number". That's much simpler.
    Type>Text Variables>Define>New, and in the Type dropdown just select
    "last page number".
    ariel

  • Special Character for in-line previous page reference:

    OS: Windows XP Pro SP2
    Software: IDCS2
    I'm working on a document and I need to make an inline reference to an item two pages back (not a "continued on/from"). This document is used in two different books, and the page numbers change in each book.
    Is there a way I can use an inline special character to reference that changing page number?
    Thanks in advance,
    Ed

    I know it's not really cheating... but it's used in a way I wasn't able to find a reference for. And it's not truly an inline cross reference either, as I had to put this last paragraph with the character in it in a new text-box. But in the final product it will look like it.
    What I was originally looking for was a way to do it in the same story as the rest of my text. But I couldn't, since that story was threaded to a different text box.
    I guess I was looking to reference like an HTML anchor or something? But there wasn't really a built-in way of doing it.
    And there are drawbacks: like you can only do this within the same document (I assume). And in many circumstances, you would have to add a new text box, since many stories would already be threaded.
    I never claimed it was pretty! :) Just that it worked!

  • Special Character For Equipment Number

    Hi Experts,
    Need a solution  to provide equipment number with special charater  System does not support with internal & external number range for special character. Thannks...
    Ramesh

    Ramesh,
      Its not possible to have special characters in the number range object. You will have to use other fields to accomplish your needs and work around it.
    Regards
    Narasimhan

  • Display special character for 'Artihmetic mean'

    I can't find the character for 'Arthmetic mean', it's 'x' with a line above, any ideas!?
    I've searched several font (Symbol, Wingdings etc) but didn't found that special character...!

    Oh, I do apologise. I saw the character on wiki and assumed it was a character, rather than a graphic.
    Usually, to create interesting unicode characters, you can combine diacritics. For instance, xbar is X followed by ¯;

     (might not display on unsupported browsers)
    However LabVIEW doesn't support this, and will print x ¯ and I can't find any info on how else it might be implemented.
    You might be able to find a hack in this document
    And in the meantime, you can kudo this suggestion
    - Cheers, Ed

  • Thai Characters printing in special character for regular thailand fonts

    Hi Experts,
    In smartform, I hard coded THAI characters and I used the thai fonts (THANGSAN, THVIJIT, THDRAFT) in Character format to dispaly the THAI characters.
    Issue:
    In print preview, thai characters are displaying correctly for font style BOLD. But for font style REGULAR
    thai character are displaying as '#' character.
    I want thai character also to be displayed correctly for REGULAR font style.
    Kindly help in this regard.

    Hi,
    Kindly check in SE73 if the font sizes which you are using in your smart form exist in System Fonts.
    regards
    Nitesh

  • Special character ($) for Linux giving problems with script

    Hi.
    Trying to use a script that will check status of log sequence on two databases:
    sqlplus -L system/pwd@string <<END_SQL
    spool standby_monitor.txt replace
    select sysdat from dual;
    select max(sequence#)from v$log_history;
    spool off
    exit;
    END_SQL
    The problem is that Linux doesnt like the $ sign and when the script is run returns "table or view does not exist". (after i place the $ in the script the name of the table goes purple).
    There is clearly a need to substitute the v$ - I have tried inverted commas but to no avail. I have tried putting this in a separate sql script then calling that but still same issue.
    Is there a way around this?
    Thanks.
    Oracle 10.2.0.2
    Linux Red Hat Release 4.
    Edited by: Dan A on Aug 17, 2009 9:49 AM

    v\$
    Sybrand Bakker
    Senior Oracle DBA

  • How to check one character NSString if it is A-Z?

    How to check a one character long NSString, to see if it falls between the range A-Z? including upper and lower case.
    thanks

    I think for anything Unicode, the meaning is self-defining. By this I mean "Marks" are the set of characters they have grouped together and called "Marks". I found this site that explains the categories. A German eszett ß is actually a lowercase character, not a mark. It seems that the Marks are special combining characters in Arabic, Hebrew, Tamil, etc.
    The key thing to keep in mind is that MacOS X is designed to work in all of those languages. So, if you are writing code to "check for lowercase", you have to realize that there are literally thousands of lowercase letters. You should probably have a graceful way to handle ß and similar characters. One thing I have done in the past is just substitute some special character for anything that isn't strictly "a-z". That way, regardless of the input, I know what the output will be. That worked for my particular application, but it isn't appropriate in all or even most applications.

  • Reg: Special Character Appearing in Excel O/P.

    I am getting excel output generated via an Oracle report (CSV format). In the excel output, I am getting a special character for TAB (Chr9, a box). Since user wants to sort the data, because of this character they are not able to sort data in sheet properly.
    Can anyone suggest what could cause this special character to appear in the report output? I am looking from layout perspective also. Is this has something to do with the printing style applied to the concurrent program?
    Thanks In advance.

    I had the same problem and this is what I did, works great. You have the total control.
    function BeforeReport return boolean is
    fp text_io.file_type;
    begin
    -- creating a file name
    :CP_filename := 'C:\Gap'||to_char(sysdate,'MMDDYYHHMISS')||'.csv';
    -- Opening the file in write mode
    fp := text_io.fopen(:CP_filename,'w');
    -- writing the column headings into the file
    text_io.put_line(fp,'"Platform","Sys#","GapType",');
    text_io.fclose(fp);
    return (TRUE);
    end;
    and then where ever it is suitable, depending on the requirement, write into file by opening it in the append mode.
    function R_G_systemplatformFormatTrigge return boolean is
    fp text_io.file_type;
    begin
    --     srw.message(99,:dname);
    fp := text_io.fopen(:CP_filename,'a');
    text_io.put(fp,'"' || :systemplatform || '",');
    text_io.put(fp,'"' || to_char(:sysno) || '",');
    text_io.put_line(fp,'"' || :CF_gaptype || '",');
    text_io.fclose(fp);
    return (TRUE);
    end;
    This works great. Hope this helps.

  • Store special character

    I need to store the special character for Service Mark(supscript SM) in the database. Is there a way I can do that. I could do that for trademark (superscript TM) but not for SM. Any suggestions? pleasse help.

    The ISO 8859-1 character set includes the copyright symbol (circle around a c) and the Registerd Trademark symbol (circle around an R). It does not, however, include the Trade Mark or Service Mark character, so your database character set doesn't support encoding either of those characters. Short of changing the database character set, you are probably out of luck.
    You can scan the character set to see if I missed the characters you're interested in
    http://www.htmlhelp.com/reference/charset/iso160-191.html
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • REGEX AND SPECIAL CHARACTER

    Hi guys, I have a problem!!!!
    I am using the java.util.regex.*, when I try use the special character, for example ' \w ' I get a error
    Pattern.compile("\w123\w");
    The compiler return to me that the \w character is not a valide, the output error are:
    "illegal escape character".
    What I need do to put this character in my regular expression and don't get the error?!!?
    Another question, I use the feloow code
    Pattern p = Pattern.compile("isc");
    Matcher matcher = p.matcher("Giscard");
    if(matcher.matches())
       System.out.println("MATCH");
    else
      System.out.println("NOT MATCH");  //The resul is always this, why the regex don't match with my name?Thanks one more time.
    Giscard

    1)
    Pattern.compile("\\w123\\w");To input a single "\" in a Java program you must enter two "\\".
    2) read the javadoc
    matches()
    Attempts to match the entire region against the pattern.
    So "isc" only matches "isc", not "Giscard"
    You need to use find()

  • How to check for black rectangle special character

    hi ,
    i have a field that contains the black rectangle special character and when i copy it to the pl/sql's screen it's showing the square bracket. -->
    however when i saved the view it turns from to . and this has disrupted my check as follows
    field1 = '2AAC1234.11some-other-words'
    substring(field1 , instr(field1 , '')) -- i am expecting it to return 2AAC1234.11
    instead it returns me 2AAC1234 because the has turned in "." once i save the query. pls advise
    tks & rgds

    Get the ascii values for using ASCII function.
    SELECT ASCII('') FROM DUAL;--
    and then INSTR function use CHR fucntion with the ASCII value you get fron above query.
    SELECT CHR(n) FROM DUAL; it will return ''
    here n is the ascii value for ''
    Regards
    Arun Gupta

  • Special Character Restrictions for Native XML Driver

    Hi,
    I have found the following special character restrictions in the documentation:
    "Because they are handled specially by the Native XML driver, do not use the following special characters to define element types and attributes in your XML schema:u201C.u201D, u201C/u201D, u201C\u201D, u201C:u201D u201C@u201D."
    After checking the createad XML-Files in our projects that we will use for CR4E there is often a  u201C.u201D in the definition. Because this is delivered from third-party, we wish that the  u201C.u201D  will be enabled.
    In the moment we create the XSD-Files from the XML-File with XML2XSD.
    It is possible in the future?
    Best Regards
    Arnold Meier

    The changes aren't in XI Release 2, but in 2008.
    Do you still have Nha's XML data?  I edited Document_Policy, Policy_AllCoverages, Policy_Beneficiary to Document.Policy, Policy.AllCoverages, Policy.Beneficiary, then use the following code in CR4E 2.0:
    reportClientDocument reportClientDocument;
    ConnectionInfo connectionInfo;
    PropertyBag propertyBag;
    * Connect to the Java Print Engine and create a new document.
    reportClientDocument = new ReportClientDocument();
    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
    reportClientDocument.newDocument();
    * Define connection to the XML and XSD files.
    propertyBag = new PropertyBag();
    propertyBag.put("Local XML File", "C:\\Documents and Settings\\tueda\\Desktop\\nha.xml");
    propertyBag.put("Local Schema File", "C:\\Documents and Settings\\tueda\\Desktop\\nha.xsd");
    propertyBag.put("Convert Multivalue to Table", Boolean.FALSE);
    propertyBag.put("Database DLL", "crdb_xml.dll");
    connectionInfo = new ConnectionInfo();
    connectionInfo.setAttributes(propertyBag);
    * Specify the dataset in the XML as a Table, and add to the report.
    Table table = new Table();
    table.setConnectionInfo(connectionInfo);
    table.setName("Document.Policy/Policy.Beneficiary");
    table.setAlias("Document_Policy/Policy_Beneficiary");
    reportClientDocument.getDatabaseController().addTable(table, null);
    * Save report to file C:\local_xml.rpt
    reportClientDocument.saveAs("nha_local_xml.rpt", "C:\\", ReportSaveAsOptions._overwriteExisting);
    reportClientDocument.close();
    Sincerely,
    Ted Ueda

  • Looking for a name with special character

    Hi Gurus,
    In our HR system we use multiple language (eg: polish, french, german, english, finns, ...).  All those languages have some specific characters, like german with ß.
    When we use the search help to looking for someone, it seems that only people who have the special character on their keyboard can find directly the correct name.
    For example :
    If I use a german keyboard I can found an employe by completed the correct last name wich contain eg ß .
    if I don t use a german keyboard I have to put a * where the specific characters is.
    I would like to know if somehow it were possible to customize the system in order to do not need to enter a * but the correspondant singular letter.  Is there any function for converting a special character to a singular one to activated ?
    Thank you for all your help
    Best regards
    Hadrien

    indexOf() is used to find where a character or substring appears in a
    given string. What you probably need is charAt() which finds out which
    character is at a given position. Like this:private JTextField reportNameText;
    // something needs to be put in the text field here
    String reportName = reportNameText.getText();
    if(reportName.charAt(0) == ' ') {
            // printing a space isn't a lot of good...
        //System.out.println("first character is"+reportName.indexOf(0));
        System.out.println("first character is a space");
        JOptionPane.showMessageDialog(null,"Report Name should not start with Space", "", JOptionPane.PLAIN_MESSAGE);
    }An even better condition might beif(Character.isWhitespace(reportName.charAt(0))) {This checks for other sorts of space.
    The String methods are described here:
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html

  • Search for Special Character in  Oracle Text CONTAINS Query

    Hi,
    We have to write few query which will search for email id in the Oracle Text.
    The Search text will be like <[email protected]> .
    So email id should be searched correctly with the @ symbol.
    Similarly we want the following special character to be searched in the Text like ",',*

    You will need to escape the special characters by either using \ in front of each special character or putting {} around the whole phrase that contains the special characters, as per the online documentation:
    http://download.oracle.com/docs/cd/B28359_01/text.111/b28304/cqspcl.htm#CCREF2091

Maybe you are looking for