Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Converting a string to a decimal point

Status
Not open for further replies.

fergy1

IS-IT--Management
Jul 25, 2003
32
US
Hello-

I have an acreage field that has decimals and some with null values. How can i create a search between a value and value without it displaying incorrectly? For example i do a search between .5 acres and 1 acres I dont want 10 acres showing up as well as it does now.

So I have this now which does not work right:

Select * from table where Acreage BETWEEN '.5' and '1'
 
What datatype are you using to store Acreage? I just tried your example using a varchar column and it worked fine.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top