XopherS
Technical User
- Dec 8, 2006
- 35
I'm querying our GM DB (dBase, ~180k contact records) to get info from the Contact1 and Contact2 tables. I want to get all prospects who've been entered into the system after a certain date. Here's the query:
For whatever reason, this query causes GM to hang. (Or I'm impatient; it runs for about 7 minutes before I give up and kill it.) I can run queries on the Udldate field in Contact2 with no problem, takes about a minute to run. (I have the Stopwatch add-on for Firefox, so these times are fairly accurate.) So it seems that it's querying from the two tables that's causing it all to take forever.
What gives?
Code:
SELECT Contact1.Contact, Contact2.Udldate
FROM Contact1, Contact2
WHERE Contact2.Udldate > '11/20/2006'
For whatever reason, this query causes GM to hang. (Or I'm impatient; it runs for about 7 minutes before I give up and kill it.) I can run queries on the Udldate field in Contact2 with no problem, takes about a minute to run. (I have the Stopwatch add-on for Firefox, so these times are fairly accurate.) So it seems that it's querying from the two tables that's causing it all to take forever.
What gives?