I am trying to create a score based on the char_length of a field. I am using a fraction of the char_length returned.
(CASE WHEN (char_length(e.summary)/100) is null THEN +0
ELSE +(char_length(e.summary)/100) END)
I would like to know how to set a maximum return value. Is there a simple function or do I need to do one more CASE WHEN with if >=10 THEN … ?
Simplify to:
NULLvalues.length()does the same aschar_length()