Rails SQL Query with find

Posted by Nave on Stack Overflow See other posts from Stack Overflow or by Nave
Published on 2009-06-12T05:58:04Z Indexed on 2010/06/05 7:12 UTC
Read the original article Hit count: 187

Filed under:
|
|

I want this SQL query to be written in rails controller using find
select id,name from questions where id not in (select question_id from levels_questions where level_id=15)
How will I do this?I am using Rails framework and MySQL db
thanks in advance.

© Stack Overflow or respective owner

Related posts about sql

Related posts about ruby-on-rails