E.NOMBRE is not found because you can have in the SELECT clause only
columns that are mentioned in the GROUP BY or aggregate functions.
e.nombre is neither mentioned in the GROUP BY nor an aggregate function.
Comprendo?

Also i.count(*) seems rather odd syntax to me. And it's possible meaning escapes me.

- Rami


On 4.4.2013 6:39, Jose Martinez wrote:
Hi Im trying to make a left join query, this way:

SELECT e.nombre, i.count(*) FROM watermelon.invitados as i LEFT JOIN watermelon.eventos AS e ON i.ideventoactual = e.id GROUP BY i.ideventoactual
Then I get the next error:

Column "E.NOMBRE" not found; SQL statement:
SELECT e.nombre, i.count(*) FROM watermelon.invitados as i LEFT JOIN watermelon.eventos AS e ON i.ideventoactual = e.id GROUP BY i.ideventoactual [42122-170] 42S22/42122

*Thanks in advance!*
--
You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



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


Reply via email to