On Wed, 05 Mar 2008 09:29:03 +0100, Sebastian Mendel wrote:

> SELECT
>      comments.content,
>      SUM(votes.votes)
> FROM
>      comments
> LEFT JOIN
>      votes
> ON
>      comments.id = votes.comment_id
> GROUP BY
>      comments.id


Interesting :)


-Thufir


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to