select * From Incomes where customer_id in (select id From Customers where name like "j%")
how do I make an inquiry on the rails? I want to make a customer survey!
select * From Incomes where customer_id in (select id From Customers where name like "j%")
how do I make an inquiry on the rails? I want to make a customer survey!
First of all: edit your question and re-write it all in english if you want help. StackOverflow it's in english.
Second, to make a SQL query in Rails, you can search in SO. I found this that can solve your question
Rails 3 execute custom sql query without a model
or
Good luck.