Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> quick easy question, Please Answer

quick easy question, Please Answer

From: <itabl7up_at_yahoo.com>
Date: Mon, 26 Jul 1999 16:03:47 GMT
Message-ID: <7ni0su$jj6$1@nnrp1.deja.com>


Basically my question is, whether it would be faster to query 4 tables (each with about 5000 rows) with query like this: select count(*) from table where rid=number; with table having an index on rid.

or faster to query one table (with about 20,000 rows) like this: select count(*) from table where rid=number and time=varchar[8]; I would make an index on this table with (rid,time) or 2 indexes, one with rid, the other with time.
Let me know, thanks.
James Thomson
itabl7up_at_yahoo.com

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't. Received on Mon Jul 26 1999 - 11:03:47 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US