DjPaj
04-25-2002, 09:04 AM
Alright, I think I already know the answer to this question, but it's killing me anyway.
I have a column in my table (we'll call it priceCol for now) that is set to varchar(50) that is set to hold the prices of used cars, so it can store it either as $xx,xxx.xx or as xx,xxx.xx. Now when I want to do a "SELECT * FROM xxx WHERE priceCol > 0 AND priceCol < 500" now WHYYYYYYYY does this select return only some values? It returns values such as 50,000, 125,000, 200,000??????????? What am I doing wrong, granted I was working on this at like 3 in the am, so I prolly missed something or am doing something totally wrong that I know I shouldn't be.
I have a column in my table (we'll call it priceCol for now) that is set to varchar(50) that is set to hold the prices of used cars, so it can store it either as $xx,xxx.xx or as xx,xxx.xx. Now when I want to do a "SELECT * FROM xxx WHERE priceCol > 0 AND priceCol < 500" now WHYYYYYYYY does this select return only some values? It returns values such as 50,000, 125,000, 200,000??????????? What am I doing wrong, granted I was working on this at like 3 in the am, so I prolly missed something or am doing something totally wrong that I know I shouldn't be.
