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!

Nested table count in a sigle query

2797285Nov 18 2014 — edited Nov 19 2014

Hi Guys Need help on a small query :

I have a table A which has large number of run_id, and each run _id is mapped to other table B with multiple result_id. that is for one run_id I have multiple results_ids. And each result _id row has a nested table C which has multiple number of rows. What I need is to map run_id with result_id and for each result_id I need a count rows of nested table C.

I tried with a simple one select count(C) from B, table C where B.result_id=####, this runs fine on sigle instance. but the same is not working fine for multiple instances of result_id and further when mapped to table A run_id.

Thanks in advance for your assistance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2014
Added on Nov 18 2014
2 comments
1,084 views