try this...
you should only need to query the table once.
The query above should work also but it looks like it was written for sql server where there isn't an analytic version of SUM which is more efficient.
of course, don't trust, instead test,
time all suggestions and use autotrace to measure the activity of each to determine which does less work on your system.
Main Topics
Browse All Topics





by: rrjegan17Posted on 2009-02-17 at 04:05:52ID: 23658496
Try this query:
This should help you out..
Select allOpen in new window