From: Lance Rochelle <[EMAIL PROTECTED]>

> SQL question which I am new to.
> How would I count the number of times a specific entry is in field.  For
> instance I have a table that has the following two fields

select count(*) as number, hostname
  from your_table
 group by hostname;

---
Rodney Broom
Programmer: Desert.Net




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to