Less than Or Equal

B

bladelock

I am trying to write a query that will substract two dates from one another
and display only the results of "Less Than Or Equal to 1"

Here is what I have so far:

SELECT DenialNumbers.ID, [discharge]-[admission] AS EqualOrLessThanOne
FROM DenialNumbers;

I just want to display the records that are less than or equal to one. This
query display all records with many numbers.
Thanks
 
K

KARL DEWEY

Try this --
SELECT DenialNumbers.ID, [discharge]-[admission] AS EqualOrLessThanOne
FROM DenialNumbers
WHERE ([discharge]-[admission] <=1);
 
B

bladelock

Thanks

KARL DEWEY said:
Try this --
SELECT DenialNumbers.ID, [discharge]-[admission] AS EqualOrLessThanOne
FROM DenialNumbers
WHERE ([discharge]-[admission] <=1);

--
KARL DEWEY
Build a little - Test a little


bladelock said:
I am trying to write a query that will substract two dates from one another
and display only the results of "Less Than Or Equal to 1"

Here is what I have so far:

SELECT DenialNumbers.ID, [discharge]-[admission] AS EqualOrLessThanOne
FROM DenialNumbers;

I just want to display the records that are less than or equal to one. This
query display all records with many numbers.
Thanks
 

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

Top