Created
January 22, 2013 14:23
-
-
Save rubypirate/4594992 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Question.find_by_sql("SELECT t1.* FROM questions t1 LEFT JOIN questions_options t2 ON t1.id = t2.question_id WHERE t2.question_id IS NULL AND t2.user_id != 1") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment