creteria using other fields

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a table with one field with many unique numbers: 1000 for example.

I have created two other fields that add and subtract 10 digits giving me a
value of
900 in one field and 1010 in the other field.

I want to pull all the records from another table that are between 900 and
1010.

There are many such numbers in the original table that I want to
automatically perform this operation on.
 
Perhaps you can use a non-equi join such as the one below. You cannot build
this type of query in the query grid, but must do so in the SQL (text) window.
Generically, this would look like.

SELECT T.*
, N.[MinimumNumberField]
, N.[MaximumNumberField]
FROM [TargetTable] as T INNER JOIN [NumberTable] As N
 

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

Back
Top