What is the best way in rails, to so something similar to this sql:
select count(*),datepart(month,created_at)
+"/"+datepart(day,created_at) from whatever
group by datepart(month,created_at)+"/"+datepart(day,created_at)
Thoughts? I mean, besides doing it via strict sql...
What is the best way in rails, to so something similar to this sql:
select count(*),datepart(month,created_at)
+"/"+datepart(day,created_at) from whatever
group by datepart(month,created_at)+"/"+datepart(day,created_at)
Thoughts? I mean, besides doing it via strict sql...