Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 440955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:55:27+00:00 2026-05-12T20:55:27+00:00

I have this database which contains a varchar. I want to know which records

  • 0

I have this database which contains a varchar.

I want to know which records holds numeric values. I tried REGEXP_COUNT and other but I’m running on 9i and I think this is for 10g >

How can I achieve this?

I tried:

 select to_number( my_column ) from my_table 

But it doesn’t work, because well not all of them are numeric.

EDIT

Background.

This table contains employee id’s, all of which are numeric ( read 1234 or 24523 or 6655 )

The in the initial database load, when the employee id was unknown instead of using something like -1 they entered texts like:

NA, N/A, NONE, UNK, UNKNOW, TEST, EXTERNAL, WITHOUT_ID

Really the main fault is, that column is varchar and not number as it should.

Now, what I try to do, is to get ll the records that are not numeric ( that don’t contain an employee id ) but since that db is 9i, I could not use RegExp

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T20:55:27+00:00Added an answer on May 12, 2026 at 8:55 pm

    I manage to work around like this:

    select my_column
    from my_table
    where my_column not like '%1%'
    and my_column not like '%2%'
    and my_column not like '%3%'
    and my_column not like '%4%'
    and my_column not like '%5%'
    and my_column not like '%6%'
    and my_column not like '%7%'
    and my_column not like '%8%'
    and my_column not like '%9%'
    and my_column not like '%0%' 
    

    Dirty, but it works. 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this old Access database (2000 format) which i want to convert to
Hi I have this method below which should insert values into my database. However
I have a variable which I get from database I want to output this
I have a function which calculates distance from database records. This function is called
I have a database column which contains varchar data type. I would like to
I have an existing Access database which contains training records for employees. If an
I have a database which contains an Assignment table. The table looks like this:
I have this legacy database for which I'm building a custom viewer using Linq
I have this question in which I have a SQL Server Compact Edition database
I currently have this code which reads the first field in a database record

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.