SELECT .. WHERE field IN (SELECT .. )

From: Predrag Lesic <predragl(at)cg(dot)yu>
To: pgsql-sql(at)postgreSQL(dot)org
Subject: SELECT .. WHERE field IN (SELECT .. )
Date: 1999-07-27 09:21:19
Message-ID: 379D7A0E.C840D9C2@cg.yu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I have problem with next query

SELECT COUNT(*) FROM TABLE1 WHERE field1 IN (SELECT DISTINCT field2
FROM TABLE2 WHERE field3>'some date')

Processing time of the query is toooooooooo long. I didn't get the
answer. Postgres is doing something, I can see disk is working for some
time, and the query is running. But how long?????

Thank's
Predrag

Browse pgsql-sql by date

  From Date Subject
Next Message Don Yury 1999-07-27 10:24:25 outer joins
Previous Message David Rose 1999-07-27 05:51:22 RE: [SQL] timespan arithmetic