Results 1 to 2 of 2

Thread: regular expressions in netezza

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    1

    regular expressions in netezza

    Hi All,

    Can any one help me out on the below..

    I/p :
    12
    asd
    234
    rdfr
    4567

    O/P:
    12
    234
    4567

    Need to ignore string values.
    Last edited by anicherukuri; 10-06-2013 at 06:53 AM.

  2. #2
    Senior Member
    Join Date
    Aug 2012
    Posts
    40,312
    Use the code tags for formatting.

    Use replace or translate function; replace the characters with empty string and then compare the original value with the replaced value. Something like shown below:

    Code:
    length(column) = length(replace(column,'a','')
    If both sides are matching, then it is a pure number.

Similar Threads

  1. PowerCenter - Regular Expressions
    By Lenin in forum ETL tool basics
    Replies: 0
    Last Post: 09-16-2013, 07:10 AM
  2. Replies: 0
    Last Post: 08-27-2013, 09:50 AM
  3. Replies: 0
    Last Post: 05-14-2013, 03:50 PM
  4. Regular expressions in Selenium
    By Sanvi in forum Selenium
    Replies: 1
    Last Post: 11-02-2012, 10:33 AM
  5. Regular expressions used in RFT
    By kdp747 in forum Testing
    Replies: 1
    Last Post: 08-13-2012, 04:16 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •