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
2010-07-21 19:57:06
+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
2010-07-21 19:57:33
your logic is backwards, however i suspect a badly worded question.
Andrew Bullock
2010-07-21 20:11:06
@Andrew Bullock: Yes it's backwards - I *think* that's what she wanted.
Mark Byers
2010-07-21 20:12:18
Thank you for your help. Yes, the logic is backwards intentionally. Thanks again!
Debbie
2010-07-22 20:12:58