views:

31

answers:

2

I have a query with over 500,000 rows of data in the output. I need to filter the criteria down so that I am comparing column "order date" to column "filled date". I want to find all orders with a filled date sooner than an order date (yes, that sounds backwards). Is there an easy way to query this in design view? I am not very good with SQL.

A: 

try

select *
from [orders]
where [filled date] > [order date]

obviously use your field and table names

Andrew Bullock
+1  A: 

You want the SQL to look something like this:

SELECT *
FROM yourtable
WHERE filled_date < order_date

How to do it in the designer depends on which designer you are using.

Mark Byers
your logic is backwards, however i suspect a badly worded question.
Andrew Bullock
@Andrew Bullock: Yes it's backwards - I *think* that's what she wanted.
Mark Byers
Thank you for your help. Yes, the logic is backwards intentionally. Thanks again!
Debbie