| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL Question
select master.pk, detail.rec_count
from table1 master, (select pk, count(*) as rec_count
from table2
group by pk) detail
where master.pk = detail.pk;
This should give you what you want.
Kenny Gump
OCP 7.3 DBA
![]() |
![]() |