Re: [appfuse-user] work with excluding set in Hibernate/MySQL

2007-12-05 Thread BruceLee
Thank Nathan a lot! We already figured out the NOT IN part. However your extra 'change other city' is also great! -Bruce melinate wrote: > > Don't know if you already found a solution, but here is what the SQL would > look like... I imagine the HQL would be similar.. > > Here is how to get jus

Re: [appfuse-user] work with excluding set in Hibernate/MySQL

2007-12-04 Thread Nathan Anderson
Don't know if you already found a solution, but here is what the SQL would look like... I imagine the HQL would be similar.. Here is how to get just the "other" users: SELECT user.* FROM user WHERE user.city NOT IN (SELECT city.name FROM city WHERE state = 'CA') Here is how to get all users an