SELECT COUNT(DISTINCT ID) FROM my_table;
Note: NULL values will be omitted from the count.
regards,
thalis
p.s. would be a good idea to read an SQL tutorial before your next post
On Thu, 29 Mar 2001 [EMAIL PROTECTED] wrote:
>
> Hi, I am trying to count all the distinct id numbers in a column but I
> just can't figure it out... What would be the appropriate select statement
> for this, thanks,
---------------------------------------------------------------------
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