I have a table where i have a scenario to store the <,>,<=,>= symbols in tables.
Is it fine or should i use 'greater than','less than','greater than equal to','less than equal to' as table values
I have a table where i have a scenario to store the <,>,<=,>= symbols in tables.
Is it fine or should i use 'greater than','less than','greater than equal to','less than equal to' as table values
I can't think of any impact. Doesn't it depend on what you need those values for?
They're just ascii characters, so they'll be stored like any other characters, there will be no performance impact. ====> you'll be fine <====== :) :P
If you've got something special to do with them then you may want to consider something else. Here's a guess at how you might want to use them... a flag field and use a case statement:
CASE WHEN YourGreaterThanFlag = 1 THEN '>' ELSE '<' END
Hope that helps.
18 People are following this question.