SQL MIN returns null ( = a row without data) as a default value if there is 
no data to calculate the MIN value of. Pretty much all aggregate functions 
return a default value (count() returns 0 for example). 

You would only get no result at all if your query uses a GROUP BY clause 
and no group exists, e.g.

SELECT MIN(value) FROM table GROUP BY data HAVING data = 'non existent 
data'.


*Also, if you are not familiar with it, you should definitely read up SQL 
injection.*


-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to