Hello, this is very quick and simple.
I have a group by query that works with 1:n records, but now I need it to work with n:n records.
Please contact by chat to check details, I need this solved in the next 5 hours.
Example actual input :
[login to view URL](:class => [login to view URL]).joins(class).group(class).count
Example output :
Now "class" is many to many and code doesnt work anymore.
Output I need :
10 pekerja bebas membida secara purata $39 untuk pekerjaan ini
Hey I can help you out with the query immediately but I'll need the proper structure of tables. Also just an advice, what you're doing doesn't follow the law of Demetrius and will cause problems, if it isn't already.