[EMAIL PROTECTED] wrote:

And what I'd like is something that would give me the counts for the number of 
occurrences of each unique hostname.  Something much like `uniq -c'.  Can 
anyone tell me how that's done or where I should look for info? (I'm not sure 
what to look for, that's the problem).

Thanks,
Otis


Just use distinct...

test=# select distinct count(*),substring( href from '.*://([^/]*)' ) as domain from url group by domain order by domain;
 count |          domain
-------+--------------------------
     3 | devedge.netscape.com
     1 | dictionary.reference.com
     2 | forums.mozillazine.org
     1 | groups.google.com
     4 | texturizer.net
    11 | www.google.com
     2 | www.mozillazine.org
(7 rows)

--
Paul Lambert
Database Administrator
AutoLedgers

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply via email to