I'm using this method:
select count(visitordetailid) from visitordetail where sessionid in (select sessionid from visitors where time between '9/16/2006 00:00:00.000' and '9/23/2006 23:59:59.999' )
To get some counts from a inner table based on the date range of the outer table. Is there any way to make this faster? I'm not at all shy about changing the architecture to speed it up. Right now there is 126835 rows in the inner table and 18620 in the outer table.
This query takes 55 seconds to execute. That seems like a lot.
-Coolhand2120
Start Free Trial