469,894 Members | 2,209 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,894 developers. It's quick & easy.

question about select count(*) with group by


suppose a hypothetical table called 'table' with one field called 'field' of
an arbitrary type.

the query

select count(*) from table where field='value' group by field

produces no rows when run under the latest mysql. without "group by" it
produces 1 row.

is this according to the SQL standard or is this just a coincidence? in
other words, can i rely on this behaviour to deduce that there are no fields
with value 'value' in 'table'?

Jul 23 '05 #1
0 1573

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by andy vandenberghe | last post: by
4 posts views Thread by Orion | last post: by
7 posts views Thread by jane | last post: by
13 posts views Thread by groupy | last post: by
22 posts views Thread by MP | last post: by
3 posts views Thread by Michel Esber | last post: by
3 posts views Thread by bob laughland | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.