davard Posted August 7, 2007 Share Posted August 7, 2007 Getting an error when trying to do something like this: select * from table where field<max(field) Simple idea; select everything apart from the rows that have the largest value in one of the fields, but Mysql returns: "#1111 - Invalid use of group function". What's wrong/what should the query be? Quote Link to comment Share on other sites More sharing options...
davard Posted August 7, 2007 Author Share Posted August 7, 2007 Nevermind, got it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.