Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: count for a newbie
Here is an updated sql statement and the output:
select segment_name,count(*) from sys.dba_segments where owner='F_SW' group by segment_name
SEGMENT_NAME
DA_DELETEDATE
1
DA_DOCNUMBER
1
DC_DOCCLASSNAME
1
DC_DOCCLASSNUMBER
1
DI_DOCCLASSNUMBER
1
DOCTABA
page^Cq
1
8 rows selected.
Instead of the count always being equal to one ( because each table has only 1 entry in sys.dba_segments ), I want it to equal the number of entries in each respective table. Hopefully this is more descriptive. TIA
Bryant
In article <8q5ivs$stt$1_at_nnrp1.deja.com>, sanrenkur_at_my-deja.com wrote:
>Hi
>Try WHERE OWNER='TOM'
>Hth
>Sanrenkur
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
Received on Mon Sep 18 2000 - 13:30:54 CDT
![]() |
![]() |