How to translate this MySQL statement into named_scope method?

Posted by keruilin on Stack Overflow See other posts from Stack Overflow or by keruilin
Published on 2010-03-19T14:56:53Z Indexed on 2010/03/19 16:11 UTC
Read the original article Hit count: 388

Filed under:
|
|
|

"select * from users, awards where (users.id = awards.user_id) and awards.trophy_id not in (select awards.trophy_id from awards where awards.trophy_id = #{trophy.id})"

© Stack Overflow or respective owner

Related posts about ruby

Related posts about sql