I've searched around and couldn't find an answer anywhere.
I'm querying a database that has stored numbers as a VARCHAR2
data type.
I'm trying to find numbers that are greater than 1450000
(where BI_SO_NBR > '1450000'
), but this doesn't bring back the results I'm expecting.
I'm assuming it's because the value is stored as text and I don't know any way to get around it.
Is there some way to convert the field to a number in my query or some other trick that would work?
Hopefully this makes sense.
I'm fairly new to SQL.
Thanks in advance.