Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to speed up a table full scan?

671265Mar 11 2010 — edited Mar 11 2010
Dear all,

Here is the case,

table t has 15,000,100 rows

SQL "select count(*) from t where b=***; " returns 15,000,055 rows.

SQL "select count(distinct a) from t where b=***;" returns 4000 rows.

How could tune SQL "select distinct a from t where b=***;" ?

Any comments will be appreciated!


Best wishes,
Satine
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 8 2010
Added on Mar 11 2010
8 comments
2,896 views