Hello

I am trying use the SUM in a SELECT, but that return error.

I'm trying this.

SELECT *, SUM(number1) AS n1, SUM(number2) AS n2 FROM tabela
INNER JOIN tabela2 ON (tabela1.code = tabela2.code)
WHERE tabela1.code = 0001
GROUP BY tabela1.code

any idea ???

thanks.

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to