plus or minus

A

asc4john

Is it possible to create a qurery that finds a value that is within a
certain tolerance.
i.e. SELECT * FROM tbl WHERE tbl.field is plus or minus 10 of "some
value";
 
J

John Spencer

One method

SELECT *
FROM Tbl
WHERE Abs(SomeField - SomeValue) < =10

Another
SELECT *
FROM Tbl
WHERE (SomeField - SomeValue) Between -10 and 10
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top