Skip to content

Instantly share code, notes, and snippets.

@stuartchaney
Created April 9, 2011 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartchaney/911537 to your computer and use it in GitHub Desktop.
Save stuartchaney/911537 to your computer and use it in GitHub Desktop.
Post.name_like(“foo”).views_gt(50).views_lt(200)
SELECT * FROM "posts" WHERE ((posts.views < 200) AND ((posts.views > 50) AND (post.name LIKE '%foo%')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment