MySQL Forums
Forum List  »  Newbie

Re: One table including entries from several users
Posted by: Monika
Date: June 10, 2005 05:13AM

Try

SELECT user_id, SUM(score) AS scores FROM user_table WHERE user_id=3

--> gives you the sum of scores for user 3

Monika

Options: ReplyQuote


Subject
Written By
Posted
Re: One table including entries from several users
June 10, 2005 05:13AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.