Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: distinct(object_type) from dba_objects in SQL
How about this you dope
> select OWNER, OBJECT_TYPE, count(OBJECT_NAME)
from DBA_OBJECTS
where OWNER NOT IN ('SYS','SYSTEM','DB_SNMP','PUBLIC','DBSNMP')
group by OWNER, OBJECT_TYPE
order by 1 asc, 2 asc
Mike
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu Dec 09 1999 - 17:58:13 CST