Skip to Main Content

SQL & PL/SQL

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!

help with querying a 200 million record table

491862Mar 7 2006 — edited Mar 10 2006
Hi ,

I need to query a 200 million record table which is partitioned by monthly activity.
But my problem is I need to see how many activities occured on one account in a time frame.

If there are 200 partitions, I need to go into all the partitions, get the activities of the account in the partition and at the end give the number of activities.

Fortunately, only activity is expected for an account in the partition which may be present or absent.

if this table had 100 records, i would use this..

select account_no, count(*)
from Acct_actvy
group by account_no;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2006
Added on Mar 7 2006
5 comments
646 views