Created
July 3, 2013 04:05
-
-
Save bubbafat/5915372 to your computer and use it in GitHub Desktop.
How do I do this with active record find method?
This file contains 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
select count(*) as Count, | |
((elapsed / 1000) * 1000) + 1000 as LessThanSecond | |
from speedies | |
where elapsed is not null | |
group by ((elapsed / 1000) * 1000) + 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment