0

I have column in my database table named 'anwers' of type 'character'. Data may be numbers or strings that's why I used column of type 'character'. And I have to calculate the sum of anweres if it is a numeric. But I found that ISNUMERIC will not work for column type of text/character . How can I solve this issue?

a_horse_with_no_name
  • 497,550
  • 91
  • 775
  • 843
Coding world
  • 166
  • 7
  • 20

1 Answers1

0

In DB2, I've done something like UCASE(answers) = LCASE(answers) to test if it's numeric. This could work if your column is simple letters/numbers, not including punctuation characters.

Just Rudy
  • 690
  • 10
  • 27