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?

Coding world
  • 167
  • 8
  • 23

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
  • 700
  • 11
  • 28