GROUP BY returns zero rows...
I have an sql query that looks like this :
SELECT table.ID , AVG(*) as AVERAGE , ... , ... from table WHERE X > 200 GROUP BY table.ID ORDER BY AVERAGE
this query qorks great...
everytime there's more than one row in the table, but when theres only one row, it returns zero rows!
I think this is because of the GROUP BY Statement, but im not sure...
How can I prevent this from happening??
[421 byte] By [
gilly914] at [2007-11-20 10:31:33]

# 3 Re: GROUP BY returns zero rows...
everytime there's more than one row in the table, but when theres only one row, it returns zero rows!
I think this is because of the GROUP BY Statement, but im not sure...
How can I prevent this from happening??
'select' returns Zero rows when 'Where' or 'Having' statements doesn't
find some row.