On 28 Sep 2008, at 10:11, Morgan Terry wrote:

It sure is. Something like this should work:
SELECT primary_key, sum(id)
FROM table_name
GROUP BY primary_key

That didn't work for me, but you got me going in the wright direction. This worked:

SELECT ID, count(ID) as count
FROM table_name
GROUP BY ID
ORDER BY ID


Thanks.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to